Changeset 83c5fc1 in rtems


Ignore:
Timestamp:
Mar 23, 2004, 6:07:53 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ee4f57d
Parents:
f91bbe64
Message:

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

  • libcsupport/include/chain.h, libcsupport/include/clockdrv.h, libcsupport/include/ringbuf.h, libcsupport/include/spurious.h, libcsupport/include/timerdrv.h, libcsupport/include/vmeintr.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/libio.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libcsupport/src/gettod.c, libcsupport/src/assoc.c, libcsupport/src/assocnamebad.c, libcsupport/src/error.c, libcsupport/src/libio.c, libcsupport/src/libio_sockets.c, libcsupport/src/malloc.c, libcsupport/src/no_libc.c, libcsupport/src/termios.c, libcsupport/src/termiosreserveresources.c: Convert to using c99 fixed-size types.
Location:
cpukit
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf91bbe64 r83c5fc1  
     12004-03-23      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * libcsupport/include/chain.h, libcsupport/include/clockdrv.h,
     4        libcsupport/include/ringbuf.h, libcsupport/include/spurious.h,
     5        libcsupport/include/timerdrv.h, libcsupport/include/vmeintr.h,
     6        libcsupport/include/motorola/mc68230.h,
     7        libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/libio.h,
     8        libcsupport/include/rtems/libio_.h,
     9        libcsupport/include/rtems/termiostypes.h,
     10        libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h,
     11        libcsupport/include/zilog/z8536.h, libcsupport/src/__gettod.c,
     12        libcsupport/src/assoc.c, libcsupport/src/assocnamebad.c,
     13        libcsupport/src/error.c,  libcsupport/src/libio.c,
     14        libcsupport/src/libio_sockets.c, libcsupport/src/malloc.c,
     15        libcsupport/src/no_libc.c, libcsupport/src/termios.c,
     16        libcsupport/src/termiosreserveresources.c: Convert to using c99
     17        fixed-size types.
     18
    1192004-03-22      Ralf Corsepius <ralf_corsepius@rtems.org>
    220
  • cpukit/libcsupport/include/chain.h

    rf91bbe64 r83c5fc1  
    2929 *  Chain_Control                    *the_chain,                 * IN  *
    3030 *  void                             *starting_address,          * IN  *
    31  *  rtems_unsigned32                  number_nodes,              * IN  *
    32  *  rtems_unsigned32                  node_size                  * IN  *
     31 *  uint32_t                    number_nodes,            * IN  *
     32 *  uint32_t                    node_size                        * IN  *
    3333 */
    3434
  • cpukit/libcsupport/include/clockdrv.h

    rf91bbe64 r83c5fc1  
    2222/* variables */
    2323
    24 extern volatile rtems_unsigned32 Clock_driver_ticks;
     24extern volatile uint32_t  Clock_driver_ticks;
    2525extern rtems_device_major_number rtems_clock_major;
    2626extern rtems_device_minor_number rtems_clock_minor;
  • cpukit/libcsupport/include/motorola/mc68230.h

    rf91bbe64 r83c5fc1  
    5959/* Some RTEMS style defines: */
    6060#ifndef VOL8
    61 #define VOL8( ptr )   ((volatile rtems_unsigned8 *)(ptr))
     61#define VOL8( ptr )   ((volatile uint8_t  *)(ptr))
    6262#endif
    6363
  • cpukit/libcsupport/include/ringbuf.h

    rf91bbe64 r83c5fc1  
    3333#define Ring_buffer_Add_character( _buffer, _ch ) \
    3434  do { \
    35     rtems_unsigned32 isrlevel; \
     35    uint32_t  isrlevel; \
    3636    \
    3737    rtems_interrupt_disable( isrlevel ); \
     
    4343#define Ring_buffer_Remove_character( _buffer, _ch ) \
    4444  do { \
    45     rtems_unsigned32 isrlevel; \
     45    uint32_t  isrlevel; \
    4646    \
    4747    rtems_interrupt_disable( isrlevel ); \
  • cpukit/libcsupport/include/rtems/assoc.h

    rf91bbe64 r83c5fc1  
    1313typedef struct {
    1414    const char   *name;
    15     unsigned32   local_value;
    16     unsigned32   remote_value;
     15    uint32_t     local_value;
     16    uint32_t     remote_value;
    1717} rtems_assoc_t;
    1818
     
    2424
    2525const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *);
    26 const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, unsigned32);
    27 const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, unsigned32);
     26const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, uint32_t  );
     27const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, uint32_t  );
    2828
    29 unsigned32   rtems_assoc_remote_by_local(const rtems_assoc_t *, unsigned32);
    30 unsigned32   rtems_assoc_local_by_remote(const rtems_assoc_t *, unsigned32);
    31 unsigned32   rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);
    32 unsigned32   rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);
    33 const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, unsigned32);
    34 const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, unsigned32);
     29uint32_t     rtems_assoc_remote_by_local(const rtems_assoc_t *, uint32_t  );
     30uint32_t     rtems_assoc_local_by_remote(const rtems_assoc_t *, uint32_t  );
     31uint32_t     rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);
     32uint32_t     rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);
     33const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, uint32_t  );
     34const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, uint32_t  );
    3535
    36 unsigned32   rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, unsigned32);
    37 char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, unsigned32, char *);
    38 char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, unsigned32, char *);
    39 unsigned32   rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, unsigned32);
     36uint32_t     rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, uint32_t  );
     37char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, uint32_t  , char *);
     38char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, uint32_t  , char *);
     39uint32_t     rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, uint32_t  );
    4040
    4141
  • cpukit/libcsupport/include/rtems/libio.h

    rf91bbe64 r83c5fc1  
    4949  rtems_libio_t *iop,
    5050  const char    *pathname,
    51   unsigned32     flag,
    52   unsigned32     mode
     51  uint32_t       flag,
     52  uint32_t       mode
    5353);
    5454
     
    6060  rtems_libio_t *iop,
    6161  void          *buffer,
    62   unsigned32     count
     62  uint32_t       count
    6363);
    6464
     
    6666  rtems_libio_t *iop,
    6767  const void    *buffer,
    68   unsigned32    count
     68  uint32_t      count
    6969);
    7070
    7171typedef int (*rtems_filesystem_ioctl_t)(
    7272  rtems_libio_t *iop,
    73   unsigned32     command,
     73  uint32_t       command,
    7474  void          *buffer
    7575);
     
    341341    off_t                             size;      /* size of file */
    342342    off_t                             offset;    /* current offset into file */
    343     unsigned32                        flags;
     343    uint32_t                          flags;
    344344    rtems_filesystem_location_info_t  pathinfo;
    345345    Objects_Id                        sem;     
    346     unsigned32                        data0;     /* private to "driver" */
     346    uint32_t                          data0;     /* private to "driver" */
    347347    void                             *data1;     /* ... */
    348348    void                             *file_info; /* used by file handlers */
     
    359359    rtems_libio_t          *iop;
    360360    off_t                   offset;
    361     unsigned8              *buffer;
    362     unsigned32              count;
    363     unsigned32              flags;
    364     unsigned32              bytes_moved;
     361    uint8_t                *buffer;
     362    uint32_t                count;
     363    uint32_t                flags;
     364    uint32_t                bytes_moved;
    365365} rtems_libio_rw_args_t;
    366366
     
    371371typedef struct {
    372372    rtems_libio_t          *iop;
    373     unsigned32              flags;
    374     unsigned32              mode;
     373    uint32_t                flags;
     374    uint32_t                mode;
    375375} rtems_libio_open_close_args_t;
    376376
     
    381381typedef struct {
    382382    rtems_libio_t          *iop;
    383     unsigned32              command;
     383    uint32_t                command;
    384384    void                   *buffer;
    385     unsigned32              ioctl_return;
     385    uint32_t                ioctl_return;
    386386} rtems_libio_ioctl_args_t;
    387387
     
    407407typedef int (*rtems_libio_open_t)(
    408408  const char  *pathname,
    409   unsigned32  flag,
    410   unsigned32  mode
     409  uint32_t    flag,
     410  uint32_t    mode
    411411);
    412412
     
    418418  int         fd,
    419419  void       *buffer,
    420   unsigned32  count
     420  uint32_t    count
    421421);
    422422
     
    424424  int         fd,
    425425  const void *buffer,
    426   unsigned32  count
     426  uint32_t    count
    427427);
    428428
    429429typedef int (*rtems_libio_ioctl_t)(
    430430  int         fd,
    431   unsigned32  command,
     431  uint32_t    command,
    432432  void       *buffer
    433433);
     
    602602void rtems_termios_reserve_resources(
    603603  rtems_configuration_table *configuration,
    604   rtems_unsigned32           number_of_devices
     604  uint32_t             number_of_devices
    605605);
    606606
  • cpukit/libcsupport/include/rtems/libio_.h

    rf91bbe64 r83c5fc1  
    4040 */
    4141
    42 extern unsigned32      rtems_libio_number_iops;
     42extern uint32_t        rtems_libio_number_iops;
    4343extern rtems_libio_t  *rtems_libio_iops;
    4444extern rtems_libio_t  *rtems_libio_last_iop;
     
    5252
    5353#define rtems_libio_iop(_fd) \
    54   ((((unsigned32)(_fd)) < rtems_libio_number_iops) ? \
     54  ((((uint32_t  )(_fd)) < rtems_libio_number_iops) ? \
    5555         &rtems_libio_iops[_fd] : 0)
    5656
     
    8787#define rtems_libio_check_fd(_fd) \
    8888  do {                                                     \
    89       if ((unsigned32) (_fd) >= rtems_libio_number_iops) { \
     89      if ((uint32_t  ) (_fd) >= rtems_libio_number_iops) { \
    9090          errno = EBADF;                                   \
    9191          return -1;                                       \
     
    207207rtems_libio_t *rtems_libio_allocate(void);
    208208
    209 unsigned32 rtems_libio_fcntl_flags(
    210   unsigned32 fcntl_flags
    211 );
    212 
    213 unsigned32 rtems_libio_to_fcntl_flags(
    214   unsigned32 flags
     209uint32_t  rtems_libio_fcntl_flags(
     210  uint32_t  fcntl_flags
     211);
     212
     213uint32_t  rtems_libio_to_fcntl_flags(
     214  uint32_t  flags
    215215);
    216216
  • cpukit/libcsupport/include/rtems/termiostypes.h

    rf91bbe64 r83c5fc1  
    9191         */
    9292        struct rtems_termios_rawbuf rawInBuf;
    93         rtems_unsigned32        rawInBufSemaphoreOptions;
     93        uint32_t        rawInBufSemaphoreOptions;
    9494        rtems_interval          rawInBufSemaphoreTimeout;
    9595        rtems_interval          rawInBufSemaphoreFirstTimeout;
  • cpukit/libcsupport/include/spurious.h

    rf91bbe64 r83c5fc1  
    2828  void *,
    2929  rtems_id,
    30   rtems_unsigned32 *
     30  uint32_t  *
    3131);
    3232
  • cpukit/libcsupport/include/timerdrv.h

    rf91bbe64 r83c5fc1  
    2424void Timer_initialize( void );
    2525
    26 rtems_unsigned32 Read_timer( void );
     26uint32_t  Read_timer( void );
    2727
    2828rtems_status_code Empty_function( void );
  • cpukit/libcsupport/include/vmeintr.h

    rf91bbe64 r83c5fc1  
    3131 */
    3232
    33 typedef rtems_unsigned8 VME_interrupt_Mask;
     33typedef uint8_t  VME_interrupt_Mask;
    3434
    3535/*
  • cpukit/libcsupport/include/zilog/z8036.h

    rf91bbe64 r83c5fc1  
    4747struct z8036_map {
    4848/* MAIN CONTROL REGISTERS (0x00-0x07) */
    49   rtems_unsigned8 MASTER_INTR;           /* Master Interrupt Ctl Reg */
    50   rtems_unsigned8 MASTER_CFG;            /* Master Configuration Ctl Reg */
    51   rtems_unsigned8 PORTA_VECTOR;          /* Port A - Interrupt Vector */
    52   rtems_unsigned8 PORTB_VECTOR;          /* Port B - Interrupt Vector */
    53   rtems_unsigned8 CNT_TMR_VECTOR;        /* Counter/Timer Interrupt Vector */
    54   rtems_unsigned8 PORTC_DATA_POLARITY;   /* Port C - Data Path Polarity */
    55   rtems_unsigned8 PORTC_DIRECTION;       /* Port C - Data Direction */
    56   rtems_unsigned8 PORTC_SPECIAL_IO_CTL;  /* Port C - Special IO Control */
     49  uint8_t  MASTER_INTR;           /* Master Interrupt Ctl Reg */
     50  uint8_t  MASTER_CFG;            /* Master Configuration Ctl Reg */
     51  uint8_t  PORTA_VECTOR;          /* Port A - Interrupt Vector */
     52  uint8_t  PORTB_VECTOR;          /* Port B - Interrupt Vector */
     53  uint8_t  CNT_TMR_VECTOR;        /* Counter/Timer Interrupt Vector */
     54  uint8_t  PORTC_DATA_POLARITY;   /* Port C - Data Path Polarity */
     55  uint8_t  PORTC_DIRECTION;       /* Port C - Data Direction */
     56  uint8_t  PORTC_SPECIAL_IO_CTL;  /* Port C - Special IO Control */
    5757/* MOST OFTEN ACCESSED REGISTERS (0x08 - 0x0f) */
    58   rtems_unsigned8 PORTA_CMD_STATUS;      /* Port A - Command Status Reg */
    59   rtems_unsigned8 PORTB_CMD_STATUS;      /* Port B - Command Status Reg */
    60   rtems_unsigned8 CT1_CMD_STATUS;        /* Ctr/Timer 1 - Command Status Reg */
    61   rtems_unsigned8 CT2_CMD_STATUS;        /* Ctr/Timer 2 - Command Status Reg */
    62   rtems_unsigned8 CT3_CMD_STATUS;        /* Ctr/Timer 3 - Command Status Reg */
    63   rtems_unsigned8 PORTA_DATA;            /* Port A - Data */
    64   rtems_unsigned8 PORTB_DATA;            /* Port B - Data */
    65   rtems_unsigned8 PORTC_DATA;            /* Port C - Data */
     58  uint8_t  PORTA_CMD_STATUS;      /* Port A - Command Status Reg */
     59  uint8_t  PORTB_CMD_STATUS;      /* Port B - Command Status Reg */
     60  uint8_t  CT1_CMD_STATUS;        /* Ctr/Timer 1 - Command Status Reg */
     61  uint8_t  CT2_CMD_STATUS;        /* Ctr/Timer 2 - Command Status Reg */
     62  uint8_t  CT3_CMD_STATUS;        /* Ctr/Timer 3 - Command Status Reg */
     63  uint8_t  PORTA_DATA;            /* Port A - Data */
     64  uint8_t  PORTB_DATA;            /* Port B - Data */
     65  uint8_t  PORTC_DATA;            /* Port C - Data */
    6666/* COUNTER/TIMER RELATED REGISTERS (0x10-0x1f) */
    67   rtems_unsigned8 CT1_CUR_CNT_MSB;       /* Ctr/Timer 1 - Current Count (MSB) */
    68   rtems_unsigned8 CT1_CUR_CNT_LSB;       /* Ctr/Timer 1 - Current Count (LSB) */
    69   rtems_unsigned8 CT2_CUR_CNT_MSB;       /* Ctr/Timer 2 - Current Count (MSB) */
    70   rtems_unsigned8 CT2_CUR_CNT_LSB;       /* Ctr/Timer 2 - Current Count (LSB) */
    71   rtems_unsigned8 CT3_CUR_CNT_MSB;       /* Ctr/Timer 3 - Current Count (MSB) */
    72   rtems_unsigned8 CT3_CUR_CNT_LSB;       /* Ctr/Timer 3 - Current Count (LSB) */
    73   rtems_unsigned8 CT1_TIME_CONST_MSB;    /* Ctr/Timer 1 - Time Constant (MSB) */
    74   rtems_unsigned8 CT1_TIME_CONST_LSB;    /* Ctr/Timer 1 - Time Constant (LSB) */
    75   rtems_unsigned8 CT2_TIME_CONST_MSB;    /* Ctr/Timer 2 - Time Constant (MSB) */
    76   rtems_unsigned8 CT2_TIME_CONST_LSB;    /* Ctr/Timer 2 - Time Constant (LSB) */
    77   rtems_unsigned8 CT3_TIME_CONST_MSB;    /* Ctr/Timer 3 - Time Constant (MSB) */
    78   rtems_unsigned8 CT3_TIME_CONST_LSB;    /* Ctr/Timer 3 - Time Constant (LSB) */
    79   rtems_unsigned8 CT1_MODE_SPEC;         /* Ctr/Timer 1 - Mode Specification  */
    80   rtems_unsigned8 CT2_MODE_SPEC;         /* Ctr/Timer 2 - Mode Specification  */
    81   rtems_unsigned8 CT3_MODE_SPEC;         /* Ctr/Timer 3 - Mode Specification  */
    82   rtems_unsigned8 CURRENT_VECTOR;        /* Current Vector */
     67  uint8_t  CT1_CUR_CNT_MSB;       /* Ctr/Timer 1 - Current Count (MSB) */
     68  uint8_t  CT1_CUR_CNT_LSB;       /* Ctr/Timer 1 - Current Count (LSB) */
     69  uint8_t  CT2_CUR_CNT_MSB;       /* Ctr/Timer 2 - Current Count (MSB) */
     70  uint8_t  CT2_CUR_CNT_LSB;       /* Ctr/Timer 2 - Current Count (LSB) */
     71  uint8_t  CT3_CUR_CNT_MSB;       /* Ctr/Timer 3 - Current Count (MSB) */
     72  uint8_t  CT3_CUR_CNT_LSB;       /* Ctr/Timer 3 - Current Count (LSB) */
     73  uint8_t  CT1_TIME_CONST_MSB;    /* Ctr/Timer 1 - Time Constant (MSB) */
     74  uint8_t  CT1_TIME_CONST_LSB;    /* Ctr/Timer 1 - Time Constant (LSB) */
     75  uint8_t  CT2_TIME_CONST_MSB;    /* Ctr/Timer 2 - Time Constant (MSB) */
     76  uint8_t  CT2_TIME_CONST_LSB;    /* Ctr/Timer 2 - Time Constant (LSB) */
     77  uint8_t  CT3_TIME_CONST_MSB;    /* Ctr/Timer 3 - Time Constant (MSB) */
     78  uint8_t  CT3_TIME_CONST_LSB;    /* Ctr/Timer 3 - Time Constant (LSB) */
     79  uint8_t  CT1_MODE_SPEC;         /* Ctr/Timer 1 - Mode Specification  */
     80  uint8_t  CT2_MODE_SPEC;         /* Ctr/Timer 2 - Mode Specification  */
     81  uint8_t  CT3_MODE_SPEC;         /* Ctr/Timer 3 - Mode Specification  */
     82  uint8_t  CURRENT_VECTOR;        /* Current Vector */
    8383/* PORT A SPECIFICATION REGISTERS (0x20 -0x27) */
    84   rtems_unsigned8 PORTA_MODE;            /* Port A - Mode Specification  */
    85   rtems_unsigned8 PORTA_HANDSHAKE;       /* Port A - Handshake Specification  */
    86   rtems_unsigned8 PORTA_DATA_POLARITY;   /* Port A - Data Path Polarity */
    87   rtems_unsigned8 PORTA_DIRECTION;       /* Port A - Data Direction */
    88   rtems_unsigned8 PORTA_SPECIAL_IO_CTL;  /* Port A - Special IO Control */
    89   rtems_unsigned8 PORTA_PATT_POLARITY;   /* Port A - Pattern Polarity */
    90   rtems_unsigned8 PORTA_PATT_TRANS;      /* Port A - Pattern Transition */
    91   rtems_unsigned8 PORTA_PATT_MASK;       /* Port A - Pattern Mask */
     84  uint8_t  PORTA_MODE;            /* Port A - Mode Specification  */
     85  uint8_t  PORTA_HANDSHAKE;       /* Port A - Handshake Specification  */
     86  uint8_t  PORTA_DATA_POLARITY;   /* Port A - Data Path Polarity */
     87  uint8_t  PORTA_DIRECTION;       /* Port A - Data Direction */
     88  uint8_t  PORTA_SPECIAL_IO_CTL;  /* Port A - Special IO Control */
     89  uint8_t  PORTA_PATT_POLARITY;   /* Port A - Pattern Polarity */
     90  uint8_t  PORTA_PATT_TRANS;      /* Port A - Pattern Transition */
     91  uint8_t  PORTA_PATT_MASK;       /* Port A - Pattern Mask */
    9292/* PORT B SPECIFICATION REGISTERS (0x28-0x2f) */
    93   rtems_unsigned8 PORTB_MODE;            /* Port B - Mode Specification  */
    94   rtems_unsigned8 PORTB_HANDSHAKE;       /* Port B - Handshake Specification  */
    95   rtems_unsigned8 PORTB_DATA_POLARITY;   /* Port B - Data Path Polarity */
    96   rtems_unsigned8 PORTB_DIRECTION;       /* Port B - Data Direction */
    97   rtems_unsigned8 PORTB_SPECIAL_IO_CTL;  /* Port B - Special IO Control */
    98   rtems_unsigned8 PORTB_PATT_POLARITY;   /* Port B - Pattern Polarity */
    99   rtems_unsigned8 PORTB_PATT_TRANS;      /* Port B - Pattern Transition */
    100   rtems_unsigned8 PORTB_PATT_MASK;       /* Port B - Pattern Mask */
     93  uint8_t  PORTB_MODE;            /* Port B - Mode Specification  */
     94  uint8_t  PORTB_HANDSHAKE;       /* Port B - Handshake Specification  */
     95  uint8_t  PORTB_DATA_POLARITY;   /* Port B - Data Path Polarity */
     96  uint8_t  PORTB_DIRECTION;       /* Port B - Data Direction */
     97  uint8_t  PORTB_SPECIAL_IO_CTL;  /* Port B - Special IO Control */
     98  uint8_t  PORTB_PATT_POLARITY;   /* Port B - Pattern Polarity */
     99  uint8_t  PORTB_PATT_TRANS;      /* Port B - Pattern Transition */
     100  uint8_t  PORTB_PATT_MASK;       /* Port B - Pattern Mask */
    101101};
    102102
  • cpukit/libcsupport/include/zilog/z8530.h

    rf91bbe64 r83c5fc1  
    2727/* macros */
    2828
    29 #define VOL8( ptr )   ((volatile rtems_unsigned8 *)(ptr))
     29#define VOL8( ptr )   ((volatile uint8_t  *)(ptr))
    3030
    3131#define Z8x30_STATE0 ( z8530 ) \
  • cpukit/libcsupport/include/zilog/z8536.h

    rf91bbe64 r83c5fc1  
    3030/* macros */
    3131
    32 #define VOL8( ptr )   ((volatile rtems_unsigned8 *)(ptr))
     32#define VOL8( ptr )   ((volatile uint8_t  *)(ptr))
    3333
    3434#define Z8x36_STATE0 ( z8536 ) \
  • cpukit/libcsupport/src/__gettod.c

    rf91bbe64 r83c5fc1  
    5050{
    5151  rtems_interrupt_level level;
    52   rtems_unsigned32      seconds;
    53   rtems_unsigned32      microseconds;
     52  uint32_t        seconds;
     53  uint32_t        microseconds;
    5454
    5555  if ( !tp ) {
  • cpukit/libcsupport/src/assoc.c

    rf91bbe64 r83c5fc1  
    3939rtems_assoc_ptr_by_local(
    4040    const rtems_assoc_t *ap,
    41     unsigned32     local_value
     41    uint32_t       local_value
    4242  )
    4343{
     
    5858rtems_assoc_ptr_by_remote(
    5959    const rtems_assoc_t *ap,
    60     unsigned32     remote_value
     60    uint32_t       remote_value
    6161  )
    6262{
     
    7878 */
    7979
    80 unsigned32
     80uint32_t 
    8181rtems_assoc_remote_by_local(
    8282    const rtems_assoc_t *ap,
    83     unsigned32     local_value
     83    uint32_t       local_value
    8484  )
    8585{
     
    9292}
    9393
    94 unsigned32
     94uint32_t 
    9595rtems_assoc_local_by_remote(
    9696    const rtems_assoc_t *ap,
    97     unsigned32     remote_value
     97    uint32_t       remote_value
    9898  )
    9999{
     
    106106}
    107107
    108 unsigned32
     108uint32_t 
    109109rtems_assoc_remote_by_name(
    110110    const rtems_assoc_t *ap,
     
    120120}
    121121
    122 unsigned32
     122uint32_t 
    123123rtems_assoc_local_by_name(
    124124    const rtems_assoc_t *ap,
     
    140140
    141141const char *rtems_assoc_name_bad(
    142     unsigned32 bad_value
     142    uint32_t  bad_value
    143143);
    144144
     
    149149rtems_assoc_name_by_local(
    150150    const rtems_assoc_t *ap,
    151     unsigned32     local_value
     151    uint32_t       local_value
    152152  )
    153153{
     
    163163rtems_assoc_name_by_remote(
    164164    const rtems_assoc_t *ap,
    165     unsigned32     remote_value
     165    uint32_t       remote_value
    166166  )
    167167{
     
    179179 */
    180180
    181 unsigned32 rtems_assoc_remote_by_local_bitfield(
    182     const rtems_assoc_t *ap,
    183     unsigned32     local_value
    184   )
    185 
    186     unsigned32 b;
    187     unsigned32 remote_value = 0;
     181uint32_t  rtems_assoc_remote_by_local_bitfield(
     182    const rtems_assoc_t *ap,
     183    uint32_t       local_value
     184  )
     185
     186    uint32_t  b;
     187    uint32_t  remote_value = 0;
    188188
    189189    for (b = 1; b; b <<= 1)
     
    195195
    196196
    197 unsigned32 rtems_assoc_local_by_remote_bitfield(
    198     const rtems_assoc_t *ap,
    199     unsigned32     remote_value
    200   )
    201 
    202     unsigned32 b;
    203     unsigned32 local_value = 0;
     197uint32_t  rtems_assoc_local_by_remote_bitfield(
     198    const rtems_assoc_t *ap,
     199    uint32_t       remote_value
     200  )
     201
     202    uint32_t  b;
     203    uint32_t  local_value = 0;
    204204
    205205    for (b = 1; b; b <<= 1)
     
    213213rtems_assoc_name_by_remote_bitfield(
    214214    const rtems_assoc_t *ap,
    215     unsigned32     value,
     215    uint32_t       value,
    216216    char          *buffer
    217217  )
    218218
    219     unsigned32 b;
     219    uint32_t  b;
    220220
    221221    *buffer = 0;
     
    235235rtems_assoc_name_by_local_bitfield(
    236236    const rtems_assoc_t *ap,
    237     unsigned32     value,
     237    uint32_t       value,
    238238    char          *buffer
    239239  )
    240240
    241     unsigned32 b;
     241    uint32_t  b;
    242242
    243243    *buffer = 0;
  • cpukit/libcsupport/src/assocnamebad.c

    rf91bbe64 r83c5fc1  
    2626const char *
    2727rtems_assoc_name_bad(
    28     unsigned32 bad_value
     28    uint32_t  bad_value
    2929)
    3030{
  • cpukit/libcsupport/src/error.c

    rf91bbe64 r83c5fc1  
    109109
    110110static int rtems_verror(
    111     unsigned32   error_flag,
     111    uint32_t     error_flag,
    112112    const char   *printf_format,
    113113    va_list      arglist
  • cpukit/libcsupport/src/libio.c

    rf91bbe64 r83c5fc1  
    4949 */         
    5050
    51 extern unsigned32  rtems_libio_number_iops;
     51extern uint32_t    rtems_libio_number_iops;
    5252rtems_id           rtems_libio_semaphore;
    5353rtems_libio_t     *rtems_libio_iops;
     
    122122};
    123123
    124 unsigned32 rtems_libio_fcntl_flags(
    125   unsigned32 fcntl_flags
    126 )
    127 {
    128   unsigned32 flags = 0;
    129   unsigned32 access_modes;
     124uint32_t  rtems_libio_fcntl_flags(
     125  uint32_t  fcntl_flags
     126)
     127{
     128  uint32_t  flags = 0;
     129  uint32_t  access_modes;
    130130
    131131  /*
     
    152152 */
    153153
    154 unsigned32 rtems_libio_to_fcntl_flags(
    155   unsigned32 flags
    156 )
    157 {
    158   unsigned32 fcntl_flags = 0;
     154uint32_t  rtems_libio_to_fcntl_flags(
     155  uint32_t  flags
     156)
     157{
     158  uint32_t  fcntl_flags = 0;
    159159
    160160  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
  • cpukit/libcsupport/src/libio_sockets.c

    rf91bbe64 r83c5fc1  
    3333
    3434  /* same as rtems_libio_check_fd(_fd) but different return */
    35   if ((unsigned32)fd >= rtems_libio_number_iops) {
     35  if ((uint32_t  )fd >= rtems_libio_number_iops) {
    3636    errno = EBADF;
    3737    return NULL;
  • cpukit/libcsupport/src/malloc.c

    rf91bbe64 r83c5fc1  
    5050
    5151struct {
    52     unsigned32  space_available;             /* current size of malloc area */
    53     unsigned32  malloc_calls;                /* # calls to malloc */
    54     unsigned32  free_calls;
    55     unsigned32  realloc_calls;
    56     unsigned32  calloc_calls;
    57     unsigned32  max_depth;                   /* most ever malloc'd at 1 time */
    58     unsigned64  lifetime_allocated;
    59     unsigned64  lifetime_freed;
     52    uint32_t    space_available;             /* current size of malloc area */
     53    uint32_t    malloc_calls;                /* # calls to malloc */
     54    uint32_t    free_calls;
     55    uint32_t    realloc_calls;
     56    uint32_t    calloc_calls;
     57    uint32_t    max_depth;                   /* most ever malloc'd at 1 time */
     58    uint64_t    lifetime_allocated;
     59    uint64_t    lifetime_freed;
    6060} rtems_malloc_stats;
    6161
     
    7272  rtems_status_code   status;
    7373  void               *starting_address;
    74   rtems_unsigned32    old_address;
    75   rtems_unsigned32    u32_address;
     74  uint32_t      old_address;
     75  uint32_t      u32_address;
    7676
    7777  /*
     
    9292    u32_address = (unsigned int)sbrk(length);
    9393
    94     if (u32_address == (rtems_unsigned32) -1) {
     94    if (u32_address == (uint32_t  ) -1) {
    9595      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
    9696      /* DOES NOT RETURN!!! */
     
    157157  void              *return_this;
    158158  void              *starting_address;
    159   rtems_unsigned32   the_size;
    160   rtems_unsigned32   sbrk_amount;
     159  uint32_t     the_size;
     160  uint32_t     sbrk_amount;
    161161  rtems_status_code  status;
    162162  Chain_Node        *to_be_freed;
     
    213213    the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
    214214
    215     if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size))
    216             == (rtems_unsigned32) -1)
     215    if (((uint32_t  )starting_address = (void *)sbrk(the_size))
     216            == (uint32_t  ) -1)
    217217      return (void *) 0;
    218218
     
    246246  if (return_this)
    247247  {
    248       unsigned32 actual_size;
    249       unsigned32 current_depth;
     248      uint32_t  actual_size;
     249      uint32_t  current_depth;
    250250      status = rtems_region_get_segment_size(
    251251                   RTEMS_Malloc_Heap, return_this, &actual_size);
     
    290290)
    291291{
    292   rtems_unsigned32  old_size;
     292  uint32_t    old_size;
    293293  rtems_status_code status;
    294294  char *new_area;
     
    370370#ifdef MALLOC_STATS
    371371  {
    372       unsigned32        size;
     372      uint32_t          size;
    373373      status = rtems_region_get_segment_size( RTEMS_Malloc_Heap, ptr, &size );
    374374      if ( status == RTEMS_SUCCESSFUL ) {
     
    396396void malloc_dump(void)
    397397{
    398     unsigned32 allocated = rtems_malloc_stats.lifetime_allocated -
     398    uint32_t  allocated = rtems_malloc_stats.lifetime_allocated -
    399399                     rtems_malloc_stats.lifetime_freed;
    400400
     
    408408           (unsigned int) rtems_malloc_stats.max_depth / 1024,
    409409           (rtems_malloc_stats.max_depth * 100) / rtems_malloc_stats.space_available,
    410            (unsigned64) rtems_malloc_stats.lifetime_allocated / 1024,
    411            (unsigned64) rtems_malloc_stats.lifetime_freed / 1024);
     410           (uint64_t  ) rtems_malloc_stats.lifetime_allocated / 1024,
     411           (uint64_t  ) rtems_malloc_stats.lifetime_freed / 1024);
    412412    printf("  Call counts:   malloc:%d   free:%d   realloc:%d   calloc:%d\n",
    413413           rtems_malloc_stats.malloc_calls,
  • cpukit/libcsupport/src/no_libc.c

    rf91bbe64 r83c5fc1  
    3636
    3737void libc_global_exit(
    38   rtems_unsigned32 code
     38  uint32_t  code
    3939)
    4040{
  • cpukit/libcsupport/src/termios.c

    rf91bbe64 r83c5fc1  
    788788        }
    789789        if (tty->termios.c_oflag & OPOST) {
    790                 unsigned32 count = args->count;
    791                 unsigned8 *buffer = args->buffer;
     790                uint32_t  count = args->count;
     791                uint8_t  *buffer = args->buffer;
    792792                while (count--)
    793793                        oproc (*buffer++, tty);
     
    11101110        rtems_libio_rw_args_t *args = arg;
    11111111        struct rtems_termios_tty *tty = args->iop->data1;
    1112         unsigned32 count = args->count;
    1113         unsigned8 *buffer = args->buffer;
     1112        uint32_t  count = args->count;
     1113        uint8_t  *buffer = args->buffer;
    11141114        rtems_status_code sc;
    11151115
  • cpukit/libcsupport/src/termiosreserveresources.c

    rf91bbe64 r83c5fc1  
    1717void rtems_termios_reserve_resources (
    1818  rtems_configuration_table *configuration,
    19   rtems_unsigned32           number_of_devices
     19  uint32_t             number_of_devices
    2020)
    2121{
Note: See TracChangeset for help on using the changeset viewer.