forked from Imagelibrary/rtems
2005-03-04 Joel Sherrill <joel@OARcorp.com>
* vmeUniverse/README.porting, vmeUniverse/vmeUniverse.c: Make PCI initialize function part of the unified PCI API as pci_initialize().
This commit is contained in:
@@ -57,7 +57,7 @@ possible to override some things without having to modify the driver code.
|
||||
CFLAGS += -DBSP_PIC_DO_EOI=do{}while(0)
|
||||
CFLAGS += -DBSP_PCI_CONFIG_IN_LONG=PCIConfigRead32
|
||||
CFLAGS += -DBSP_PCI_CONFIG_IN_BYTE=PCIConfigRead8
|
||||
(you still need to supply BSP_pciFindDevice)
|
||||
(you still need to supply pci_find_by_devid)
|
||||
3) create your own version of vmeUniverseInstallIrqMgr():
|
||||
copy to a separate file and replace
|
||||
BSP_rtems_install_irq_handler() by a proper call to set_vector.
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
/* allow the BSP to override the default routines */
|
||||
#ifndef BSP_PCI_FIND_DEVICE
|
||||
#define BSP_PCI_FIND_DEVICE BSP_pciFindDevice
|
||||
#define BSP_PCI_FIND_DEVICE pci_find_by_devid
|
||||
#endif
|
||||
#ifndef BSP_PCI_CONFIG_IN_LONG
|
||||
#define BSP_PCI_CONFIG_IN_LONG pci_read_config_dword
|
||||
|
||||
Reference in New Issue
Block a user