Ignore:
Timestamp:
Mar 31, 2004, 3:52:40 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
94993c0
Parents:
d352678
Message:

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • bootloader/misc.c, bootloader/pci.c, console/inch.c, include/bsp.h, pci/pci.c, startup/bspstart.c, startup/sbrk.c: Convert to using c99 fixed size types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/bootloader/pci.c

    rd352678 rbde7f268  
    11161116static struct _addr_start
    11171117{
    1118       unsigned32 start_pcimem;
    1119       unsigned32 start_pciio;
    1120       unsigned32 start_prefetch;
     1118      uint32_t  start_pcimem;
     1119      uint32_t  start_pciio;
     1120      uint32_t  start_prefetch;
    11211121} astart;
    11221122
     
    11811181      {
    11821182         struct _addr_start   addrhold;
    1183          unsigned8            base8, limit8;
    1184          unsigned16           base16, limit16, ubase16, ulimit16;
     1183         uint8_t              base8, limit8;
     1184         uint16_t             base16, limit16, ubase16, ulimit16;
    11851185
    11861186         /* save the base address values */
     
    12131213         else
    12141214         {
    1215             base8    = (unsigned8) ((addrhold.start_pciio >> 8) & 0xf0);
    1216             ubase16  = (unsigned16)(addrhold.start_pciio >> 16);
    1217             limit8   = (unsigned8) ((astart.start_pciio >> 8 ) & 0xf0);
    1218             ulimit16 = (unsigned16)(astart.start_pciio >> 16);
     1215            base8    = (uint8_t) ((addrhold.start_pciio >> 8) & 0xf0);
     1216            ubase16  = (uint16_t)(addrhold.start_pciio >> 16);
     1217            limit8   = (uint8_t) ((astart.start_pciio >> 8 ) & 0xf0);
     1218            ulimit16 = (uint16_t)(astart.start_pciio >> 16);
    12191219            astart.start_pciio += 0x1000;
    12201220         }
     
    12411241         else
    12421242         {
    1243             limit16= (unsigned16)((astart.start_pcimem >> 16) & 0xfff0);
    1244             base16 = (unsigned16)((addrhold.start_pcimem >> 16) & 0xfff0);
     1243            limit16= (uint16_t)((astart.start_pcimem >> 16) & 0xfff0);
     1244            base16 = (uint16_t)((addrhold.start_pcimem >> 16) & 0xfff0);
    12451245            astart.start_pcimem += 0x100000;
    12461246         }
     
    12621262         else
    12631263         {
    1264             limit16= (unsigned16)((addrhold.start_prefetch >> 16) & 0xfff0);
    1265             base16 = (unsigned16)((astart.start_prefetch >> 16) & 0xfff0);
     1264            limit16= (uint16_t)((addrhold.start_prefetch >> 16) & 0xfff0);
     1265            base16 = (uint16_t)((astart.start_prefetch >> 16) & 0xfff0);
    12661266            astart.start_prefetch -= 0x100000;
    12671267         }
     
    12781278
    12791279#ifdef WRITE_BRIDGE_ENABLE
    1280          pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_BRIDGE_CONTROL, (unsigned16)( PCI_BRIDGE_CTL_PARITY |
     1280         pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_BRIDGE_CONTROL, (uint16_t)( PCI_BRIDGE_CTL_PARITY |
    12811281                                                                                                     PCI_BRIDGE_CTL_SERR ));
    12821282
    1283          pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_COMMAND, (unsigned16)( PCI_COMMAND_IO |
     1283         pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_COMMAND, (uint16_t)( PCI_COMMAND_IO |
    12841284                                                                                              PCI_COMMAND_MEMORY |
    12851285                                                                                              PCI_COMMAND_MASTER |
Note: See TracChangeset for help on using the changeset viewer.