rtems_unsigned32 Read_pci_device_register( rtems_unsigned32 address ) { rtems_unsigned32 data; /* * Write the PCI configuration address */ PCI_bus_write( (volatile rtems_unsigned32 *)SCORE603E_PCI_IO_CFG_ADDR, address ); /* * Delay needed when running out of DRAM */ PCI_bus_delay (); /* * read data */ data = PCI_bus_read( (volatile rtems_unsigned32 *)SCORE603E_PCI_IO_CFG_DATA ); return data; }
uint32_t Read_pci_device_register( uint32_t address ) { uint32_t data; /* * Write the PCI configuration address */ PCI_bus_write( (volatile uint32_t*)SCORE603E_PCI_IO_CFG_ADDR, address ); /* * Delay needed when running out of DRAM */ PCI_bus_delay (); /* * read data */ data = PCI_bus_read( (volatile uint32_t*)SCORE603E_PCI_IO_CFG_DATA ); return data; }