0_0_21599559_26239.cpp:15:5: error: 'PLX_SVC_DRIVER_NAME' was not declared in this scope
PLX_SVC_DRIVER_NAME, // PLX PCI service must be last driver
^
0_0_21599559_26239.cpp: In function 'int Open422Device()':
0_0_21599559_26239.cpp:25:5: error: 'PLX_DEVICE_KEY' was not declared in this scope
PLX_DEVICE_KEY Key;
^
0_0_21599559_26239.cpp:26:5: error: 'U16' was not declared in this scope
U16 DeviceNum=0;
^
0_0_21599559_26239.cpp:27:5: error: 'U32' was not declared in this scope
U32 RegVal;
^
0_0_21599559_26239.cpp:30:11: error: 'Key' was not declared in this scope
memset( &Key, PCI_FIELD_IGNORE, sizeof(PLX_DEVICE_KEY) );
^
0_0_21599559_26239.cpp:30:16: error: 'PCI_FIELD_IGNORE' was not declared in this scope
memset( &Key, PCI_FIELD_IGNORE, sizeof(PLX_DEVICE_KEY) );
^
0_0_21599559_26239.cpp:30:57: error: 'memset' was not declared in this scope
memset( &Key, PCI_FIELD_IGNORE, sizeof(PLX_DEVICE_KEY) );
^
0_0_21599559_26239.cpp:34:12: error: 'U8' was not declared in this scope
Key.bus =(U8)-1;
^
0_0_21599559_26239.cpp:37:2: error: 'g_rc' was not declared in this scope
g_rc = PlxPci_DeviceFind(&Key, DeviceNum);
^
0_0_21599559_26239.cpp:37:34: error: 'DeviceNum' was not declared in this scope
g_rc = PlxPci_DeviceFind(&Key, DeviceNum);
^
0_0_21599559_26239.cpp:37:43: error: 'PlxPci_DeviceFind' was not declared in this scope
g_rc = PlxPci_DeviceFind(&Key, DeviceNum);
^
0_0_21599559_26239.cpp:40:15: error: 'PLX_STATUS_OK' was not declared in this scope
if ((g_rc != PLX_STATUS_OK))
^
0_0_21599559_26239.cpp:42:10: error: 'FAIL' was not declared in this scope
return FAIL;
^
0_0_21599559_26239.cpp:46:3: error: 'RegVal' was not declared in this scope
RegVal = PlxPci_PciRegisterRead(Key.bus,Key.slot, Key.function,0X2C,&g_rc);
^
0_0_21599559_26239.cpp:46:76: error: 'PlxPci_PciRegisterRead' was not declared in this scope
RegVal = PlxPci_PciRegisterRead(Key.bus,Key.slot, Key.function,0X2C,&g_rc);
^
0_0_21599559_26239.cpp:49:43: error: 'g_hDevice' was not declared in this scope
g_rc = PlxPci_DeviceOpen(&Key,&g_hDevice);
^
0_0_21599559_26239.cpp:49:52: error: 'PlxPci_DeviceOpen' was not declared in this scope
g_rc = PlxPci_DeviceOpen(&Key,&g_hDevice);
^
0_0_21599559_26239.cpp:50:17: error: 'ApiSuccess' was not declared in this scope
if (g_rc != ApiSuccess)
^
0_0_21599559_26239.cpp:52:13: error: 'NOBOARD' was not declared in this scope
return NOBOARD;
^
0_0_21599559_26239.cpp:55:36: error: 'g_MemBase' was not declared in this scope
PlxPci_PciBarMap(&g_hDevice,2,&g_MemBase);
^
0_0_21599559_26239.cpp:55:45: error: 'PlxPci_PciBarMap' was not declared in this scope
PlxPci_PciBarMap(&g_hDevice,2,&g_MemBase);
^
0_0_21599559_26239.cpp:57:36: error: 'g_PlxRegBase' was not declared in this scope
PlxPci_PciBarMap(&g_hDevice,0,&g_PlxRegBase);
^
0_0_21599559_26239.cpp:59:20: error: 'Reset422Device' was not declared in this scope
Reset422Device();
^
0_0_21599559_26239.cpp:60:15: error: '_sleep' was not declared in this scope
_sleep(100);
^
0_0_21599559_26239.cpp:63:29: error: 'BOARDFLAG' was not declared in this scope
if ((BOARDFLAG(g_MemBase)&0xff00) != 0x4200)
^
0_0_21599559_26239.cpp:65:13: error: 'NOBOARD' was not declared in this scope
return NOBOARD;
^
0_0_21599559_26239.cpp:67:5: error: 'g_MaxChannel' was not declared in this scope
g_MaxChannel = (BOARDFLAG(g_MemBase)&0xff);
^
0_0_21599559_26239.cpp:67:40: error: 'BOARDFLAG' was not declared in this scope
g_MaxChannel = (BOARDFLAG(g_MemBase)&0xff);
^
0_0_21599559_26239.cpp:70:13: error: 'FAIL' was not declared in this scope
return FAIL;
^
0_0_21599559_26239.cpp:74:23: error: 'WORKMODE' was not declared in this scope
WORKMODE(g_MemBase) = 0; //空工作模式
^
0_0_21599559_26239.cpp:76:23: error: 'GPIOC' was not declared in this scope
GPIOC(g_PlxRegBase) = GPIOPARAM;
^
0_0_21599559_26239.cpp:76:28: error: 'GPIOPARAM' was not declared in this scope
GPIOC(g_PlxRegBase) = GPIOPARAM;
^
0_0_21599559_26239.cpp:79:30: error: 'DSPREADY' was not declared in this scope
while( DSPREADY(g_MemBase)!=1)
^
0_0_21599559_26239.cpp:88:27: error: 'TEST422' was not declared in this scope
if ((TEST422(g_MemBase) !=0) || (TESTDRAM(g_MemBase) !=0))
^
0_0_21599559_26239.cpp:88:56: error: 'TESTDRAM' was not declared in this scope
if ((TEST422(g_MemBase) !=0) || (TESTDRAM(g_MemBase) !=0))
^
0_0_21599559_26239.cpp:91:13: error: 'FAIL' was not declared in this scope
return FAIL;
^
0_0_21599559_26239.cpp:93:12: error: 'SUCC' was not declared in this scope
return SUCC;
^
0_0_21599559_26239.cpp:97:21: error: 'FAIL' was not declared in this scope
return FAIL;
^
|