Ignore:
Timestamp:
Jan 9, 2004, 3:40:54 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
89b46875
Parents:
4056604
Message:

2004-01-08 Ralf Corsepius <corsepiu@…>

  • include/rtems/blkdev.h, include/rtems/ide_part_table.h, src/bdbuf.c, src/ide_part_table.c, src/ramdisk.c: Switch to using c99 fixed size types instead of RTEMS-types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/ide_part_table.c

    r4056604 rc01d95b7  
    4747 */
    4848static rtems_status_code
    49 get_sector(dev_t dev, unsigned32 sector_num, sector_data_t **sector)
     49get_sector(dev_t dev, uint32_t sector_num, sector_data_t **sector)
    5050{
    5151    sector_data_t      *s;
     
    9595msdos_signature_check (sector_data_t *sector)
    9696{
    97     unsigned8 *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
     97    uint8_t *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
    9898
    9999    return ((p[0] == RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA1) &&
     
    113113 */
    114114static rtems_boolean
    115 is_extended(unsigned8 type)
     115is_extended(uint8_t type)
    116116{
    117117    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
     
    129129 */
    130130static rtems_boolean
    131 is_fat_partition(unsigned8 type)
    132 {
    133   static const unsigned8 fat_part_types[] = {
     131is_fat_partition(uint8_t type)
     132{
     133  static const uint8_t fat_part_types[] = {
    134134    DOS_FAT12_PARTITION,DOS_FAT16_PARTITION,
    135135    DOS_P32MB_PARTITION,
     
    157157 */
    158158static rtems_status_code
    159 data_to_part_desc(unsigned8 *data, part_desc_t **new_part_desc)
     159data_to_part_desc(uint8_t *data, part_desc_t **new_part_desc)
    160160{
    161161    part_desc_t *part_desc;
    162     unsigned32   temp;
     162    uint32_t     temp;
    163163
    164164    if (new_part_desc == NULL)
     
    180180
    181181    /* due to incorrect data alignment one have to align data first */
    182     memcpy(&temp, data + RTEMS_IDE_PARTITION_START_OFFSET, sizeof(unsigned32));
     182    memcpy(&temp, data + RTEMS_IDE_PARTITION_START_OFFSET, sizeof(uint32_t));
    183183    part_desc->start = LE_TO_CPU_U32(temp);
    184184
    185     memcpy(&temp, data + RTEMS_IDE_PARTITION_SIZE_OFFSET, sizeof(unsigned32));
     185    memcpy(&temp, data + RTEMS_IDE_PARTITION_SIZE_OFFSET, sizeof(uint32_t));
    186186    part_desc->size = LE_TO_CPU_U32(temp);
    187187
     
    220220 */
    221221static rtems_status_code
    222 read_extended_partition(unsigned32 start, part_desc_t *ext_part)
     222read_extended_partition(uint32_t start, part_desc_t *ext_part)
    223223{
    224224    int                 i;
    225225    dev_t               dev;
    226226    sector_data_t      *sector;
    227     unsigned32          here;
    228     unsigned8          *data;
     227    uint32_t            here;
     228    uint8_t            *data;
    229229    part_desc_t        *new_part_desc;
    230230    rtems_status_code   rc;
     
    320320    sector_data_t      *sector;
    321321    part_desc_t        *part_desc;
    322     unsigned8          *data;
     322    uint8_t            *data;
    323323    rtems_status_code   rc;
    324324    dev_t               dev = disk_desc->dev;
Note: See TracChangeset for help on using the changeset viewer.