Changeset ee4f57d in rtems for c/src/libchip/rtc


Ignore:
Timestamp:
Mar 23, 2004, 9:59:52 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e7ceef91
Parents:
83c5fc1
Message:

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

  • libchip/ide/ata.c, libchip/ide/ata_internal.h, libchip/ide/ide_controller.c, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/network/cs8900.c, libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/if_fxp.c, libchip/network/open_eth.c, libchip/network/open_eth.h, libchip/network/sonic.c, libchip/network/sonic.h, libchip/rtc/icm7170.c, libchip/rtc/icm7170.h, libchip/rtc/icm7170_reg.c, libchip/rtc/icm7170_reg2.c, libchip/rtc/icm7170_reg4.c, libchip/rtc/icm7170_reg8.c, libchip/rtc/m48t08.c, libchip/rtc/m48t08.h, libchip/rtc/m48t08_reg.c, libchip/rtc/m48t08_reg2.c, libchip/rtc/m48t08_reg4.c, libchip/rtc/m48t08_reg8.c, libchip/rtc/rtc.h, libchip/serial/mc68681.c, libchip/serial/mc68681.h, libchip/serial/mc68681_reg.c, libchip/serial/mc68681_reg2.c, libchip/serial/mc68681_reg4.c, libchip/serial/mc68681_reg8.c, libchip/serial/ns16550.c, libchip/serial/ns16550_p.h, libchip/serial/serial.h, libchip/serial/z85c30.c, libchip/serial/z85c30.h, libchip/serial/z85c30_p.h, libchip/serial/z85c30_reg.c, libchip/shmdr/addlq.c, libchip/shmdr/cnvpkt.c, libchip/shmdr/dump.c, libchip/shmdr/fatal.c, libchip/shmdr/getlq.c, libchip/shmdr/init.c, libchip/shmdr/initlq.c, libchip/shmdr/intr.c, libchip/shmdr/poll.c, libchip/shmdr/send.c, libchip/shmdr/shm_driver.h: Convert to using c99 fixed-size types.
