StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
plxLib.h
1 #ifndef _PLX_LIB_H
2 #define _PLX_LIB_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <vxWorks.h>
9 
10 /* PLX 9080 registers */
11 /*
12  they are divided in 2 structures due to the peculiarities of the
13  PLX decode depending on the master : local CPU or PCI
14 */
15 
16 struct plxStructCfg {
17 
18 volatile UINT32 PCI_ID ;
19 volatile UINT32 PCI_CSR ;
20 volatile UINT32 PCI_CLASS ;
21 volatile UINT32 PCI_CLSR ;
22 volatile UINT32 PCIBAR0 ;
23 volatile UINT32 PCIBAR1 ;
24 volatile UINT32 PCIBAR2 ;
25 volatile UINT32 PCIBAR3 ;
26 volatile UINT32 PCIBAR4 ;
27 volatile UINT32 PCIBAR5 ;
28 volatile UINT32 PCICIS ;
29 volatile UINT32 PCISVID ;
30 volatile UINT32 PCIERBAR ;
31 int r1[2] ;
32 volatile UINT32 PCI_MISC1 ;
33 } ;
34 
35 struct plxStructReg {
36 
37 volatile UINT32 LAS0RR ;
38 volatile UINT32 LAS0BA ;
39 volatile UINT32 MARBR;
40 volatile UINT32 BIGEND;
41 volatile UINT32 EROMRR;
42 volatile UINT32 EROMBA;
43 volatile UINT32 LBRD0;
44 volatile UINT32 DMRR;
45 volatile UINT32 DMLBAM;
46 volatile UINT32 DMLBAI;
47 volatile UINT32 DMPBAM;
48 volatile UINT32 DMCFGA;
49 
50 volatile UINT32 OPLFIS;
51 volatile UINT32 OPLFIM;
52 volatile UINT32 R1[2] ;
53 volatile UINT32 MBOX0;
54 volatile UINT32 MBOX1;
55 
56 volatile UINT32 MBOX2;
57 volatile UINT32 MBOX3;
58 volatile UINT32 MBOX4;
59 volatile UINT32 MBOX5;
60 volatile UINT32 MBOX6;
61 volatile UINT32 MBOX7;
62 volatile UINT32 P2LDBELL;
63 volatile UINT32 L2PDBELL;
64 volatile UINT32 INTCSR;
65 volatile UINT32 CNTRL;
66 volatile UINT32 PCIHIDR;
67 volatile UINT32 PCIHREV;
68 volatile UINT32 MBOX0_N;
69 volatile UINT32 MBOX1_N;
70 
71 
72 volatile UINT32 DMAMODE0;
73 volatile UINT32 DMAPADR0;
74 volatile UINT32 DMALADR0;
75 volatile UINT32 DMASIZ0;
76 volatile UINT32 DMADPR0;
77 volatile UINT32 DMAMODE1;
78 volatile UINT32 DMAPADR1;
79 volatile UINT32 DMALADR1;
80 volatile UINT32 DMASIZ1;
81 volatile UINT32 DMADPR1;
82 volatile UINT32 DMACSR;
83 volatile UINT32 DMAARB;
84 volatile UINT32 DMATHR;
85 
86 volatile UINT32 R3[3] ;
87 
88 volatile UINT32 MQCR;
89 volatile UINT32 QBAR;
90 volatile UINT32 IFHPR;
91 volatile UINT32 IFTPR;
92 volatile UINT32 IPHPR;
93 volatile UINT32 IPTPR;
94 volatile UINT32 OFHPR;
95 volatile UINT32 OFTPR;
96 volatile UINT32 OPHPR;
97 volatile UINT32 OPTPR;
98 volatile UINT32 QSR;
99 volatile UINT32 R2;
100 
101 volatile UINT32 LAS1RR;
102 volatile UINT32 LAS1BA;
103 volatile UINT32 LBRD1;
104 
105 } ;
106 
107 
108 
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 #endif /* _PLX_LIB_H */