Changeset ed9e449 in rtems


Ignore:
Timestamp:
03/31/04 03:08:46 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8c93623
Parents:
3d04f8b
Message:

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

  • clock/clock.c, console/conscfg.c, console/debugio.c, include/bsp.h, include/dmv170.h, scv64/scv64.c, sonic/dmvsonic.c, startup/bspstart.c, startup/genpvec.c, startup/vmeintr.c, timer/timer.c, tod/todcfg.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/powerpc/dmv177
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/dmv177/ChangeLog

    r3d04f8b red9e449  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * clock/clock.c, console/conscfg.c, console/debugio.c,
     4        include/bsp.h, include/dmv170.h, scv64/scv64.c, sonic/dmvsonic.c,
     5        startup/bspstart.c, startup/genpvec.c, startup/vmeintr.c,
     6        timer/timer.c, tod/todcfg.c: Convert to using c99 fixed size types.
     7
    182004-02-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • c/src/lib/libbsp/powerpc/dmv177/clock/clock.c

    r3d04f8b red9e449  
    3434 */
    3535
    36 volatile rtems_unsigned32 Clock_driver_ticks;
     36volatile uint32_t  Clock_driver_ticks;
    3737
    3838/*
     
    4040 */
    4141
    42 rtems_unsigned32 Clock_Decrementer_value;
     42uint32_t  Clock_Decrementer_value;
    4343
    4444/*
     
    209209)
    210210{
    211     rtems_unsigned32 isrlevel;
     211    uint32_t  isrlevel;
    212212    rtems_libio_ioctl_args_t *args = pargp;
    213213 
  • c/src/lib/libbsp/powerpc/dmv177/console/conscfg.c

    r3d04f8b red9e449  
    161161                NULL, /* unused */              /* getData */
    162162                NULL, /* unused */              /* setData */
    163                 (unsigned32)dmv177_mc68681_baud_table, /* ulClock */
     163                (uint32_t)dmv177_mc68681_baud_table, /* ulClock */
    164164                DMV170_DUART_IRQ                /* ulIntVector */
    165165        },
     
    180180                NULL, /* unused */              /* getData */
    181181                NULL, /* unused */              /* setData */
    182                 (unsigned32)dmv177_mc68681_baud_table, /* ulClock */
     182                (uint32_t)dmv177_mc68681_baud_table, /* ulClock */
    183183                DMV170_DUART_IRQ                /* ulIntVector */
    184184        },
     
    242242boolean dmv177_z85c30_probe(int minor)
    243243{
    244   volatile unsigned32 *dma_control_status_reg;
    245   volatile unsigned16 *card_resource_reg;
    246   unsigned16 v;
    247 
    248   card_resource_reg = (volatile unsigned16 *) DMV170_CARD_RESORCE_REG;
     244  volatile uint32_t  *dma_control_status_reg;
     245  volatile uint16_t  *card_resource_reg;
     246  uint16_t  v;
     247
     248  card_resource_reg = (volatile uint16_t*) DMV170_CARD_RESORCE_REG;
    249249
    250250  v = *card_resource_reg & DMV170_SCC_INST_MASK;
     
    257257   */
    258258
    259   dma_control_status_reg = (volatile unsigned32 *)DMV170_DMA_CONTROL_STATUS_REG;
     259  dma_control_status_reg = (volatile uint32_t*)DMV170_DMA_CONTROL_STATUS_REG;
    260260
    261261  if ( *dma_control_status_reg & DMV170_SCC_10MHZ )
     
    269269boolean dmv177_mc68681_probe(int minor)
    270270{
    271   volatile unsigned16 *card_resource_reg;
    272   unsigned16 v;
    273 
    274   card_resource_reg = (volatile unsigned16 *) DMV170_CARD_RESORCE_REG;
     271  volatile uint16_t  *card_resource_reg;
     272  uint16_t  v;
     273
     274  card_resource_reg = (volatile uint16_t*) DMV170_CARD_RESORCE_REG;
    275275
    276276  v = *card_resource_reg & DMV170_DUART_INST_MASK;
  • c/src/lib/libbsp/powerpc/dmv177/console/debugio.c

    r3d04f8b red9e449  
    6161{
    6262  char *s;
    63   unsigned32  Irql;
     63  uint32_t    Irql;
    6464
    6565  rtems_interrupt_disable(Irql);
     
    9090
    9191void DEBUG_puth(
    92   unsigned32 ulHexNum
     92  uint32_t  ulHexNum
    9393)
    9494{
    9595  unsigned long  i,d;
    96   unsigned32      Irql;
     96  uint32_t        Irql;
    9797  void          (*poll)(int minor, char cChar);
    9898 
  • c/src/lib/libbsp/powerpc/dmv177/include/bsp.h

    r3d04f8b red9e449  
    9090#define Cause_tm27_intr()  \
    9191  do { \
    92     unsigned32 _clicks = 1; \
     92    uint32_t  _clicks = 1; \
    9393    asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
    9494  } while (0)
     
    9696#define Clear_tm27_intr() \
    9797  do { \
    98     unsigned32 _clicks = 0xffffffff; \
    99     unsigned32 _msr = 0; \
     98    uint32_t  _clicks = 0xffffffff; \
     99    uint32_t  _msr = 0; \
    100100    _ISR_Set_level( 0 ); \
    101101    asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
     
    107107#define Lower_tm27_intr() \
    108108  do { \
    109     unsigned32 _msr = 0; \
     109    uint32_t  _msr = 0; \
    110110    _ISR_Set_level( 0 ); \
    111111    asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
     
    189189extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
    190190
    191 extern rtems_unsigned32          bsp_isr_level;
     191extern uint32_t            bsp_isr_level;
    192192
    193193extern int   CPU_PPC_CLICKS_PER_MS;
  • c/src/lib/libbsp/powerpc/dmv177/include/dmv170.h

    r3d04f8b red9e449  
    8080
    8181#define DMV170_WRITE( _reg, _data ) \
    82    *((volatile rtems_unsigned16 *)(_reg)) = (_data)
     82   *((volatile uint16_t*)(_reg)) = (_data)
    8383
    8484#define DMV170_READ( _reg, _data ) \
    85    (_data) = *((volatile rtems_unsigned16 *)(_reg))
     85   (_data) = *((volatile uint16_t*)(_reg))
    8686
    8787/*
     
    278278
    279279void SCV64_Generate_DUART_Interrupts();
    280 rtems_unsigned32 SCV64_Get_Interrupt();
    281 rtems_unsigned32 SCV64_Get_Interrupt_Enable();
     280uint32_t  SCV64_Get_Interrupt();
     281uint32_t  SCV64_Get_Interrupt_Enable();
    282282
    283283#ifdef __cplusplus
  • c/src/lib/libbsp/powerpc/dmv177/scv64/scv64.c

    r3d04f8b red9e449  
    1515typedef struct {
    1616  /* DARF Registers */
    17   volatile rtems_unsigned32  DMALAR;             /* 0x00 */       
    18   volatile rtems_unsigned32  DMAVAR;             /* 0x04 */       
    19   volatile rtems_unsigned32  DMATC;              /* 0x08 */     
    20   volatile rtems_unsigned32  DCSR;               /* 0x0c */     
    21   volatile rtems_unsigned32  VMEBAR;             /* 0x10 */       
    22   volatile rtems_unsigned32  RXDATA;             /* 0x14 */       
    23   volatile rtems_unsigned32  RXADDR;             /* 0x18 */                           
    24   volatile rtems_unsigned32  RXCTL;              /* 0x1c */     
    25   volatile rtems_unsigned32  BUSSEL;             /* 0x20 */       
    26   volatile rtems_unsigned32  IVECT;              /* 0x24 */     
    27   volatile rtems_unsigned32  APBR;               /* 0x28 */     
    28   volatile rtems_unsigned32  TXDATA;             /* 0x2c */       
    29   volatile rtems_unsigned32  TXADDR;             /* 0x30 */       
    30   volatile rtems_unsigned32  TXCTL;              /* 0x34 */     
    31   volatile rtems_unsigned32  LMFIFO;             /* 0x38 */       
    32   volatile rtems_unsigned32  MODE;               /* 0x3c */     
    33   volatile rtems_unsigned32  SA64BAR;            /* 0x40 */       
    34   volatile rtems_unsigned32  MA64BAR;            /* 0x44 */
    35   volatile rtems_unsigned32  LAG;                /* 0x48 */
    36   volatile rtems_unsigned32  DMAVTC;             /* 0x4c */
     17  volatile uint32_t    DMALAR;             /* 0x00 */       
     18  volatile uint32_t    DMAVAR;             /* 0x04 */       
     19  volatile uint32_t    DMATC;              /* 0x08 */     
     20  volatile uint32_t    DCSR;               /* 0x0c */     
     21  volatile uint32_t    VMEBAR;             /* 0x10 */       
     22  volatile uint32_t    RXDATA;             /* 0x14 */       
     23  volatile uint32_t    RXADDR;             /* 0x18 */                           
     24  volatile uint32_t    RXCTL;              /* 0x1c */     
     25  volatile uint32_t    BUSSEL;             /* 0x20 */       
     26  volatile uint32_t    IVECT;              /* 0x24 */     
     27  volatile uint32_t    APBR;               /* 0x28 */     
     28  volatile uint32_t    TXDATA;             /* 0x2c */       
     29  volatile uint32_t    TXADDR;             /* 0x30 */       
     30  volatile uint32_t    TXCTL;              /* 0x34 */     
     31  volatile uint32_t    LMFIFO;             /* 0x38 */       
     32  volatile uint32_t    MODE;               /* 0x3c */     
     33  volatile uint32_t    SA64BAR;            /* 0x40 */       
     34  volatile uint32_t    MA64BAR;            /* 0x44 */
     35  volatile uint32_t    LAG;                /* 0x48 */
     36  volatile uint32_t    DMAVTC;             /* 0x4c */
    3737
    3838  /* Reserved */
    39   volatile rtems_unsigned32  reserved_50_7F[12];
     39  volatile uint32_t    reserved_50_7F[12];
    4040
    4141  /* ACC Registers */
    42   volatile rtems_unsigned8   STAT0_pad[3];       /* 0x80 */       
    43   volatile rtems_unsigned8   STAT0;                       
    44   volatile rtems_unsigned8   STAT1_pad[3];       /* 0x84 */       
    45   volatile rtems_unsigned8   STAT1;                       
    46   volatile rtems_unsigned8   GENCTL_pad[3];      /* 0x88 */       
    47   volatile rtems_unsigned8   GENCTL;                       
    48   volatile rtems_unsigned8   VINT_pad[3];        /* 0x8c */     
    49   volatile rtems_unsigned8   VINT;                       
    50   volatile rtems_unsigned8   VREQ_pad[3];        /* 0x90 */     
    51   volatile rtems_unsigned8   VREQ;                       
    52   volatile rtems_unsigned8   VARB_pad[3];        /* 0x94 */     
    53   volatile rtems_unsigned8   VARB;                       
    54   volatile rtems_unsigned8   ID_pad[3];          /* 0x98 */   
    55   volatile rtems_unsigned8   ID;                       
    56   volatile rtems_unsigned8   NA_pad[3];          /* 0x9c */   
    57   volatile rtems_unsigned8   NA;                       
    58   volatile rtems_unsigned8   _7IS_pad[3];        /* 0xa0 */     
    59   volatile rtems_unsigned8   _7IS;                       
    60   volatile rtems_unsigned8   LIS_pad[3];         /* 0xa4 */     
    61   volatile rtems_unsigned8   LIS;                       
    62   volatile rtems_unsigned8   UIE_pad[3];         /* 0xa8 */     
    63   volatile rtems_unsigned8   UIE;                       
    64   volatile rtems_unsigned8   LIE_pad[3];         /* 0xac */     
    65   volatile rtems_unsigned8   LIE;                       
    66   volatile rtems_unsigned8   VIE_pad[3];         /* 0xb0 */     
    67   volatile rtems_unsigned8   VIE;                       
    68   volatile rtems_unsigned8   IC10_pad[3];        /* 0xb4 */     
    69   volatile rtems_unsigned8   IC10;                       
    70   volatile rtems_unsigned8   IC32_pad[3];        /* 0xb8 */     
    71   volatile rtems_unsigned8   IC32;                       
    72   volatile rtems_unsigned8   IC54_pad[3];        /* 0xbc */     
    73   volatile rtems_unsigned8   IC54;                       
     42  volatile uint8_t     STAT0_pad[3];       /* 0x80 */       
     43  volatile uint8_t     STAT0;                       
     44  volatile uint8_t     STAT1_pad[3];       /* 0x84 */       
     45  volatile uint8_t     STAT1;                       
     46  volatile uint8_t     GENCTL_pad[3];      /* 0x88 */       
     47  volatile uint8_t     GENCTL;                       
     48  volatile uint8_t     VINT_pad[3];        /* 0x8c */     
     49  volatile uint8_t     VINT;                       
     50  volatile uint8_t     VREQ_pad[3];        /* 0x90 */     
     51  volatile uint8_t     VREQ;                       
     52  volatile uint8_t     VARB_pad[3];        /* 0x94 */     
     53  volatile uint8_t     VARB;                       
     54  volatile uint8_t     ID_pad[3];          /* 0x98 */   
     55  volatile uint8_t     ID;                       
     56  volatile uint8_t     NA_pad[3];          /* 0x9c */   
     57  volatile uint8_t     NA;                       
     58  volatile uint8_t     _7IS_pad[3];        /* 0xa0 */     
     59  volatile uint8_t     _7IS;                       
     60  volatile uint8_t     LIS_pad[3];         /* 0xa4 */     
     61  volatile uint8_t     LIS;                       
     62  volatile uint8_t     UIE_pad[3];         /* 0xa8 */     
     63  volatile uint8_t     UIE;                       
     64  volatile uint8_t     LIE_pad[3];         /* 0xac */     
     65  volatile uint8_t     LIE;                       
     66  volatile uint8_t     VIE_pad[3];         /* 0xb0 */     
     67  volatile uint8_t     VIE;                       
     68  volatile uint8_t     IC10_pad[3];        /* 0xb4 */     
     69  volatile uint8_t     IC10;                       
     70  volatile uint8_t     IC32_pad[3];        /* 0xb8 */     
     71  volatile uint8_t     IC32;                       
     72  volatile uint8_t     IC54_pad[3];        /* 0xbc */     
     73  volatile uint8_t     IC54;                       
    7474  /* Utility Registers */
    75   volatile rtems_unsigned32  MISC;
    76   volatile rtems_unsigned32  delay_line[3];
    77   volatile rtems_unsigned32  MBOX0;
    78   volatile rtems_unsigned32  MBOX1;
    79   volatile rtems_unsigned32  MBOX2;
    80   volatile rtems_unsigned32  MBOX3;
     75  volatile uint32_t    MISC;
     76  volatile uint32_t    delay_line[3];
     77  volatile uint32_t    MBOX0;
     78  volatile uint32_t    MBOX1;
     79  volatile uint32_t    MBOX2;
     80  volatile uint32_t    MBOX3;
    8181} SCV64_Registers;
    8282
     
    121121void SCV64_Generate_DUART_Interrupts() {
    122122
    123   rtems_unsigned8 data;
     123  uint8_t  data;
    124124 
    125125  /*
     
    144144 *  This routine returns the SCV64 status register.
    145145 */
    146 rtems_unsigned32 SCV64_Get_Interrupt()
     146uint32_t  SCV64_Get_Interrupt()
    147147{
    148   rtems_unsigned8 data;
     148  uint8_t  data;
    149149 
    150150  /*
     
    162162 * This routine returns the interrupt enable mask.
    163163 */
    164 rtems_unsigned32 SCV64_Get_Interrupt_Enable()
     164uint32_t  SCV64_Get_Interrupt_Enable()
    165165{
    166166  /*
  • c/src/lib/libbsp/powerpc/dmv177/sonic/dmvsonic.c

    r3d04f8b red9e449  
    1616void dmv177_sonic_write_register(
    1717  void       *base,
    18   unsigned32  regno,
    19   unsigned32  value
     18  uint32_t    regno,
     19  uint32_t    value
    2020)
    2121{
    22   volatile unsigned32 *p = base;
     22  volatile uint32_t  *p = base;
    2323
    2424#if (SONIC_DEBUG & SONIC_DEBUG_PRINT_REGISTERS)
     
    3030}
    3131
    32 unsigned32 dmv177_sonic_read_register(
     32uint32_t  dmv177_sonic_read_register(
    3333  void       *base,
    34   unsigned32  regno
     34  uint32_t    regno
    3535)
    3636{
    37   volatile unsigned32 *p = base;
    38   unsigned32           value;
     37  volatile uint32_t  *p = base;
     38  uint32_t             value;
    3939
    4040  value = p[regno];
  • c/src/lib/libbsp/powerpc/dmv177/startup/bspstart.c

    r3d04f8b red9e449  
    2626rtems_configuration_table         BSP_Configuration;
    2727rtems_cpu_table                   Cpu_table;
    28 rtems_unsigned32                  bsp_isr_level;
     28uint32_t                    bsp_isr_level;
    2929
    3030/*
     
    3333
    3434void bsp_postdriver_hook(void);
    35 void bsp_libc_init( void *, unsigned32, int );
     35void bsp_libc_init( void *, uint32_t, int );
    3636
    3737/*PAGE
     
    4646{
    4747  extern int end;
    48   rtems_unsigned32 heap_start;
    49   rtems_unsigned32 heap_size;
     48  uint32_t  heap_start;
     49  uint32_t  heap_size;
    5050
    51   heap_start = (rtems_unsigned32) &end;
     51  heap_start = (uint32_t) &end;
    5252  if (heap_start & (CPU_ALIGNMENT-1))
    5353    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
  • c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c

    r3d04f8b red9e449  
    4343 */
    4444EE_ISR_Type       ISR_Nodes [NUM_LIRQ_HANDLERS];
    45 rtems_unsigned16  Nodes_Used;
     45uint16_t    Nodes_Used;
    4646Chain_Control     ISR_Array  [NUM_LIRQ];
    4747
     
    6464)
    6565{
    66   rtems_unsigned16      index;
     66  uint16_t        index;
    6767  rtems_boolean         is_active=FALSE;
    68   rtems_unsigned32      scv64_status;
     68  uint32_t        scv64_status;
    6969  Chain_Node           *node;
    7070  EE_ISR_Type          *ee_isr;
     
    178178)
    179179{
    180   rtems_unsigned16 vec_idx  = vector - DMV170_IRQ_FIRST;
    181   rtems_unsigned32 index;
     180  uint16_t  vec_idx  = vector - DMV170_IRQ_FIRST;
     181  uint32_t  index;
    182182 
    183183  /*
  • c/src/lib/libbsp/powerpc/dmv177/startup/vmeintr.c

    r3d04f8b red9e449  
    3535)
    3636{
    37   volatile rtems_unsigned8  *VME_interrupt_enable;
    38   rtems_unsigned8  value;
     37  volatile uint8_t    *VME_interrupt_enable;
     38  uint8_t    value;
    3939
    4040#if 0
     
    6868)
    6969{
    70   volatile rtems_unsigned8  *VME_interrupt_enable;
    71   rtems_unsigned8  value;
     70  volatile uint8_t    *VME_interrupt_enable;
     71  uint8_t    value;
    7272
    7373#if 0
  • c/src/lib/libbsp/powerpc/dmv177/timer/timer.c

    r3d04f8b red9e449  
    1515#include <bsp.h>
    1616
    17 rtems_unsigned64 Timer_driver_Start_time;
     17uint64_t  Timer_driver_Start_time;
    1818
    1919rtems_boolean Timer_driver_Find_average_overhead;
     
    6565int Read_timer()
    6666{
    67   rtems_unsigned64  clicks;
    68   rtems_unsigned64  total64;
    69   rtems_unsigned32  total;
     67  uint64_t    clicks;
     68  uint64_t    total64;
     69  uint32_t    total;
    7070
    7171  /* approximately CLOCK_SPEED clicks per microsecond */
     
    7777  total64 = clicks - Timer_driver_Start_time;
    7878
    79   assert( total64 <= 0xffffffff );  /* fits into a unsigned32 */
     79  assert( total64 <= 0xffffffff );  /* fits into a uint32_t  */
    8080
    81   total = (rtems_unsigned32) total64;
     81  total = (uint32_t) total64;
    8282
    8383  if ( Timer_driver_Find_average_overhead == 1 )
  • c/src/lib/libbsp/powerpc/dmv177/tod/todcfg.c

    r3d04f8b red9e449  
    6464boolean dmv177_icm7170_probe(int minor)
    6565{
    66   volatile unsigned16 *card_resource_reg;
    67   unsigned16 v;
     66  volatile uint16_t  *card_resource_reg;
     67  uint16_t  v;
    6868
    69   card_resource_reg = (volatile unsigned16 *) DMV170_CARD_RESORCE_REG;
     69  card_resource_reg = (volatile uint16_t*) DMV170_CARD_RESORCE_REG;
    7070
    7171  v = *card_resource_reg & DMV170_RTC_INST_MASK;
Note: See TracChangeset for help on using the changeset viewer.