Location:
c/src/libchip/rtc
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/rtc/icm7170.c

    r83c5fc1 ree4f57d  
    4242)
    4343{
    44   unsigned32     icm7170;
     44  uint32_t       icm7170;
    4545  setRegister_f  setReg;           
    46   unsigned32     clock;
     46  uint32_t       clock;
    4747
    4848  icm7170 = RTC_Table[ minor ].ulCtrlPort1;
     
    5353   */
    5454
    55   clock = (unsigned32) RTC_Table[ minor ].pDeviceParams;
     55  clock = (uint32_t  ) RTC_Table[ minor ].pDeviceParams;
    5656  (*setReg)( icm7170, ICM7170_CONTROL, 0x0c | clock );
    5757}
     
    6666)
    6767{
    68   unsigned32     icm7170;
     68  uint32_t       icm7170;
    6969  getRegister_f  getReg;
    7070  setRegister_f  setReg;
    71   unsigned32     year;
     71  uint32_t       year;
    7272
    7373  icm7170 = RTC_Table[ minor ].ulCtrlPort1;
     
    119119)
    120120{
    121   unsigned32     icm7170;
     121  uint32_t       icm7170;
    122122  getRegister_f  getReg;
    123123  setRegister_f  setReg;
    124   unsigned32     year;
    125   unsigned32     clock;
     124  uint32_t       year;
     125  uint32_t       clock;
    126126
    127127  icm7170 = RTC_Table[ minor ].ulCtrlPort1;
    128128  getReg = RTC_Table[ minor ].getRegister;
    129129  setReg = RTC_Table[ minor ].setRegister;
    130   clock = (unsigned32) RTC_Table[ minor ].pDeviceParams;
     130  clock = (uint32_t  ) RTC_Table[ minor ].pDeviceParams;
    131131
    132132  year = time->year;
  • c/src/libchip/rtc/icm7170.h

    r83c5fc1 ree4f57d  
    5252 */
    5353
    54 unsigned32 icm7170_get_register(    /* registers are at 1 byte boundaries */
    55   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    56   unsigned8   ucRegNum
     54uint32_t  icm7170_get_register(    /* registers are at 1 byte boundaries */
     55  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     56  uint8_t     ucRegNum
    5757);
    5858
    5959void  icm7170_set_register(
    60   unsigned32  ulCtrlPort,
    61   unsigned8   ucRegNum,
    62   unsigned32  ucData
     60  uint32_t    ulCtrlPort,
     61  uint8_t     ucRegNum,
     62  uint32_t    ucData
    6363);
    6464
    65 unsigned32 icm7170_get_register_2(  /* registers are at 2 byte boundaries */
    66   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    67   unsigned8   ucRegNum
     65uint32_t  icm7170_get_register_2(  /* registers are at 2 byte boundaries */
     66  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     67  uint8_t     ucRegNum
    6868);
    6969
    7070void  icm7170_set_register_2(
    71   unsigned32  ulCtrlPort,
    72   unsigned8   ucRegNum,
    73   unsigned32  ucData
     71  uint32_t    ulCtrlPort,
     72  uint8_t     ucRegNum,
     73  uint32_t    ucData
    7474);
    7575
    76 unsigned32 icm7170_get_register_4(  /* registers are at 4 byte boundaries */
    77   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    78   unsigned8   ucRegNum
     76uint32_t  icm7170_get_register_4(  /* registers are at 4 byte boundaries */
     77  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     78  uint8_t     ucRegNum
    7979);
    8080
    8181void  icm7170_set_register_4(
    82   unsigned32  ulCtrlPort,
    83   unsigned8   ucRegNum,
    84   unsigned32  ucData
     82  uint32_t    ulCtrlPort,
     83  uint8_t     ucRegNum,
     84  uint32_t    ucData
    8585);
    8686
    87 unsigned32 icm7170_get_register_8(  /* registers are at 8 byte boundaries */
    88   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    89   unsigned8   ucRegNum
     87uint32_t  icm7170_get_register_8(  /* registers are at 8 byte boundaries */
     88  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     89  uint8_t     ucRegNum
    9090);
    9191
    9292void  icm7170_set_register_8(
    93   unsigned32  ulCtrlPort,
    94   unsigned8   ucRegNum,
    95   unsigned32  ucData
     93  uint32_t    ulCtrlPort,
     94  uint8_t     ucRegNum,
     95  uint32_t    ucData
    9696);
    9797
  • c/src/libchip/rtc/icm7170_reg.c

    r83c5fc1 ree4f57d  
    2121#define _ICM7170_MULTIPLIER 1
    2222#define _ICM7170_NAME(_X) _X
    23 #define _ICM7170_TYPE unsigned8
     23#define _ICM7170_TYPE uint8_t 
    2424#endif
    2525
     
    3131 */
    3232
    33 unsigned32 _ICM7170_NAME(icm7170_get_register)(
    34   unsigned32  ulCtrlPort,
    35   unsigned8   ucRegNum
     33uint32_t  _ICM7170_NAME(icm7170_get_register)(
     34  uint32_t    ulCtrlPort,
     35  uint8_t     ucRegNum
    3636)
    3737{
     
    4848
    4949void  _ICM7170_NAME(icm7170_set_register)(
    50   unsigned32  ulCtrlPort,
    51   unsigned8   ucRegNum,
    52   unsigned32  ucData
     50  uint32_t    ulCtrlPort,
     51  uint8_t     ucRegNum,
     52  uint32_t    ucData
    5353)
    5454{
  • c/src/libchip/rtc/icm7170_reg2.c

    r83c5fc1 ree4f57d  
    1818#define _ICM7170_MULTIPLIER 2
    1919#define _ICM7170_NAME(_X) _X##_2
    20 #define _ICM7170_TYPE unsigned8
     20#define _ICM7170_TYPE uint8_t 
    2121
    2222#include "icm7170_reg.c"
  • c/src/libchip/rtc/icm7170_reg4.c

    r83c5fc1 ree4f57d  
    1818#define _ICM7170_MULTIPLIER 4
    1919#define _ICM7170_NAME(_X) _X##_4
    20 #define _ICM7170_TYPE unsigned8
     20#define _ICM7170_TYPE uint8_t 
    2121
    2222#include "icm7170_reg.c"
  • c/src/libchip/rtc/icm7170_reg8.c

    r83c5fc1 ree4f57d  
    1818#define _ICM7170_MULTIPLIER 8
    1919#define _ICM7170_NAME(_X) _X##_8
    20 #define _ICM7170_TYPE unsigned8
     20#define _ICM7170_TYPE uint8_t 
    2121
    2222#include "icm7170_reg.c"
  • c/src/libchip/rtc/m48t08.c

    r83c5fc1 ree4f57d  
    5858)
    5959{
    60   unsigned32     m48t08;
     60  uint32_t       m48t08;
    6161  getRegister_f  getReg;
    6262  setRegister_f  setReg;
    63   unsigned8      controlReg;
    64   unsigned32     value1;
    65   unsigned32     value2;
     63  uint8_t        controlReg;
     64  uint32_t       value1;
     65  uint32_t       value2;
    6666
    6767  m48t08 = RTC_Table[ minor ].ulCtrlPort1;
     
    118118)
    119119{
    120   unsigned32     m48t08;
     120  uint32_t       m48t08;
    121121  getRegister_f  getReg;
    122122  setRegister_f  setReg;
    123   unsigned8      controlReg;
     123  uint8_t        controlReg;
    124124
    125125  m48t08 = RTC_Table[ minor ].ulCtrlPort1;
  • c/src/libchip/rtc/m48t08.h

    r83c5fc1 ree4f57d  
    4242 */
    4343
    44 unsigned32 m48t08_get_register(     /* registers are at 1 byte boundaries */
    45   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    46   unsigned8   ucRegNum
     44uint32_t  m48t08_get_register(     /* registers are at 1 byte boundaries */
     45  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     46  uint8_t     ucRegNum
    4747);
    4848
    4949void  m48t08_set_register(
    50   unsigned32  ulCtrlPort,
    51   unsigned8   ucRegNum,
    52   unsigned32  ucData
     50  uint32_t    ulCtrlPort,
     51  uint8_t     ucRegNum,
     52  uint32_t    ucData
    5353);
    5454
    55 unsigned32 m48t08_get_register_2(   /* registers are at 2 byte boundaries */
    56   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    57   unsigned8   ucRegNum
     55uint32_t  m48t08_get_register_2(   /* registers are at 2 byte boundaries */
     56  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     57  uint8_t     ucRegNum
    5858);
    5959
    6060void  m48t08_set_register_2(
    61   unsigned32  ulCtrlPort,
    62   unsigned8   ucRegNum,
    63   unsigned32  ucData
     61  uint32_t    ulCtrlPort,
     62  uint8_t     ucRegNum,
     63  uint32_t    ucData
    6464);
    6565
    66 unsigned32 m48t08_get_register_4(   /* registers are at 4 byte boundaries */
    67   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    68   unsigned8   ucRegNum
     66uint32_t  m48t08_get_register_4(   /* registers are at 4 byte boundaries */
     67  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     68  uint8_t     ucRegNum
    6969);
    7070
    7171void  m48t08_set_register_4(
    72   unsigned32  ulCtrlPort,
    73   unsigned8   ucRegNum,
    74   unsigned32  ucData
     72  uint32_t    ulCtrlPort,
     73  uint8_t     ucRegNum,
     74  uint32_t    ucData
    7575);
    7676
    77 unsigned32 m48t08_get_register_8(   /* registers are at 8 byte boundaries */
    78   unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
    79   unsigned8   ucRegNum
     77uint32_t  m48t08_get_register_8(   /* registers are at 8 byte boundaries */
     78  uint32_t    ulCtrlPort,           /*   and accessed as bytes            */
     79  uint8_t     ucRegNum
    8080);
    8181
    8282void  m48t08_set_register_8(
    83   unsigned32  ulCtrlPort,
    84   unsigned8   ucRegNum,
    85   unsigned32  ucData
     83  uint32_t    ulCtrlPort,
     84  uint8_t     ucRegNum,
     85  uint32_t    ucData
    8686);
    8787
  • c/src/libchip/rtc/m48t08_reg.c

    r83c5fc1 ree4f57d  
    2121#define _M48T08_MULTIPLIER 1
    2222#define _M48T08_NAME(_X) _X
    23 #define _M48T08_TYPE unsigned8
     23#define _M48T08_TYPE uint8_t 
    2424#endif
    2525
     
    3131 */
    3232
    33 unsigned32 _M48T08_NAME(m48t08_get_register)(
    34   unsigned32  ulCtrlPort,
    35   unsigned8   ucRegNum
     33uint32_t  _M48T08_NAME(m48t08_get_register)(
     34  uint32_t    ulCtrlPort,
     35  uint8_t     ucRegNum
    3636)
    3737{
     
    4848
    4949void  _M48T08_NAME(m48t08_set_register)(
    50   unsigned32  ulCtrlPort,
    51   unsigned8   ucRegNum,
    52   unsigned32  ucData
     50  uint32_t    ulCtrlPort,
     51  uint8_t     ucRegNum,
     52  uint32_t    ucData
    5353)
    5454{
  • c/src/libchip/rtc/m48t08_reg2.c

    r83c5fc1 ree4f57d  
    1818#define _M48T08_MULTIPLIER 2
    1919#define _M48T08_NAME(_X) _X##_2
    20 #define _M48T08_TYPE unsigned8
     20#define _M48T08_TYPE uint8_t 
    2121
    2222#include "m48t08_reg.c"
  • c/src/libchip/rtc/m48t08_reg4.c

    r83c5fc1 ree4f57d  
    1818#define _M48T08_MULTIPLIER 4
    1919#define _M48T08_NAME(_X) _X##_4
    20 #define _M48T08_TYPE unsigned8
     20#define _M48T08_TYPE uint8_t 
    2121
    2222#include "m48t08_reg.c"
  • c/src/libchip/rtc/m48t08_reg8.c

    r83c5fc1 ree4f57d  
    1818#define _M48T08_MULTIPLIER 8
    1919#define _M48T08_NAME(_X) _X##_8
    20 #define _M48T08_TYPE unsigned8
     20#define _M48T08_TYPE uint8_t 
    2121
    2222#include "m48t08_reg.c"
  • c/src/libchip/rtc/rtc.h

    r83c5fc1 ree4f57d  
    2020 */
    2121
    22 typedef unsigned32 (*getRegister_f)(unsigned32 port, unsigned8 register);
     22typedef uint32_t   (*getRegister_f)(uint32_t   port, uint8_t  register);
    2323typedef void       (*setRegister_f)(
    24                             unsigned32 port, unsigned8 reg, unsigned32 value);
     24                            uint32_t   port, uint8_t   reg, uint32_t  value);
    2525
    2626typedef struct _rtc_fns {
     
    6565  boolean      (*deviceProbe)(int minor);
    6666  void          *pDeviceParams;
    67   unsigned32     ulCtrlPort1;
    68   unsigned32     ulDataPort;
     67  uint32_t       ulCtrlPort1;
     68  uint32_t       ulDataPort;
    6969  getRegister_f  getRegister;
    7070  setRegister_f  setRegister;
Note: See TracChangeset for help on using the changeset viewer.