00001 #ifndef _PLX_LIB_H
00002 #define _PLX_LIB_H
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008 #include <vxWorks.h>
00009
00010
00011
00012
00013
00014
00015
00016 struct plxStructCfg {
00017
00018 volatile UINT32 PCI_ID ;
00019 volatile UINT32 PCI_CSR ;
00020 volatile UINT32 PCI_CLASS ;
00021 volatile UINT32 PCI_CLSR ;
00022 volatile UINT32 PCIBAR0 ;
00023 volatile UINT32 PCIBAR1 ;
00024 volatile UINT32 PCIBAR2 ;
00025 volatile UINT32 PCIBAR3 ;
00026 volatile UINT32 PCIBAR4 ;
00027 volatile UINT32 PCIBAR5 ;
00028 volatile UINT32 PCICIS ;
00029 volatile UINT32 PCISVID ;
00030 volatile UINT32 PCIERBAR ;
00031 int r1[2] ;
00032 volatile UINT32 PCI_MISC1 ;
00033 } ;
00034
00035 struct plxStructReg {
00036
00037 volatile UINT32 LAS0RR ;
00038 volatile UINT32 LAS0BA ;
00039 volatile UINT32 MARBR;
00040 volatile UINT32 BIGEND;
00041 volatile UINT32 EROMRR;
00042 volatile UINT32 EROMBA;
00043 volatile UINT32 LBRD0;
00044 volatile UINT32 DMRR;
00045 volatile UINT32 DMLBAM;
00046 volatile UINT32 DMLBAI;
00047 volatile UINT32 DMPBAM;
00048 volatile UINT32 DMCFGA;
00049
00050 volatile UINT32 OPLFIS;
00051 volatile UINT32 OPLFIM;
00052 volatile UINT32 R1[2] ;
00053 volatile UINT32 MBOX0;
00054 volatile UINT32 MBOX1;
00055
00056 volatile UINT32 MBOX2;
00057 volatile UINT32 MBOX3;
00058 volatile UINT32 MBOX4;
00059 volatile UINT32 MBOX5;
00060 volatile UINT32 MBOX6;
00061 volatile UINT32 MBOX7;
00062 volatile UINT32 P2LDBELL;
00063 volatile UINT32 L2PDBELL;
00064 volatile UINT32 INTCSR;
00065 volatile UINT32 CNTRL;
00066 volatile UINT32 PCIHIDR;
00067 volatile UINT32 PCIHREV;
00068 volatile UINT32 MBOX0_N;
00069 volatile UINT32 MBOX1_N;
00070
00071
00072 volatile UINT32 DMAMODE0;
00073 volatile UINT32 DMAPADR0;
00074 volatile UINT32 DMALADR0;
00075 volatile UINT32 DMASIZ0;
00076 volatile UINT32 DMADPR0;
00077 volatile UINT32 DMAMODE1;
00078 volatile UINT32 DMAPADR1;
00079 volatile UINT32 DMALADR1;
00080 volatile UINT32 DMASIZ1;
00081 volatile UINT32 DMADPR1;
00082 volatile UINT32 DMACSR;
00083 volatile UINT32 DMAARB;
00084 volatile UINT32 DMATHR;
00085
00086 volatile UINT32 R3[3] ;
00087
00088 volatile UINT32 MQCR;
00089 volatile UINT32 QBAR;
00090 volatile UINT32 IFHPR;
00091 volatile UINT32 IFTPR;
00092 volatile UINT32 IPHPR;
00093 volatile UINT32 IPTPR;
00094 volatile UINT32 OFHPR;
00095 volatile UINT32 OFTPR;
00096 volatile UINT32 OPHPR;
00097 volatile UINT32 OPTPR;
00098 volatile UINT32 QSR;
00099 volatile UINT32 R2;
00100
00101 volatile UINT32 LAS1RR;
00102 volatile UINT32 LAS1BA;
00103 volatile UINT32 LBRD1;
00104
00105 } ;
00106
00107
00108
00109
00110 #ifdef __cplusplus
00111 }
00112 #endif
00113 #endif