Development Tools User’s Guide
307
Intel
®
IXP2400/IXP2800 Network Processors
PCI Bus Functional Model
DLLIMPEX int pci_set_param(int device_id, int io_memory, int
start_addr, int size);
/**
The pci_connect_device function connects a device to the PCI
bus
on a specific chip.
The normal sequence of initialization is as follows.
-# pci_define_device()
-# pci_set_param(I/O space) | pci_set_param(memory space)
-# pci_connect_device()
@param chip_name The name of the chip
@param device_id The device_id used with pci_define_device()
and pci_set_param()
@return 1 on succes, 0 on failure
*/
DLLIMPEX int pci_connect_device(char *chip_name, int device_id);
/**
pci_remove_device disconnects a device and then deletes it.
Essentially,
the function performs the inverse operations of
pci_define_device
and pci_connect_device.
@param iDev The device ID of the device to be removed. The
device
will be disconnected from the PCI Bus and
then deleted.
The device ID can be re-used in new calls
to
pci_define_device
@return 1 on success, 0 on failure
*/
DLLIMPEX int pci_remove_device(int iDev);
/**
The pci_slave_read function reads a slave device's memory.