diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-02 12:08:36 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-02 12:08:36 +0000 |
commit | 9c948b795bd2142bfbc2ccb2d8f3e2e26dea9b7d (patch) | |
tree | 237193ea14e2c076f94da8aa4a68eec25b3362c8 /c/src/lib/libbsp/powerpc/shared/pci/pci.c | |
parent | Use uint*_t instead of char/short/int. (diff) | |
download | rtems-9c948b795bd2142bfbc2ccb2d8f3e2e26dea9b7d.tar.bz2 |
More stdint.h fixed-size types.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/pci/pci.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/pci/pci.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.c b/c/src/lib/libbsp/powerpc/shared/pci/pci.c index ff2d792439..db2f4d9997 100644 --- a/c/src/lib/libbsp/powerpc/shared/pci/pci.c +++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.c @@ -51,7 +51,7 @@ indirect_pci_read_config_byte( unsigned char slot, unsigned char function, unsigned char offset, - unsigned char *val + uint8_t *val ) { out_be32((unsigned int*) pci.pci_config_addr, 0x80|(bus<<8)|(PCI_DEVFN(slot,function)<<16)|((offset&~3)<<24)); @@ -65,7 +65,7 @@ indirect_pci_read_config_word( unsigned char slot, unsigned char function, unsigned char offset, - unsigned short *val + uint16_t *val ) { *val = 0xffff; if (offset&1) @@ -101,7 +101,7 @@ indirect_pci_write_config_byte( unsigned char slot, unsigned char function, unsigned char offset, - unsigned char val + uint8_t val ) { out_be32((unsigned int*) pci.pci_config_addr, 0x80|(bus<<8)|(PCI_DEVFN(slot,function)<<16)|((offset&~3)<<24)); @@ -115,7 +115,7 @@ indirect_pci_write_config_word( unsigned char slot, unsigned char function, unsigned char offset, - unsigned short val + uint16_t val ) { if (offset&1) return PCIBIOS_BAD_REGISTER_NUMBER; @@ -163,7 +163,7 @@ direct_pci_read_config_byte( unsigned char slot, unsigned char function, unsigned char offset, - unsigned char *val + uint8_t *val ) { if (bus != 0 || (1<<slot & 0xff8007fe)) { *val=0xff; @@ -180,7 +180,7 @@ direct_pci_read_config_word( unsigned char slot, unsigned char function, unsigned char offset, - unsigned short *val + uint16_t *val ) { *val = 0xffff; if (offset&1) @@ -220,7 +220,7 @@ direct_pci_write_config_byte( unsigned char slot, unsigned char function, unsigned char offset, - unsigned char val + uint8_t val ) { if (bus != 0 || (1<<slot & 0xff8007fe)) return PCIBIOS_DEVICE_NOT_FOUND; @@ -237,7 +237,7 @@ direct_pci_write_config_word( unsigned char slot, unsigned char function, unsigned char offset, - unsigned short val + uint16_t val ) { if (offset&1) return PCIBIOS_BAD_REGISTER_NUMBER; |