Rockwell Automation 2711P Software Development Kit User Manual User Manual
Page 86
Publication 2711P-UM005A-EN-P - March 2007
86 Device Drivers
#define DRV_USE_IO // set to use port IO
#define DRV_USE_PCI // set to use PCI DDK
#define DRV_USE_ISR // set to invoke ISR handler
/////////////////////////////////////////////////////////////////////
//
// GIISR constants
//
// Refer to Microsoft documentation on the GIISR chain handler DLL for a
// detailed description of these parameters
//
// NOTE: these are example values.
//
/////////////////////////////////////////////////////////////////////
#define DRV_PORT_ADDR 0xb0000000
#define DRV_PORT_SIZE sizeof(DWORD)
#define DRV_IRQ 0x1
#define DRV_SYSINTR 0x10
#if defined (DRV_USE_PCI)
#define DRV_VENDOR_ID 0x1010
#define DRV_DEVICE_ID 0x0101
/////////////////////////////////////////////////////////////////////
//
// PCI constants
//
// Refer to Microsoft documentation on PCI device drivers for a
// detailed description of these parameters
//
// NOTE: these are example values.
//
/////////////////////////////////////////////////////////////////////
#define DRV_DEVICE_NUM 1
#define DRV_FUNC_NUM 0
#define DRV_BUS_NUM 0
#endif // defined (DRV_USE_PCI)
#define DRV_INTSTAT_PENDING 0x1
/////////////////////////////////////////////////////////////////////
//
// DEBUG ZONE constants
//
// Refer to Microsoft documentation on DEBUG ZONES for a
// detailed description of these parameters
//
/////////////////////////////////////////////////////////////////////
#define ZONE_INIT DEBUGZONE(0)
#define ZONE_FUNC DEBUGZONE(13)
#define ZONE_WARN DEBUGZONE(14)
#define ZONE_ERROR DEBUGZONE(15)
//
// Macro used to call the HAL IOCTL to get a SYSINTR
// assigned to a IRQ (can be used to create the assignment also)
//
#define REQUEST_SYSINTR(i,s) \