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


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, 5, 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/shmdr
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/shmdr/addlq.c

    r83c5fc1 ree4f57d  
    2727)
    2828{
    29   rtems_unsigned32 index;
     29  uint32_t  index;
    3030
    3131  ecb->next  = Shm_Locked_queue_End_of_list;
  • c/src/libchip/shmdr/cnvpkt.c

    r83c5fc1 ree4f57d  
    3131)
    3232{
    33   rtems_unsigned32 *pkt, i;
     33  uint32_t  *pkt, i;
    3434
    35   pkt = (rtems_unsigned32 *) packet;
     35  pkt = (uint32_t  *) packet;
    3636  for ( i=RTEMS_MINIMUN_HETERO_CONVERSION ; i ; i--, pkt++ )
    3737    *pkt = CPU_swap_u32( *pkt );
  • c/src/libchip/shmdr/dump.c

    r83c5fc1 ree4f57d  
    2525Shm_Print_statistics(void)
    2626{
    27   rtems_unsigned32  ticks;
    28   rtems_unsigned32  ticks_per_second;
    29   rtems_unsigned32  seconds;
     27  uint32_t    ticks;
     28  uint32_t    ticks_per_second;
     29  uint32_t    seconds;
    3030  int               packets_per_second;
    3131
  • c/src/libchip/shmdr/fatal.c

    r83c5fc1 ree4f57d  
    2424  Internal_errors_Source  source,
    2525  boolean                 is_internal,
    26   rtems_unsigned32        error
     26  uint32_t          error
    2727)
    2828{
  • c/src/libchip/shmdr/getlq.c

    r83c5fc1 ree4f57d  
    2929{
    3030  Shm_Envelope_control *tmp_ecb;
    31   rtems_unsigned32 tmpfront;
     31  uint32_t  tmpfront;
    3232
    3333  tmp_ecb = NULL;
  • c/src/libchip/shmdr/init.c

    r83c5fc1 ree4f57d  
    3737
    3838{
    39   rtems_unsigned32         i, all_initialized;
    40   rtems_unsigned32         interrupt_cause, interrupt_value;
     39  uint32_t           i, all_initialized;
     40  uint32_t           interrupt_cause, interrupt_value;
    4141  void                    *interrupt_address;
    4242  Shm_Node_status_control *nscb;
    43   rtems_unsigned32         extension_id;    /* for installation of MPCI_Fatal */
    44   rtems_unsigned32         remaining_memory;
     43  uint32_t           extension_id;    /* for installation of MPCI_Fatal */
     44  uint32_t           remaining_memory;
    4545/* XXX these should use "public" methods to set their values.... */
    4646  rtems_configuration_table   *configuration = _Configuration_Table;
     
    123123
    124124  interrupt_address =
    125     (void *) Shm_Convert( (rtems_unsigned32)Shm_Configuration->Intr.address );
     125    (void *) Shm_Convert( (uint32_t  )Shm_Configuration->Intr.address );
    126126  interrupt_value   = Shm_Convert( Shm_Configuration->Intr.value );
    127127  interrupt_cause   = Shm_Convert( Shm_Configuration->Intr.length );
     
    173173     */
    174174
    175     Shm_Local_node_status->int_address = (rtems_unsigned32) interrupt_address;
     175    Shm_Local_node_status->int_address = (uint32_t  ) interrupt_address;
    176176    Shm_Local_node_status->int_value   = interrupt_value;
    177177    Shm_Local_node_status->int_length  = interrupt_cause;
     
    221221
    222222        Shm_Local_node_status->int_address =
    223           (rtems_unsigned32) interrupt_address;
     223          (uint32_t  ) interrupt_address;
    224224        Shm_Local_node_status->int_value   = interrupt_value;
    225225        Shm_Local_node_status->int_length  = interrupt_cause;
  • c/src/libchip/shmdr/initlq.c

    r83c5fc1 ree4f57d  
    2525void Shm_Locked_queue_Initialize(
    2626  Shm_Locked_queue_Control *lq_cb,
    27   rtems_unsigned32 owner
     27  uint32_t  owner
    2828)
    2929{
  • c/src/libchip/shmdr/intr.c

    r83c5fc1 ree4f57d  
    2727
    2828void Shm_Cause_interrupt(
    29   rtems_unsigned32 node
     29  uint32_t  node
    3030)
    3131{
    3232  Shm_Interrupt_information *intr;
    33   rtems_unsigned8  *u8;
    34   rtems_unsigned16 *u16;
    35   rtems_unsigned32 *u32;
    36   rtems_unsigned32  value;
     33  uint8_t    *u8;
     34  uint16_t  *u16;
     35  uint32_t  *u32;
     36  uint32_t    value;
    3737
    3838  intr = &Shm_Interrupt_table[node];
     
    4343       break;
    4444    case BYTE:
    45       u8   = (rtems_unsigned8 *)intr->address;
    46       *u8  = (rtems_unsigned8) value;
     45      u8   = (uint8_t  *)intr->address;
     46      *u8  = (uint8_t  ) value;
    4747      break;
    4848    case WORD:
    49       u16   = (rtems_unsigned16 *)intr->address;
    50       *u16  = (rtems_unsigned16) value;
     49      u16   = (uint16_t  *)intr->address;
     50      *u16  = (uint16_t  ) value;
    5151      break;
    5252    case LONG:
    53       u32   = (rtems_unsigned32 *)intr->address;
    54       *u32  = (rtems_unsigned32) value;
     53      u32   = (uint32_t  *)intr->address;
     54      *u32  = (uint32_t  ) value;
    5555      break;
    5656  }
  • c/src/libchip/shmdr/poll.c

    r83c5fc1 ree4f57d  
    2727void Shm_Poll()
    2828{
    29   rtems_unsigned32 tmpfront;
     29  uint32_t  tmpfront;
    3030  rtems_libio_ioctl_args_t args;
    3131
  • c/src/libchip/shmdr/send.c

    r83c5fc1 ree4f57d  
    2626
    2727struct pkt_cpy {
    28   rtems_unsigned32 packet[MAX_PACKET_SIZE/4];
     28  uint32_t  packet[MAX_PACKET_SIZE/4];
    2929};
    3030
    3131rtems_mpci_entry Shm_Send_packet(
    32   rtems_unsigned32 node,
     32  uint32_t  node,
    3333  rtems_packet_prefix *packet
    3434)
    3535{
    3636  Shm_Envelope_control *ecb, *tmp_ecb;
    37   rtems_unsigned32 nnum;
     37  uint32_t  nnum;
    3838
    3939  ecb = Shm_Packet_prefix_to_envelope_control_pointer( packet );
  • c/src/libchip/shmdr/shm_driver.h

    r83c5fc1 ree4f57d  
    8585 *  comply with the restrictive placement of lock bit by this
    8686 *  instruction.  The lock bit is the most significant bit in a
    87  *  big-endian rtems_unsigned32.  On other processors, the lock is
     87 *  big-endian uint32_t  .  On other processors, the lock is
    8888 *  typically implemented via an atomic swap or atomic modify
    8989 *  bits type instruction.
     
    255255
    256256#define Shm_Packet_prefix_to_envelope_control_pointer( pkt )   \
    257    ((Shm_Envelope_control *)((rtems_unsigned8 *)(pkt) - \
     257   ((Shm_Envelope_control *)((uint8_t  *)(pkt) - \
    258258   (sizeof(Shm_Envelope_preamble) + SHM_ENVELOPE_PREFIX_OVERHEAD)))
    259259
     
    265265/* volatile types */
    266266
    267 typedef volatile rtems_unsigned8  vol_u8;
    268 typedef volatile rtems_unsigned32 vol_u32;
     267typedef volatile uint8_t    vol_u8;
     268typedef volatile uint32_t  vol_u32;
    269269
    270270/* shm control information */
     
    397397 *               address may be specific to this node.
    398398 *  length     - The length of the shared memory in bytes.
    399  *  format     - The natural format for rtems_unsigned32's in the
     399 *  format     - The natural format for uint32_t  's in the
    400400 *               shared memory.  Valid values are currently
    401401 *               only SHM_LITTLE and SHM_BIG.
     
    426426  vol_u32          (*convert)();/* neutral conversion routine */
    427427  vol_u32            poll_intr;/* POLLED or INTR driven mode  */
    428   void             (*cause_intr)( rtems_unsigned32 );
     428  void             (*cause_intr)( uint32_t  );
    429429  Shm_Interrupt_information   Intr;     /* cause intr information      */
    430430};
     
    447447SHM_EXTERN rtems_configuration_table    *Shm_RTEMS_Configuration;
    448448SHM_EXTERN rtems_multiprocessing_table  *Shm_RTEMS_MP_Configuration;
    449 SHM_EXTERN rtems_unsigned32              Shm_Receive_message_count;
    450 SHM_EXTERN rtems_unsigned32              Shm_Null_message_count;
    451 SHM_EXTERN rtems_unsigned32              Shm_Interrupt_count;
    452 SHM_EXTERN rtems_unsigned32              Shm_Local_node;
     449SHM_EXTERN uint32_t                Shm_Receive_message_count;
     450SHM_EXTERN uint32_t                Shm_Null_message_count;
     451SHM_EXTERN uint32_t                Shm_Interrupt_count;
     452SHM_EXTERN uint32_t                Shm_Local_node;
    453453SHM_EXTERN Shm_Locked_queue_Control      *Shm_Local_receive_queue;
    454454SHM_EXTERN Shm_Node_status_control       *Shm_Local_node_status;
    455 SHM_EXTERN rtems_unsigned32              Shm_isrstat;
     455SHM_EXTERN uint32_t                Shm_isrstat;
    456456                                                     /* reported by shmdr */
    457457
    458 SHM_EXTERN rtems_unsigned32 Shm_Pending_initialization;
    459 SHM_EXTERN rtems_unsigned32 Shm_Initialization_complete;
    460 SHM_EXTERN rtems_unsigned32 Shm_Active_node;
    461 
    462 SHM_EXTERN rtems_unsigned32 Shm_Maximum_nodes;
    463 SHM_EXTERN rtems_unsigned32 Shm_Maximum_envelopes;
    464 
    465 SHM_EXTERN rtems_unsigned32 Shm_Locked_queue_End_of_list;
    466 SHM_EXTERN rtems_unsigned32 Shm_Locked_queue_Not_on_list;
     458SHM_EXTERN uint32_t  Shm_Pending_initialization;
     459SHM_EXTERN uint32_t  Shm_Initialization_complete;
     460SHM_EXTERN uint32_t  Shm_Active_node;
     461
     462SHM_EXTERN uint32_t  Shm_Maximum_nodes;
     463SHM_EXTERN uint32_t  Shm_Maximum_envelopes;
     464
     465SHM_EXTERN uint32_t  Shm_Locked_queue_End_of_list;
     466SHM_EXTERN uint32_t  Shm_Locked_queue_Not_on_list;
    467467
    468468/* functions */
     
    473473Shm_Envelope_control *Shm_Locked_queue_Get( Shm_Locked_queue_Control * );
    474474void           Shm_Locked_queue_Initialize(
    475                   Shm_Locked_queue_Control *, rtems_unsigned32 );
     475                  Shm_Locked_queue_Control *, uint32_t  );
    476476            /* Shm_Initialize_lock is CPU dependent */
    477477            /* Shm_Lock is CPU dependent */
     
    481481void           Init_env_pool();
    482482void           Shm_Print_statistics( void );
    483 void           MPCI_Fatal( Internal_errors_Source, boolean, rtems_unsigned32 );
    484 rtems_task     Shm_Cause_interrupt( rtems_unsigned32 );
     483void           MPCI_Fatal( Internal_errors_Source, boolean, uint32_t  );
     484rtems_task     Shm_Cause_interrupt( uint32_t  );
    485485void           Shm_Poll();
    486486void           Shm_setclockvec();
     
    491491/* target specific routines */
    492492void          *Shm_Convert_address( void * );
    493 void           Shm_Get_configuration( rtems_unsigned32, shm_config_table ** );
     493void           Shm_Get_configuration( uint32_t  , shm_config_table ** );
    494494void           Shm_isr();
    495495void           Shm_setvec( void );
     
    515515
    516516rtems_mpci_entry Shm_Send_packet(
    517   rtems_unsigned32,
     517  uint32_t  ,
    518518  rtems_packet_prefix *
    519519);
Note: See TracChangeset for help on using the changeset viewer.