310
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
PCI Bus Functional Model
DLLIMPEX int pci_set_error_level(int level);
/**
Register a callback function from another DLL so that any
accesses to slave devices by the IXP can be notified.
Each PCI bus transaction will trigger one callback.
This function is to be called by a C program from another
DLL.
Parameters for Callback are listed below
Callback(
- int dev_id (identifies which device)
- int rw (0=read, 1=write, 2=abnormal termina-
tion)
- int space (0=IO, 1=Mem)
- int addr (starting address)
- int size (number of 32-bit dwords)
)
*/
DLLIMPEX void pci_register_callback(
int device_id,
void (*fnCallback)(int dev_id, int rw, int space, int
addr, int size)
);
#endif // __PCICONFX_H