diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-30 08:42:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-30 08:42:57 +0000 |
commit | 8149a2debed68f7917433ad754e78a56b4acd408 (patch) | |
tree | 447baf7b1d7ff7d547fdf78effa374382669c299 /c/src/lib/libbsp/i386 | |
parent | 2007-03-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-8149a2debed68f7917433ad754e78a56b4acd408.tar.bz2 |
Reflect changes to rtems/pci.h.
Convert to using stdint fixed-size types.
Diffstat (limited to 'c/src/lib/libbsp/i386')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/pci/pcibios.c | 18 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/shared/pci/pcibios.h | 12 |
2 files changed, 15 insertions, 15 deletions
diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.c b/c/src/lib/libbsp/i386/shared/pci/pcibios.c index 6c3517667b..9c96c96979 100644 --- a/c/src/lib/libbsp/i386/shared/pci/pcibios.c +++ b/c/src/lib/libbsp/i386/shared/pci/pcibios.c @@ -233,7 +233,7 @@ pci_bus_count() unsigned char bus; unsigned char dev; unsigned char hd = 0; - unsigned int d = 0; + uint32_t d = 0; int sig; ucBusCount = 0; @@ -320,7 +320,7 @@ pcib_special_cycle(int busNo, int data) * Read byte from config space */ int -pcib_conf_read8(int sig, int off, unsigned char *data) +pcib_conf_read8(int sig, int off, uint8_t *data) { if (!pcibInitialized) { return PCIB_ERR_UNINITIALIZED; @@ -356,7 +356,7 @@ pcib_conf_read8(int sig, int off, unsigned char *data) * Read word from config space */ int -pcib_conf_read16(int sig, int off, unsigned short *data) +pcib_conf_read16(int sig, int off, uint16_t *data) { if (!pcibInitialized) { return PCIB_ERR_UNINITIALIZED; @@ -392,7 +392,7 @@ pcib_conf_read16(int sig, int off, unsigned short *data) * Read dword from config space */ int -pcib_conf_read32(int sig, int off, unsigned int *data) +pcib_conf_read32(int sig, int off, uint32_t *data) { if (!pcibInitialized) { return PCIB_ERR_UNINITIALIZED; @@ -428,7 +428,7 @@ pcib_conf_read32(int sig, int off, unsigned int *data) * Write byte into config space */ int -pcib_conf_write8(int sig, int off, unsigned int data) +pcib_conf_write8(int sig, int off, uint8_t data) { if (!pcibInitialized) { return PCIB_ERR_UNINITIALIZED; @@ -458,7 +458,7 @@ pcib_conf_write8(int sig, int off, unsigned int data) * Write word into config space */ int -pcib_conf_write16(int sig, int off, unsigned int data) +pcib_conf_write16(int sig, int off, uint16_t data) { if (!pcibInitialized) { return PCIB_ERR_UNINITIALIZED; @@ -490,7 +490,7 @@ pcib_conf_write16(int sig, int off, unsigned int data) * Write dword into config space */ int -pcib_conf_write32(int sig, int off, unsigned int data) +pcib_conf_write32(int sig, int off, uint32_t data) { if (!pcibInitialized){ return PCIB_ERR_UNINITIALIZED; @@ -575,7 +575,7 @@ indirect_pci_read_config_dword( unsigned char slot, unsigned char fun, unsigned char offset, - unsigned int *val + uint32_t *val ) { int sig; @@ -623,7 +623,7 @@ indirect_pci_write_config_dword( unsigned char slot, unsigned char fun, unsigned char offset, - unsigned int val + uint32_t val ) { int sig; diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.h b/c/src/lib/libbsp/i386/shared/pci/pcibios.h index 8d8f9016bd..1a628cc0bf 100644 --- a/c/src/lib/libbsp/i386/shared/pci/pcibios.h +++ b/c/src/lib/libbsp/i386/shared/pci/pcibios.h @@ -29,12 +29,12 @@ extern "C" { int pcib_find_by_class(int classCode, int idx, int *sig); int pcib_special_cycle(int busNo, int data); -int pcib_conf_read8(int sig, int off, unsigned char *data); -int pcib_conf_read16(int sig, int off, unsigned short *data); -int pcib_conf_read32(int sig, int off, unsigned int *data); -int pcib_conf_write8(int sig, int off, unsigned int data); -int pcib_conf_write16(int sig, int off, unsigned int data); -int pcib_conf_write32(int sig, int off, unsigned int data); +int pcib_conf_read8(int sig, int off, uint8_t *data); +int pcib_conf_read16(int sig, int off, uint16_t *data); +int pcib_conf_read32(int sig, int off, uint32_t *data); +int pcib_conf_write8(int sig, int off, uint8_t data); +int pcib_conf_write16(int sig, int off, uint16_t data); +int pcib_conf_write32(int sig, int off, uint32_t data); int pci_find_device( unsigned short vendorid, unsigned short deviceid, |