Changeset 7ded4e37 in rtems


Ignore:
Timestamp:
Apr 15, 2004, 4:00:25 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3239698
Parents:
d9ac411f
Message:

Remove unnecessary white spaces.

Location:
cpukit/itron
Files:
76 edited

Legend:

Unmodified
Added
Removed
  • cpukit/itron/include/itron.h

    rd9ac411f r7ded4e37  
    5050#endif
    5151/* end of include file */
    52 
  • cpukit/itron/include/itronsys/eventflags.h

    rd9ac411f r7ded4e37  
    4040 *  wfmode
    4141 */
    42  
     42
    4343#define TWF_ANDW   0x00   /* AND wait */
    4444#define TWF_ORW    0x02   /* OR wait */
     
    144144#endif
    145145/* end of include file */
    146 
  • cpukit/itron/include/itronsys/fmempool.h

    rd9ac411f r7ded4e37  
    123123#endif
    124124/* end of include file */
    125 
  • cpukit/itron/include/itronsys/intr.h

    rd9ac411f r7ded4e37  
    7575
    7676/*
    77  *  ena_int - Enable Interrupt 
     77 *  ena_int - Enable Interrupt
    7878 */
    7979
     
    104104#endif
    105105/* end of include file */
    106 
  • cpukit/itron/include/itronsys/mbox.h

    rd9ac411f r7ded4e37  
    9393
    9494/*
    95  *  rcv_msg - Receive Message from Mailbox 
     95 *  rcv_msg - Receive Message from Mailbox
    9696 */
    9797
     
    136136#endif
    137137/* end of include file */
    138 
  • cpukit/itron/include/itronsys/msgbuffer.h

    rd9ac411f r7ded4e37  
    158158#endif
    159159/* end of include file */
    160 
  • cpukit/itron/include/itronsys/network.h

    rd9ac411f r7ded4e37  
    7676#endif
    7777/* end of include file */
    78 
  • cpukit/itron/include/itronsys/port.h

    rd9ac411f r7ded4e37  
    7575
    7676/*
    77  *  cal_por - Call Port for Rendezvous Poll 
     77 *  cal_por - Call Port for Rendezvous Poll
    7878 */
    7979
     
    188188#endif
    189189/* end of include file */
    190 
  • cpukit/itron/include/itronsys/semaphore.h

    rd9ac411f r7ded4e37  
    8080
    8181/*
    82  *  wai_sem - Wait on Semaphore 
     82 *  wai_sem - Wait on Semaphore
    8383 */
    8484
     
    119119#endif
    120120/* end of include file */
    121 
  • cpukit/itron/include/itronsys/status.h

    rd9ac411f r7ded4e37  
    6868#endif
    6969/* end of include file */
    70 
  • cpukit/itron/include/itronsys/sysmgmt.h

    rd9ac411f r7ded4e37  
    8888 *  assigned by using the lower 8 bits of MAKER described in the previous
    8989 *  subsection.  The code assignment of CPU2 is left up to each maker.
    90  * 
    91  * 
    92  * 
     90 *
     91 *
     92 *
    9393 *        +---------------+---------------+---------------+---------------+
    9494 *    (1) | 0   0   0   0   0   0   0   0 |              CPU1             |
     
    9797 *    (2) |             MAKER1            |              CPU2             |
    9898 *        +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    99  * 
     99 *
    100100 *                   Figure 47 Format of cpu Returned by get_ver
    101  * 
    102  * 
     101 *
     102 *
    103103 *  Specific CPU codes established as of March, 1993 are as follows.
    104104 */
     
    180180 *  The version numbers of ITRON and uITRON specifications take the following
    181181 *  form.
    182  * 
     182 *
    183183 *          Ver X.YY.ZZ[.WW]
    184  * 
     184 *
    185185 *  where "X" represents major version number of the ITRON specification to
    186186 *  distinguish ITRON1, ITRON2 and uITRON 3.0 specifications.  Specific
    187187 *  assignment is as follows.
    188  * 
     188 *
    189189 *          "X" = 1  ITRON1 specification
    190190 *              = 2  ITRON2 or uITRON 2.0 specification
    191191 *              = 3  uITRON 3.0 specification
    192  * 
     192 *
    193193 *  "YY" is a number used to distinguish versions according to changes and
    194194 *  additions made to the specification.  After the specification is published,
     
    197197 *  standard versions and test versions within the TRON Association before the
    198198 *  specification have been published.
    199  * 
     199 *
    200200 *  The "X.YY" part of the specification version numbers is returned by spver
    201201 *  to get_ver system call.  The corresponding hexadecimal value is used when
    202202 *  "YY" includes 'A', 'B' or 'C'.
    203  * 
     203 *
    204204 *  "ZZ" represents a number used to distinguish versions related to the written
    205205 *  style of a specification.  This number is incremented in order
    206206 *  "ZZ" = 00, 01, 02... when there have been changes in specification
    207  *  configuration, reordering of chapters or corrections of misprints. 
     207 *  configuration, reordering of chapters or corrections of misprints.
    208208 *  When a further distinction of the written style of specifications is
    209209 *  desired, ".WW" may be added optionally after "ZZ".  WW will be assumed
     
    317317#endif
    318318/* end of include file */
    319 
  • cpukit/itron/include/itronsys/task.h

    rd9ac411f r7ded4e37  
    296296#endif
    297297/* end of include file */
    298 
  • cpukit/itron/include/itronsys/time.h

    rd9ac411f r7ded4e37  
    183183#endif
    184184/* end of include file */
    185 
  • cpukit/itron/include/itronsys/types.h

    rd9ac411f r7ded4e37  
    1818
    1919/* XXX some of these may need to be moved */
    20 /* 
    21  *  XXX: These names are too short and conflict with numerous 
     20/*
     21 *  XXX: These names are too short and conflict with numerous
    2222 *       off the shell programs including paranoia.
    2323 */
     
    4747
    4848/*
    49  *  Data Types Dependent on ITRON Specification 
     49 *  Data Types Dependent on ITRON Specification
    5050 *
    5151 *  In order to clarify the meanings of certain parameters, the
    52  *  following names are used for data types which appear frequently 
     52 *  following names are used for data types which appear frequently
    5353 *  and/or have special meanings.
    5454 */
     
    119119#endif
    120120/* end of include file */
    121 
  • cpukit/itron/include/itronsys/vmempool.h

    rd9ac411f r7ded4e37  
    130130#endif
    131131/* end of include file */
    132 
  • cpukit/itron/include/rtems/itron/eventflags.h

    rd9ac411f r7ded4e37  
    5959#endif
    6060/* end of include file */
    61 
  • cpukit/itron/include/rtems/itron/fmempool.h

    rd9ac411f r7ded4e37  
    2020
    2121/*
    22  *  The following defines the control block used to manage each 
     22 *  The following defines the control block used to manage each
    2323 *  fixed memory pool.
    2424 */
     
    6060#endif
    6161/* end of include file */
    62 
  • cpukit/itron/include/rtems/itron/intr.h

    rd9ac411f r7ded4e37  
    2929#endif
    3030/* end of include file */
    31 
  • cpukit/itron/include/rtems/itron/itronapi.h

    rd9ac411f r7ded4e37  
    1111 *  $Id$
    1212 */
    13  
     13
    1414#ifndef __ITRON_API_h
    1515#define __ITRON_API_h
    16  
     16
    1717#include <rtems/config.h>
    1818
     
    2222 *  Initialize the ITRON API.
    2323 */
    24  
     24
    2525void _ITRON_API_Initialize(
    2626  rtems_configuration_table *configuration_table
  • cpukit/itron/include/rtems/itron/mbox.h

    rd9ac411f r7ded4e37  
    7171#endif
    7272/* end of include file */
    73 
  • cpukit/itron/include/rtems/itron/msgbuffer.h

    rd9ac411f r7ded4e37  
    1616extern "C" {
    1717#endif
    18    
     18
    1919#include <rtems/itron/object.h>
    2020#include <rtems/score/coremsg.h>
    21    
     21
    2222/*
    23  *  The following defines the control block used to manage each 
     23 *  The following defines the control block used to manage each
    2424 *  message buffer.
    2525 */
     
    5656 *
    5757 *  This routine translates a core message buffer object status
    58  *  into the appropriate ITRON status code. 
    59  */ 
     58 *  into the appropriate ITRON status code.
     59 */
    6060
    6161ER _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
  • cpukit/itron/include/rtems/itron/network.h

    rd9ac411f r7ded4e37  
    2929#endif
    3030/* end of include file */
    31 
  • cpukit/itron/include/rtems/itron/object.h

    rd9ac411f r7ded4e37  
    8080 *  occurs to determine the specific ITRON error code to return.
    8181 */
    82  
     82
    8383#define _ITRON_Objects_Clarify_get_id_error( _the_information, _id ) \
    8484  (((_id) < -4) ? E_OACV : /* attempt to access a "system object" */ \
     
    118118#endif
    119119/* end of include file */
    120 
  • cpukit/itron/include/rtems/itron/port.h

    rd9ac411f r7ded4e37  
    5959#endif
    6060/* end of include file */
    61 
  • cpukit/itron/include/rtems/itron/semaphore.h

    rd9ac411f r7ded4e37  
    5757#endif
    5858/* end of include file */
    59 
  • cpukit/itron/include/rtems/itron/sysmgmt.h

    rd9ac411f r7ded4e37  
    2929#endif
    3030/* end of include file */
    31 
  • cpukit/itron/include/rtems/itron/task.h

    rd9ac411f r7ded4e37  
    2323/*
    2424 *  This macro evaluates to TRUE if there should be a "context error."
    25  *  This is defined as a blocking directive being issed from 
     25 *  This is defined as a blocking directive being issed from
    2626 *  task-independent portions or a task in dispatch disabled state.
    2727 *
     
    3232#define _ITRON_Is_in_non_task_state() \
    3333  (_Thread_Dispatch_disable_level != 0)
    34  
     34
    3535/*
    3636 *  This is the API specific information required by each thread for
     
    4141typedef struct {
    4242  uint32_t                  unused;  /* no use for the API extension */
    43                                      /*   structure for ITRON identified yet */ 
     43                                     /*   structure for ITRON identified yet */
    4444}  ITRON_API_Control;
    4545
     
    100100#endif
    101101/* end of include file */
    102 
  • cpukit/itron/include/rtems/itron/time.h

    rd9ac411f r7ded4e37  
    2929#endif
    3030/* end of include file */
    31 
  • cpukit/itron/include/rtems/itron/vmempool.h

    rd9ac411f r7ded4e37  
    6060#endif
    6161/* end of include file */
    62 
  • cpukit/itron/src/can_wup.c

    rd9ac411f r7ded4e37  
    5151  _ITRON_return_errorno( E_OK );
    5252}
    53 
  • cpukit/itron/src/chg_pri.c

    rd9ac411f r7ded4e37  
    3535  register Thread_Control *the_thread;
    3636  Objects_Locations        location;
    37   Priority_Control         new_priority; 
     37  Priority_Control         new_priority;
    3838
    3939  the_thread = _ITRON_Task_Get( tskid, &location );
     
    4141    case OBJECTS_REMOTE:
    4242    case OBJECTS_ERROR:
    43       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     43      return _ITRON_Task_Clarify_get_id_error( tskid );
    4444
    4545    case OBJECTS_LOCAL:
     
    6767  _ITRON_return_errorno( E_OK );
    6868}
    69 
    70 
  • cpukit/itron/src/cre_mbf.c

    rd9ac411f r7ded4e37  
    4949  if (pk_cmbf->bufsz < 0 || pk_cmbf->maxmsz < 0)
    5050    return E_PAR;
    51    
     51
    5252  if (pk_cmbf->bufsz < pk_cmbf->maxmsz)
    5353    return E_PAR;
     
    7575  _ITRON_Objects_Open( &_ITRON_Message_buffer_Information,
    7676                       &the_message_buffer->Object );
    77    
     77
    7878  /*
    7979   *  If multiprocessing were supported, this is where we would announce
  • cpukit/itron/src/cre_mbx.c

    rd9ac411f r7ded4e37  
    2323/*
    2424 *  cre_mbx - Create Mailbox
    25  * 
     25 *
    2626 *      Creates a Mailbox according to the following spec:
    2727 *
  • cpukit/itron/src/cre_tsk.c

    rd9ac411f r7ded4e37  
    3636  register Thread_Control     *the_thread;
    3737  boolean                      status;
    38   Priority_Control             core_priority; 
     38  Priority_Control             core_priority;
    3939
    4040  /*
    4141   * Validate Parameters.
    4242   */
    43  
     43
    4444 if ( pk_ctsk == NULL )
    4545    return E_PAR;
     
    6363  if ( pk_ctsk->stksz < 0 )
    6464    return E_PAR;
    65  
     65
    6666  /*
    6767   * Disable dispatching.
    6868   */
    69  
     69
    7070  _Thread_Disable_dispatch();
    7171
     
    8585  status = _Thread_Initialize(
    8686    &_ITRON_Task_Information,
    87     the_thread, 
     87    the_thread,
    8888    NULL,
    8989    pk_ctsk->stksz,
     
    119119  _ITRON_return_errorno( E_OK );
    120120}
    121 
    122 
    123 
    124 
  • cpukit/itron/src/del_mbf.c

    rd9ac411f r7ded4e37  
    5454      return E_OK;
    5555  }
    56  
     56
    5757  return E_OK;
    5858}
  • cpukit/itron/src/del_sem.c

    rd9ac411f r7ded4e37  
    3232  ITRON_Semaphore_Control *the_semaphore;
    3333  Objects_Locations        location;
    34  
     34
    3535  the_semaphore = _ITRON_Semaphore_Get( semid, &location );
    3636  switch ( location ) {
     
    3838    case OBJECTS_ERROR:
    3939      return _ITRON_Semaphore_Clarify_get_id_error( semid );
    40  
     40
    4141    case OBJECTS_LOCAL:
    4242      _CORE_semaphore_Flush(
  • cpukit/itron/src/del_tsk.c

    rd9ac411f r7ded4e37  
    4141    case OBJECTS_REMOTE:
    4242    case OBJECTS_ERROR:
    43       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     43      return _ITRON_Task_Clarify_get_id_error( tskid );
    4444
    4545    case OBJECTS_LOCAL:
     
    5757  _ITRON_return_errorno( result );
    5858}
    59 
  • cpukit/itron/src/dis_dsp.c

    rd9ac411f r7ded4e37  
    3333  /*
    3434   *  Disable dispatch for protection
    35    */ 
     35   */
    3636
    3737  _Thread_Disable_dispatch();
     
    3939  return E_OK;
    4040}
    41 
    42 
  • cpukit/itron/src/ena_dsp.c

    rd9ac411f r7ded4e37  
    3535  return E_OK;
    3636}
    37 
  • cpukit/itron/src/eventflags.c

    rd9ac411f r7ded4e37  
    1818#include <rtems/itron/eventflags.h>
    1919
    20 /*   
     20/*
    2121 *  _ITRON_Eventflags_Manager_initialization
    22  * 
     22 *
    2323 *  This routine initializes all event flags manager related data structures.
    2424 *
     
    3131void _ITRON_Eventflags_Manager_initialization(
    3232  uint32_t   maximum_eventflags
    33 ) 
     33)
    3434{
    3535  _Objects_Initialize_information(
     
    3838    OBJECTS_ITRON_EVENTFLAGS,           /* object class */
    3939    maximum_eventflags,                 /* maximum objects of this class */
    40     sizeof( ITRON_Eventflags_Control ), 
     40    sizeof( ITRON_Eventflags_Control ),
    4141                                 /* size of this object's control block */
    4242    FALSE,                       /* TRUE if names for this object are strings */
     
    4848#endif
    4949  );
    50    
     50
    5151  /*
    5252   *  Register the MP Process Packet routine.
     
    5454   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
    5555   */
    56  
    57 } 
     56
     57}
    5858
    5959/*
     
    158158  return E_OK;
    159159}
    160 
  • cpukit/itron/src/exd_tsk.c

    rd9ac411f r7ded4e37  
    4242  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
    4343  _ITRON_Delete_task( _Thread_Executing );
    44  
     44
    4545  _Thread_Enable_dispatch();
    4646}
    47 
  • cpukit/itron/src/ext_tsk.c

    rd9ac411f r7ded4e37  
    4343  _Thread_Reset( _Thread_Executing, NULL, 0 );
    4444
    45   _Thread_Enable_dispatch(); 
     45  _Thread_Enable_dispatch();
    4646}
  • cpukit/itron/src/fmempool.c

    rd9ac411f r7ded4e37  
    1818#include <rtems/itron/fmempool.h>
    1919
    20 /*   
     20/*
    2121 *  _ITRON_Fixed_memory_pool_Manager_initialization
    22  * 
     22 *
    2323 *  This routine initializes all fixed memory pool manager related
    2424 *  data structures.
     
    3232void _ITRON_Fixed_memory_pool_Manager_initialization(
    3333  uint32_t   maximum_fixed_memory_pools
    34 ) 
     34)
    3535{
    3636  _Objects_Initialize_information(
     
    4949#endif
    5050  );
    51    
     51
    5252  /*
    5353   *  Register the MP Process Packet routine.
     
    5555   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
    5656   */
    57  
    58 } 
     57
     58}
    5959
    6060/*
     
    141141  return E_OK;
    142142}
    143 
  • cpukit/itron/src/frsm_tsk.c

    rd9ac411f r7ded4e37  
    4040    case OBJECTS_REMOTE:
    4141    case OBJECTS_ERROR:
    42       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     42      return _ITRON_Task_Clarify_get_id_error( tskid );
    4343
    4444    case OBJECTS_LOCAL:
     
    4848      if (_States_Is_dormant( the_thread->current_state ))
    4949        _ITRON_return_errorno( E_OBJ );
    50    
     50
    5151      if ( ! _States_Is_suspended(the_thread->current_state) )
    5252        _ITRON_return_errorno( E_OK );
     
    5959
    6060}
    61 
    62 
  • cpukit/itron/src/get_tid.c

    rd9ac411f r7ded4e37  
    3636   *  to be enhanced to support multiprocessing.
    3737   */
    38    
     38
    3939  *p_tskid = _Objects_Get_index( _Thread_Executing->Object.id );
    4040  return E_OK;
    4141}
    42 
  • cpukit/itron/src/itronintr.c

    rd9ac411f r7ded4e37  
    7878
    7979/*
    80  *  ena_int - Enable Interrupt 
     80 *  ena_int - Enable Interrupt
    8181 */
    8282
     
    109109  return E_OK;
    110110}
    111 
  • cpukit/itron/src/itronsem.c

    rd9ac411f r7ded4e37  
    5959
    6060}
    61 
  • cpukit/itron/src/itrontime.c

    rd9ac411f r7ded4e37  
    3737#endif
    3838}
    39    
     39
    4040
    4141/*
     
    4949 Watchdog_Interval temp; /* an integer in seconds after conversion from SYSTIME */
    5050 TOD_Control the_tod;
    51  
     51
    5252/* convert *pk_tim which is 48 bits integer in binary into an ordinary
    5353 integer in milliseconds */
    54  
     54
    5555/* XXX */ temp = 0;
    5656  if(temp > 0) {
     
    118118  Watchdog_Interval timeInterval;
    119119#endif
    120  
     120
    121121/* XXX */ object = 0;
    122122  if ( pk_dcyc->cycatr != TA_HLNG)
     
    132132         pk_dcyc->exinf);
    133133  _Watchdog_Deactivate(object);
    134                
     134
    135135  return E_OK;
    136136}
     
    146146{
    147147  Watchdog_Control *object;
    148    
     148
    149149  if(cycact != TCY_OFF || cycact != TCY_ON)
    150150     return E_PAR;
     
    154154     return E_NOEXS;
    155155#endif
    156  
     156
    157157  _Watchdog_Activate(object);
    158          
     158
    159159  return E_OK;
    160160}
     
    177177#endif
    178178
    179 /* XXX */ pk_dcyc = 0; 
    180  
     179/* XXX */ pk_dcyc = 0;
     180
    181181/* XXX will to use a "get" routine to map from id to object pointer */
    182182/* XXX and the object pointer should be of type specific to this manager */
     
    192192     pk_rcyc->lfttim = pk_dcyc->cyctim - timeElapse_since_actCyclic;
    193193#endif
    194      
     194
    195195     return E_OK;
    196196  }
    197197  else
    198      return E_NOEXS;   
     198     return E_NOEXS;
    199199}
    200200
     
    207207  T_DALM *pk_dalm
    208208)
    209 { 
     209{
    210210#if 0
    211211  Objects_Control *objectAlrm;
    212212  Watchdog_Interval timeInterval;
    213  
     213
    214214  timeInterval = pk_dalm->almtim / 1000;
    215215  (void) _Watchdog_Remove(&objectAlrm);
     
    222222  _Thread_Enable_dispatch();
    223223#endif
    224              
     224
    225225  return E_OK;
    226226}
     
    235235)
    236236{
    237    
     237
    238238  return E_OK;
    239239}
     
    246246{
    247247}
    248 
  • cpukit/itron/src/mbox.c

    rd9ac411f r7ded4e37  
    2121#include <rtems/itron/task.h>
    2222
    23 /*   
     23/*
    2424 *  _ITRON_Mailbox_Manager_initialization
    25  * 
     25 *
    2626 *  This routine initializes all mailboxes manager related data structures.
    2727 *
     
    3434void _ITRON_Mailbox_Manager_initialization(
    3535  uint32_t   maximum_mailboxes
    36 ) 
     36)
    3737{
    3838  _Objects_Initialize_information(
     
    5050#endif
    5151  );
    52    
     52
    5353  /*
    5454   *  Register the MP Process Packet routine.
     
    5656   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
    5757   */
    58  
    59 } 
     58
     59}
  • cpukit/itron/src/msgbuffer.c

    rd9ac411f r7ded4e37  
    2121#include <rtems/itron/task.h>
    2222
    23 /*   
     23/*
    2424 *  _ITRON_Message_buffer_Manager_initialization
    25  * 
     25 *
    2626 *  This routine initializes all message buffer manager related data
    27  *  structures. 
     27 *  structures.
    2828 *
    2929 *  Input parameters:
     
    3535void _ITRON_Message_buffer_Manager_initialization(
    3636  uint32_t   maximum_message_buffers
    37 ) 
     37)
    3838{
    3939  _Objects_Initialize_information(
     
    4343    maximum_message_buffers,            /* maximum objects of this class */
    4444    sizeof( ITRON_Message_buffer_Control ),
    45                                /* size of this object's control block */ 
    46     FALSE,                     /* TRUE if names for this object are strings */ 
    47     ITRON_MAXIMUM_NAME_LENGTH  /* maximum length of each object's name */ 
     45                               /* size of this object's control block */
     46    FALSE,                     /* TRUE if names for this object are strings */
     47    ITRON_MAXIMUM_NAME_LENGTH  /* maximum length of each object's name */
    4848#if defined(RTEMS_MULTIPROCESSING)
    4949    ,
     
    5252#endif
    5353  );
    54  
     54
    5555  /*
    5656   *  Register the MP Process Packet routine.
     
    5858   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
    5959   */
    60 }
    61 
     60}
  • cpukit/itron/src/network.c

    rd9ac411f r7ded4e37  
    7070  return E_OK;
    7171}
    72 
  • cpukit/itron/src/port.c

    rd9ac411f r7ded4e37  
    1818#include <rtems/itron/port.h>
    1919
    20 /*   
     20/*
    2121 *  _ITRON_Port_Manager_initialization
    22  * 
     22 *
    2323 *  This routine initializes all ports manager related data structures.
    2424 *
     
    3131void _ITRON_Port_Manager_initialization(
    3232  uint32_t   maximum_ports
    33 ) 
     33)
    3434{
    3535  _Objects_Initialize_information(
     
    4747#endif
    4848  );
    49    
     49
    5050  /*
    5151   *  Register the MP Process Packet routine.
     
    5353   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
    5454   */
    55  
    56 } 
     55
     56}
    5757
    5858/*
     
    8080
    8181/*
    82  *  cal_por - Call Port for Rendezvous Poll 
     82 *  cal_por - Call Port for Rendezvous Poll
    8383 */
    8484
     
    210210  return E_OK;
    211211}
    212 
  • cpukit/itron/src/preq_sem.c

    rd9ac411f r7ded4e37  
    2929  ID semid
    3030)
    31 { 
     31{
    3232  return twai_sem( semid, TMO_POL );
    3333}
  • cpukit/itron/src/psnd_mbf.c

    rd9ac411f r7ded4e37  
    3131)
    3232{
    33   return tsnd_mbf( mbfid, msg, msgsz, TMO_POL ); 
     33  return tsnd_mbf( mbfid, msg, msgsz, TMO_POL );
    3434}
  • cpukit/itron/src/rcv_mbx.c

    rd9ac411f r7ded4e37  
    2222
    2323/*
    24  *  rcv_msg - Receive Message from Mailbox 
     24 *  rcv_msg - Receive Message from Mailbox
    2525 */
    2626
  • cpukit/itron/src/ref_mbf.c

    rd9ac411f r7ded4e37  
    3333  Objects_Locations                  location;
    3434  CORE_message_queue_Control        *the_core_msgq;
    35        
     35
    3636  if ( !pk_rmbf )
    3737    return E_PAR;   /* XXX check this error code */
    3838
    3939  the_message_buffer = _ITRON_Message_buffer_Get( mbfid, &location );
    40   switch ( location ) {   
     40  switch ( location ) {
    4141  case OBJECTS_REMOTE:               /* Multiprocessing not supported */
    4242  case OBJECTS_ERROR:
    4343    return _ITRON_Message_buffer_Clarify_get_id_error( mbfid );
    44  
     44
    4545  case OBJECTS_LOCAL:
    4646    the_core_msgq = &the_message_buffer->message_queue;
     
    5656        the_core_msgq->Pending_messages.first)->Contents.size;
    5757    }
    58        
     58
    5959    /*
    6060     *  Fill in the size of free buffer
     
    6262
    6363    pk_rmbf->frbufsz =
    64       (the_core_msgq->maximum_pending_messages - 
     64      (the_core_msgq->maximum_pending_messages -
    6565       the_core_msgq->number_of_pending_messages) *
    6666       the_core_msgq->maximum_message_size;
     
    7171     */
    7272
    73     if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) ) 
     73    if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) )
    7474       pk_rmbf->wtsk = FALSE;
    7575    else
     
    7979    _Thread_Enable_dispatch();
    8080    return E_OK;
    81   }   
     81  }
    8282  return E_OK;
    8383}
  • cpukit/itron/src/ref_mbx.c

    rd9ac411f r7ded4e37  
    4848      if ( _Chain_Is_empty( pending ) )
    4949        pk_rmbx->pk_msg = NULL;
    50       else 
     50      else
    5151        pk_rmbx->pk_msg = (T_MSG *) pending->first;
    5252
     
    6464  _ITRON_return_errorno( E_OK );
    6565}
    66 
  • cpukit/itron/src/ref_sem.c

    rd9ac411f r7ded4e37  
    3333  ITRON_Semaphore_Control *the_semaphore;
    3434  Objects_Locations        location;
    35  
     35
    3636  if ( !pk_rsem )
    3737    return E_PAR;   /* XXX check this error code */
    3838
    3939  the_semaphore = _ITRON_Semaphore_Get( semid, &location );
    40   switch ( location ) {   
     40  switch ( location ) {
    4141    case OBJECTS_REMOTE:               /* Multiprocessing not supported */
    4242    case OBJECTS_ERROR:
    4343      return _ITRON_Semaphore_Clarify_get_id_error( semid );
    44  
     44
    4545    case OBJECTS_LOCAL:
    4646      /*
     
    6161      _Thread_Enable_dispatch();
    6262      return E_OK;
    63   }   
     63  }
    6464  return E_OK;
    6565}
    66 
  • cpukit/itron/src/ref_tsk.c

    rd9ac411f r7ded4e37  
    3636  register Thread_Control *the_thread;
    3737  Objects_Locations        location;
    38   Priority_Control         core_priority; 
     38  Priority_Control         core_priority;
    3939
    4040  if (!pk_rtsk)
     
    4646    case OBJECTS_ERROR:
    4747      return _ITRON_Task_Clarify_get_id_error( tskid );
    48  
     48
    4949    case OBJECTS_LOCAL:
    5050
     
    6262      pk_rtsk->suscnt  = the_thread->suspend_count;
    6363      pk_rtsk->tskatr  = 0;       /* XXX - Not correctly implemented */
    64       pk_rtsk->task    = (FP) the_thread->Start.entry_point; 
     64      pk_rtsk->task    = (FP) the_thread->Start.entry_point;
    6565      core_priority    = the_thread->Start.initial_priority;
    6666      pk_rtsk->itskpri = _ITRON_Task_Core_to_Priority( core_priority );
     
    8484        pk_rtsk->tskstat |= TTS_RUN;
    8585      if ( _States_Is_ready(the_thread->current_state) )
    86         pk_rtsk->tskstat |= TTS_RDY; 
     86        pk_rtsk->tskstat |= TTS_RDY;
    8787      if ( _States_Is_dormant( the_thread->current_state) )
    8888        pk_rtsk->tskstat |= TTS_DMT;
     
    9898
    9999}
    100 
    101 
    102 
    103 
  • cpukit/itron/src/rel_wai.c

    rd9ac411f r7ded4e37  
    3939    case OBJECTS_REMOTE:
    4040    case OBJECTS_ERROR:
    41       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     41      return _ITRON_Task_Clarify_get_id_error( tskid );
    4242
    4343    case OBJECTS_LOCAL:
     
    4949  }
    5050
    51   _ITRON_return_errorno( E_OK ); 
     51  _ITRON_return_errorno( E_OK );
    5252}
    53 
    54 
    55 
  • cpukit/itron/src/rot_rdq.c

    rd9ac411f r7ded4e37  
    3333{
    3434  PRI priority;
    35  
     35
    3636
    3737  if (( tskpri <= 0 ) || ( tskpri >= 256 ))
     
    4848    _Thread_Yield_processor();
    4949  else {
    50     _Thread_Rotate_Ready_Queue( _ITRON_Task_Core_to_Priority( tskpri ) ); 
     50    _Thread_Rotate_Ready_Queue( _ITRON_Task_Core_to_Priority( tskpri ) );
    5151  }
    5252  _Thread_Enable_dispatch();
    53  
     53
    5454  return E_OK;
    5555}
    56 
    57 
  • cpukit/itron/src/rsm_tsk.c

    rd9ac411f r7ded4e37  
    4040    case OBJECTS_REMOTE:
    4141    case OBJECTS_ERROR:
    42       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     42      return _ITRON_Task_Clarify_get_id_error( tskid );
    4343
    4444    case OBJECTS_LOCAL:
     
    5757  }
    5858
    59   _ITRON_return_errorno( E_OK ); 
     59  _ITRON_return_errorno( E_OK );
    6060}
    61 
  • cpukit/itron/src/snd_mbf.c

    rd9ac411f r7ded4e37  
    3131)
    3232{
    33   return tsnd_mbf( mbfid, msg, msgsz, TMO_FEVR ); 
     33  return tsnd_mbf( mbfid, msg, msgsz, TMO_FEVR );
    3434}
  • cpukit/itron/src/snd_mbx.c

    rd9ac411f r7ded4e37  
    6565  }
    6666
    67   _ITRON_return_errorno( 
     67  _ITRON_return_errorno(
    6868     _ITRON_Mailbox_Translate_core_message_queue_return_code( msg_status )
    6969  );
  • cpukit/itron/src/sta_tsk.c

    rd9ac411f r7ded4e37  
    4242    case OBJECTS_REMOTE:
    4343    case OBJECTS_ERROR:
    44       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     44      return _ITRON_Task_Clarify_get_id_error( tskid );
    4545
    4646    case OBJECTS_LOCAL:
     
    5757      );
    5858
    59       /* 
    60        * This error can not happen entry_point is checked in create. 
    61          if ( !status )           
     59      /*
     60       * This error can not happen entry_point is checked in create.
     61         if ( !status )
    6262           _ITRON_return_errorno(  E_OBJ );
    6363       */
     
    6666  }
    6767
    68   _ITRON_return_errorno( E_OK ); 
     68  _ITRON_return_errorno( E_OK );
    6969}
    70 
    71 
    72 
    73 
  • cpukit/itron/src/sus_tsk.c

    rd9ac411f r7ded4e37  
    4545    case OBJECTS_REMOTE:
    4646    case OBJECTS_ERROR:
    47       return _ITRON_Task_Clarify_get_id_error( tskid ); 
     47      return _ITRON_Task_Clarify_get_id_error( tskid );
    4848
    4949    case OBJECTS_LOCAL:
     
    5959  }
    6060
    61   _ITRON_return_errorno( E_OK ); 
     61  _ITRON_return_errorno( E_OK );
    6262}
    63 
    64 
    65 
    66 
    67 
    68 
    69 
  • cpukit/itron/src/sysmgmt.c

    rd9ac411f r7ded4e37  
    7474  return E_OK;
    7575}
    76 
  • cpukit/itron/src/task.c

    rd9ac411f r7ded4e37  
    6767{
    6868  (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_ITRON ] );
    69  
     69
    7070  deleted->API_Extensions[ THREAD_API_ITRON ] = NULL;
    7171}
     
    9696
    9797  for ( index=0 ; index < maximum ; index++ ) {
    98    
     98
    9999    return_value = cre_tsk(
    100100       user_tasks[ index ].id,
     
    137137
    138138/*
    139  *  At this point in time, the ITRON API does not need any other 
    140  *  extensions.  See the POSIX and RTEMS API extensions for 
     139 *  At this point in time, the ITRON API does not need any other
     140 *  extensions.  See the POSIX and RTEMS API extensions for
    141141 *  examples of how they can be used.
    142142 */
  • cpukit/itron/src/ter_tsk.c

    rd9ac411f r7ded4e37  
    3838  the_thread = _ITRON_Task_Get( tskid, &location );
    3939  switch ( location ) {
    40     case OBJECTS_REMOTE:   
     40    case OBJECTS_REMOTE:
    4141    case OBJECTS_ERROR:
    4242      return _ITRON_Task_Clarify_get_id_error( tskid );
    43      
     43
    4444    case OBJECTS_LOCAL:
    45    
     45
    4646      if ( _Thread_Is_executing( the_thread ) )
    4747        _ITRON_return_errorno( E_OBJ );
    48  
     48
    4949      if ( _States_Is_dormant( the_thread->current_state ) )
    5050        _ITRON_return_errorno( E_OBJ );
     
    5353      _Thread_Set_state( the_thread, STATES_DORMANT );
    5454      break;
    55   } 
     55  }
    5656
    57   _ITRON_return_errorno( E_OK ); 
     57  _ITRON_return_errorno( E_OK );
    5858}
    59 
    60 
    61 
    62 
    63 
    64 
    65 
  • cpukit/itron/src/trcv_mbf.c

    rd9ac411f r7ded4e37  
    4343  } else {
    4444    wait = TRUE;
    45     if (tmout != TMO_FEVR) 
     45    if (tmout != TMO_FEVR)
    4646      interval = TOD_MILLISECONDS_TO_TICKS(tmout);
    4747  }
    4848
    49   if (wait && _ITRON_Is_in_non_task_state() ) 
     49  if (wait && _ITRON_Is_in_non_task_state() )
    5050    return E_CTX;
    5151
    5252  if (!p_msgsz || !msg || tmout <= -2)
    5353    return E_PAR;
    54    
     54
    5555  the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location);
    5656  switch (location) {
     
    6969      );
    7070      _Thread_Enable_dispatch();
    71       status = (CORE_message_queue_Status)_Thread_Executing->Wait.return_code; 
     71      status = (CORE_message_queue_Status)_Thread_Executing->Wait.return_code;
    7272      return
    7373        _ITRON_Message_buffer_Translate_core_message_buffer_return_code(status);
  • cpukit/itron/src/trcv_mbx.c

    rd9ac411f r7ded4e37  
    6666        &size,
    6767        wait,
    68         interval 
     68        interval
    6969      );
    7070      break;
    7171  }
    7272
    73   _ITRON_return_errorno( 
     73  _ITRON_return_errorno(
    7474    _ITRON_Mailbox_Translate_core_message_queue_return_code(
    7575        _Thread_Executing->Wait.return_code ) );
  • cpukit/itron/src/tslp_tsk.c

    rd9ac411f r7ded4e37  
    3535  return E_OK;
    3636}
    37 
    38 
  • cpukit/itron/src/twai_sem.c

    rd9ac411f r7ded4e37  
    3636  boolean                  wait;
    3737  CORE_semaphore_Status    status;
    38  
     38
    3939  interval = 0;
    4040  if ( tmout == TMO_POL ) {
     
    4848  if ( wait && _ITRON_Is_in_non_task_state() )
    4949    return E_CTX;
    50  
     50
    5151  the_semaphore = _ITRON_Semaphore_Get( semid, &location );
    5252  switch ( location ) {
  • cpukit/itron/src/vmempool.c

    rd9ac411f r7ded4e37  
    2020/*
    2121 *  _ITRON_Variable_memory_pool_Manager_initialization
    22  * 
     22 *
    2323 *  This routine initializes all variable memory pool manager related
    2424 *  data structures.
     
    3232void _ITRON_Variable_memory_pool_Manager_initialization(
    3333  uint32_t   maximum_variable_memory_pools
    34 ) 
     34)
    3535{
    3636  _Objects_Initialize_information(
     
    4848    NULL                        /* Proxy extraction support callout */
    4949#endif
    50   ); 
    51    
     50  );
     51
    5252  /*
    5353   *  Register the MP Process Packet routine.
     
    5555   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
    5656   */
    57  
    58 }   
     57
     58}
    5959
    6060/*
     
    144144  return E_OK;
    145145}
    146 
  • cpukit/itron/src/wai_sem.c

    rd9ac411f r7ded4e37  
    2121
    2222/*
    23  *  wai_sem - Wait on Semaphore 
     23 *  wai_sem - Wait on Semaphore
    2424 *
    2525 *  This function implements the ITRON 3.0 wai_sem() service.
  • cpukit/itron/src/wup_tsk.c

    rd9ac411f r7ded4e37  
    3535  return E_OK;
    3636}
    37 
Note: See TracChangeset for help on using the changeset viewer.