Changeset 78a38fa2 in rtems


Ignore:
Timestamp:
Oct 8, 2014, 10:38:12 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
aee5d63
Parents:
79f093b
git-author:
Joel Sherrill <joel.sherrill@…> (10/08/14 22:38:12)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:58)
Message:

Eliminate use of /*PAGE and clean up formatting

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mrm332/console/console.c

    r79f093b r78a38fa2  
    11/*
    2  *  This file contains the generic console driver shell used
    3  *  by all console drivers using libchip.
    4  *
    5  *  This driver uses the termios pseudo driver.
    6  *
    72 *  COPYRIGHT (c) 1989-1997.
    83 *  On-Line Applications Research Corporation (OAR).
     
    1813#include "sci.h"
    1914
    20 /*PAGE
    21  *
     15/*
    2216 *  console_open
    2317 *
    2418 *  open a port as a termios console.
    2519 */
    26 
    2720rtems_device_driver console_open(
    2821  rtems_device_major_number major,
     
    4841}
    4942
    50 /*PAGE
    51  *
     43/*
    5244 *  console_close
    5345 *
    5446 *  This routine closes a port that has been opened as console.
    5547 */
    56 
    5748rtems_device_driver console_close(
    5849  rtems_device_major_number major,
     
    6455}
    6556
    66 /*PAGE
    67  *
     57/*
    6858 *  console_read
    6959 *
    7060 *  This routine uses the termios driver to read a character.
    7161 */
    72 
    7362rtems_device_driver console_read(
    7463  rtems_device_major_number major,
     
    8069}
    8170
    82 /*PAGE
    83  *
     71/*
    8472 *  console_write
    8573 *
    8674 *  this routine uses the termios driver to write a character.
    8775 */
    88 
    8976rtems_device_driver console_write(
    9077  rtems_device_major_number major,
     
    9683}
    9784
    98 /*PAGE
    99  *
     85/*
    10086 *  console_control
    10187 *
     
    11298}
    11399
    114 /*PAGE
    115  *
     100/*
    116101 *  console_initialize
    117102 *
    118103 *  Routine called to initialize the console device driver.
    119104 */
    120 
    121105rtems_device_driver console_initialize(
    122106  rtems_device_major_number  major,
  • c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c

    r79f093b r78a38fa2  
    11/*
    2  *
    32 *  COPYRIGHT (c) 1989-2009.
    43 *  On-Line Applications Research Corporation (OAR).
     
    1817#include "PCI.h"
    1918
    20 /*PAGE
    21  *
     19/*
    2220 *  SCORE603e_FLASH_Disable
    2321 */
    24 
    2522unsigned int SCORE603e_FLASH_Disable(
    26   uint32_t                       area                           /* IN  */
     23  uint32_t        area
    2724)
    2825{
     
    8481}
    8582
    86 /*PAGE
    87  *
     83/*
    8884 *  SCORE603e_FLASH_Enable_writes
    8985 */
    9086unsigned int SCORE603e_FLASH_Enable_writes(
    91   uint32_t                       area                           /* IN  */
     87  uint32_t         area
    9288)
    9389{
  • c/src/lib/libbsp/powerpc/score603e/console/85c30.c

    r79f093b r78a38fa2  
    44 *
    55 *  Currently only polled mode is supported.
    6  *
     6 */
     7
     8/*
    79 *  COPYRIGHT (c) 1989-2009.
    810 *  On-Line Applications Research Corporation (OAR).
     
    360362#if CONSOLE_USE_INTERRUPTS
    361363
    362 /*PAGE
    363  *
     364/*
    364365 *  Z8530_Async_Channel_ISR
    365  *
    366366 */
    367367/* RR0 */
  • c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c

    r79f093b r78a38fa2  
    7272}
    7373
    74 /*PAGE
    75  *
     74/*
    7675 *  bsp_predriver_hook
    7776 *
    7877 *  Before drivers are setup initialize interupt vectors.
    7978 */
    80 
    8179void init_RTC(void);
    8280void initialize_PMC(void);
  • c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c

    r79f093b r78a38fa2  
    11/*
    22 *  VMEbus support routines for the Generation I board.
    3  *
     3 */
     4
     5/*
    46 *  COPYRIGHT (c) 1989-2008.
    57 *  On-Line Applications Research Corporation (OAR).
     
    1416#include <rtems/vmeintr.h>
    1517
    16 /*PAGE
    17  *
     18/*
    1819 *  VME_interrupt_Disable
    19  *
    2020 */
    21 
    22 void VME_interrupt_Disable (
     21void VME_interrupt_Disable(
    2322  VME_interrupt_Mask                mask                        /* IN  */
    2423)
     
    3332}
    3433
    35 /*PAGE
    36  *
     34/*
    3735 *  VME_interrupt_Enable
    38  *
    3936 */
    40 
    41 void VME_interrupt_Enable (
     37void VME_interrupt_Enable(
    4238  VME_interrupt_Mask                mask                        /* IN  */
    4339)
  • c/src/lib/libbsp/shared/tod.c

    r79f093b r78a38fa2  
    11/*
    22 *  Real Time Clock Driver Wrapper for Libchip
    3  *
     3 */
     4
     5/*
    46 *  The license and distribution terms for this file may be
    57 *  found in the file LICENSE in this distribution or at
     
    1719 *  Configuration Information
    1820 */
    19 
    2021extern size_t                     RTC_Count;
    2122extern rtems_device_minor_number  RTC_Minor;
     
    3031 *  Initialize the RTC driver
    3132 */
    32 
    3333rtems_device_driver rtc_initialize(
    3434  rtems_device_major_number  major,
     
    6767   *  Register and initialize the primary RTC's
    6868   */
    69 
    7069  status = rtems_io_register_name( RTC_DEVICE_NAME, major, RTC_Minor );
    7170  if (status != RTEMS_SUCCESSFUL) {
     
    7877   *  Now initialize any secondary RTC's
    7978   */
    80 
    8179  for ( minor++ ; minor<RTC_Count ; minor++) {
    8280    /*
     
    9795       * Initialize the hardware device.
    9896       */
    99 
    10097      RTC_Table[minor].pDeviceFns->deviceInitialize(minor);
    10198
     
    202199}
    203200
    204 /*PAGE
    205  *
     201/*
    206202 *  This routine copies the time from the real time clock to RTEMS
    207  *
    208  *  Input parameters:  NONE
    209  *
    210  *  Output parameters:  NONE
    211  *
    212  *  Return values: NONE
    213  */
    214 
     203 */
    215204void setRealTimeToRTEMS()
    216205{
     
    224213}
    225214
    226 /*PAGE
    227  *
     215/*
    228216 *  setRealTimeFromRTEMS
    229217 *
    230218 *  This routine copies the time from RTEMS to the real time clock
    231  *
    232  *  Input parameters:  NONE
    233  *
    234  *  Output parameters:  NONE
    235  *
    236  *  Return values: NONE
    237  */
    238 
     219 */
    239220void setRealTimeFromRTEMS(void)
    240221{
     
    248229}
    249230
    250 /*PAGE
    251  *
     231/*
    252232 *  getRealTime
    253233 *
    254234 *  This routine reads the current time from the RTC.
    255  *
    256  *  Input parameters:  NONE
    257  *
    258  *  Output parameters:  NONE
    259  *
    260  *  Return values: NONE
    261  */
    262 
     235 */
    263236void getRealTime(
    264237  rtems_time_of_day *tod
     
    271244}
    272245
    273 /*PAGE
    274  *
     246/*
    275247 *  setRealTime
    276248 *
    277249 *  This routine sets the RTC.
    278  *
    279  *  Input parameters:  NONE
    280  *
    281  *  Output parameters:  NONE
    282  *
    283  *  Return values: NONE
    284250 */
    285251int setRealTime(
     
    297263}
    298264
    299 /*PAGE
    300  *
     265/*
    301266 *  checkRealTime
    302267 *
    303268 *  This routine reads the returns the variance betweent the real time and
    304  *  rtems time.
    305  *
    306  *  Input parameters: NONE
    307  *
    308  *  Output parameters:  NONE
    309  *
    310  *  Return values:
    311  *    int   The differance between the real time clock and rtems time.
     269 *  RTEMS time.
    312270 */
    313271int checkRealTime(void)
  • c/src/lib/libcpu/m68k/shared/misc/m68kidle.c

    r79f093b r78a38fa2  
    22 *  Motorola MC68xxx Dependent Idle Body Source
    33 *
     4 *  This kernel routine is the idle thread.  The idle thread runs any time
     5 *  no other thread is ready to run.  This thread loops forever with
     6 *  interrupts enabled.
     7 */
     8
     9/*
    410 *  COPYRIGHT (c) 1989-2002.
    511 *  On-Line Applications Research Corporation (OAR).
     
    1319#include <rtems/score/thread.h>
    1420
    15 
    16 /*PAGE
    17  *
    18  *  _CPU_Thread_Idle_body
    19  *
    20  *  This kernel routine is the idle thread.  The idle thread runs any time
    21  *  no other thread is ready to run.  This thread loops forever with
    22  *  interrupts enabled.
    23  *
    24  *  Input parameters:
    25  *    ignored - this parameter is ignored
    26  *
    27  *  Output parameters:  NONE
    28  */
    29 
    3021void *_CPU_Thread_Idle_body( uintptr_t ignored )
    3122{
     
    3627  }
    3728#else
    38   for( ; ; )
    39     __asm__ volatile( "stop #0x3000":::"cc" );  /* supervisor mode, all interrupts on */
     29  for( ; ; ) {
     30    /* supervisor mode, all interrupts on */
     31    __asm__ volatile( "stop #0x3000":::"cc" );
     32  }
    4033#endif
    4134}
  • c/src/lib/libcpu/powerpc/new-exceptions/cpu.c

    r79f093b r78a38fa2  
    11/*
    22 *  PowerPC CPU Dependent Source
    3  *
    4  *  Author:     Andrew Bray <andy@i-cubed.co.uk>
     3 */
     4
     5/*
     6 *  Author:  Andrew Bray <andy@i-cubed.co.uk>
    57 *
    68 *  COPYRIGHT (c) 1995 by i-cubed ltd.
     
    4143 *
    4244 *  This routine performs processor dependent initialization.
    43  *
    44  *  INPUT PARAMETERS: NONE
    4545 */
    46 
    4746void _CPU_Initialize(void)
    4847{
    49   /* Do nothing */
    5048#ifdef __ALTIVEC__
    5149  _CPU_Initialize_altivec();
     
    5351}
    5452
    55 /*PAGE
    56  *
     53/*
    5754 *  _CPU_Context_Initialize
    5855 */
    59 
    6056void _CPU_Context_Initialize(
    6157  Context_Control  *the_context,
  • c/src/lib/libcpu/sparc64/shared/score/cpu.c

    r79f093b r78a38fa2  
    11/*
    22 *  SPARC-v9 Dependent Source
    3  *
     3 */
     4
     5/*
    46 *  COPYRIGHT (c) 1989-2007.
    57 *  On-Line Applications Research Corporation (OAR).
     
    4648
    4749
    48 /*PAGE
    49  *
     50/*
    5051 *  _CPU_ISR_Get_level
    5152 *
     
    5556 *    returns the current interrupt level (PIL field of the PSR)
    5657 */
    57 
    5858uint32_t   _CPU_ISR_Get_level( void )
    5959{
     
    6565}
    6666
    67 /*PAGE
    68  *
     67/*
    6968 *  _CPU_ISR_install_raw_handler
    7069 *
     
    204203}
    205204
    206 /*PAGE
    207  *
     205/*
    208206 *  _CPU_ISR_install_vector
    209207 *
     
    218216 *  Output parameters:
    219217 *    *old_handler - former ISR for this vector number
    220  *
    221  */
    222 
     218 */
    223219void _CPU_ISR_install_vector(
    224220  uint64_t    vector,
  • doc/tools/bmenu/Makefile.am

    r79f093b r78a38fa2  
    66noinst_PROGRAMS = bmenu2
    77
    8 bmenu2_SOURCES = address.h chain.c address.inl chain.h bmenu2.c base.h \
     8bmenu2_SOURCES = address.h chain.c chain.h bmenu2.c base.h \
    99    chain.inl system.h
  • doc/tools/bmenu/address.h

    r79f093b r78a38fa2  
    1 /*  address.h
    2  *
     1/*
    32 *  This include file contains the information required to manipulate
    43 *  physical addresses.
    5  *
     4 */
     5
     6/*
    67 *  COPYRIGHT (c) 1988-2002.
    78 *  On-Line Applications Research Corporation (OAR).
     
    2324 *  converted to an access type before being used further.
    2425 */
    25 
    2626STATIC INLINE void *_Addresses_Add_offset (
    2727  void       *base,
    2828  size_t      offset
    29 );
    30 
    31 #include "address.inl"
     29)
     30{
     31  return (base + offset);
     32}
    3233
    3334#endif
  • doc/tools/bmenu/chain.inl

    r79f093b r78a38fa2  
    1 /*  inline/chain.inl
    2  *
     1/*
    32 *  This include file contains the bodies of the routines which are
    43 *  associated with doubly linked chains and inlined.
    5  *
     4 */
     5
     6/*
    67 *  COPYRIGHT (c) 1988-2002.
    78 *  On-Line Applications Research Corporation (OAR).
     
    1213#define __INLINE_CHAIN_inl
    1314
    14 /*PAGE
    15  *
     15/*
    1616 *  _Chain_Is_null
    1717 */
    18 
    1918STATIC INLINE boolean _Chain_Is_null(
    2019  Chain_Control *the_chain
     
    2423}
    2524
    26 /*PAGE
    27  *
     25/*
    2826 *  _Chain_Is_null_node
    2927 */
    30 
    3128STATIC INLINE boolean _Chain_Is_null_node(
    3229  Chain_Node *the_node
     
    3633}
    3734
    38 /*PAGE
    39  *
     35/*
    4036 *  _Chain_Head
    4137 */
    42 
    4338STATIC INLINE Chain_Node *_Chain_Head(
    4439  Chain_Control *the_chain
     
    4843}
    4944
    50 /*PAGE
    51  *
     45/*
    5246 *  _Chain_Tail
    5347 */
    54 
    5548STATIC INLINE Chain_Node *_Chain_Tail(
    5649  Chain_Control *the_chain
     
    6053}
    6154
    62 /*PAGE
    63  *
     55/*
    6456 *  _Chain_Is_empty
    6557 */
    66 
    6758STATIC INLINE boolean _Chain_Is_empty(
    6859  Chain_Control *the_chain
     
    7263}
    7364
    74 /*PAGE
    75  *
     65/*
    7666 *  _Chain_Is_first
    7767 */
    78 
    7968STATIC INLINE boolean _Chain_Is_first(
    8069  Chain_Node *the_node
     
    8473}
    8574
    86 /*PAGE
    87  *
     75/*
    8876 *  _Chain_Is_last
    8977 */
    90 
    9178STATIC INLINE boolean _Chain_Is_last(
    9279  Chain_Node *the_node
     
    9683}
    9784
    98 /*PAGE
    99  *
     85/*
    10086 *  _Chain_Has_only_one_node
    10187 */
    102 
    10388STATIC INLINE boolean _Chain_Has_only_one_node(
    10489  Chain_Control *the_chain
     
    10893}
    10994
    110 /*PAGE
    111  *
     95/*
    11296 *  _Chain_Is_head
    11397 */
    114 
    11598STATIC INLINE boolean _Chain_Is_head(
    11699  Chain_Control *the_chain,
     
    121104}
    122105
    123 /*PAGE
    124  *
     106/*
    125107 *  _Chain_Is_tail
    126108 */
    127 
    128109STATIC INLINE boolean _Chain_Is_tail(
    129110  Chain_Control *the_chain,
     
    134115}
    135116
    136 /*PAGE
    137  *
     117/*
    138118 *  Chain_Initialize_empty
    139119 */
    140 
    141120STATIC INLINE void _Chain_Initialize_empty(
    142121  Chain_Control *the_chain
     
    148127}
    149128
    150 /*PAGE
    151  *
     129/*
    152130 *  _Chain_Extract_unprotected
    153131 */
    154 
    155132STATIC INLINE void _Chain_Extract_unprotected(
    156133  Chain_Node *the_node
     
    166143}
    167144
    168 /*PAGE
    169  *
     145/*
    170146 *  _Chain_Get_first_unprotected
    171147 */
    172 
    173148STATIC INLINE Chain_Node *_Chain_Get_first_unprotected(
    174149  Chain_Control *the_chain
     
    186161}
    187162
    188 /*PAGE
    189  *
     163/*
    190164 *  Chain_Get_unprotected
    191165 */
    192 
    193166STATIC INLINE Chain_Node *_Chain_Get_unprotected(
    194167  Chain_Control *the_chain
     
    201174}
    202175
    203 /*PAGE
    204  *
     176/*
    205177 *  _Chain_Insert_unprotected
    206178 */
    207 
    208179STATIC INLINE void _Chain_Insert_unprotected(
    209180  Chain_Node *after_node,
     
    220191}
    221192
    222 /*PAGE
    223  *
     193/*
    224194 *  _Chain_Append_unprotected
    225195 */
    226 
    227196STATIC INLINE void _Chain_Append_unprotected(
    228197  Chain_Control *the_chain,
     
    239208}
    240209
    241 /*PAGE
    242  *
     210/*
    243211 *  _Chain_Prepend_unprotected
    244212 */
    245 
    246213STATIC INLINE void _Chain_Prepend_unprotected(
    247214  Chain_Control *the_chain,
     
    253220}
    254221
    255 /*PAGE
    256  *
     222/*
    257223 *  _Chain_Prepend
    258224 */
    259 
    260225STATIC INLINE void _Chain_Prepend(
    261226  Chain_Control *the_chain,
  • testsuites/mptests/mp03/task1.c

    r79f093b r78a38fa2  
    1 /*  Test_task
    2  *
    3  *  This task suspends and resumes a remote task.
    4  *
    5  *  Input parameters:
    6  *    argument - task argument
    7  *
    8  *  Output parameters:  NONE
    9  *
     1/*
    102 *  COPYRIGHT (c) 1989-2009.
    113 *  On-Line Applications Research Corporation (OAR).
     
    2113
    2214#include "system.h"
    23 
    24 /*PAGE
    25  *
    26  *  Test_Task_Support
    27  *
    28  */
    2915
    3016void Test_Task_Support(
  • testsuites/mptests/mp06/task1.c

    r79f093b r78a38fa2  
    1 /*  Test_task
    2  *
    3  *  This task tests global event operations.  If running on node one, it
    4  *  continuously sends events.   If running on node two, it continuously
    5  *  receives events.
    6  *
    7  *  Input parameters:
    8  *    argument - task argument
    9  *
    10  *  Output parameters:  NONE
    11  *
     1/*
    122 *  COPYRIGHT (c) 1989-2009.
    133 *  On-Line Applications Research Corporation (OAR).
     
    2616#define DOT_COUNT 25
    2717
    28 /*PAGE
    29  *
     18/*
    3019 *  Stop_Test_TSR
    3120 */
    32 
    3321rtems_timer_service_routine Stop_Test_TSR(
    3422  rtems_id  ignored_id,
     
    3927}
    4028
    41 /*PAGE
    42  *
     29/*
    4330 *  Event_set_table
    4431 */
    45 
    4632rtems_event_set Event_set_table[] = {
    4733  RTEMS_EVENT_0,
     
    7965};
    8066
    81 /*PAGE
    82  *
     67/*
    8368 *  Test_task
    8469 */
    85 
    8670rtems_task Test_task(
    8771  rtems_task_argument argument
Note: See TracChangeset for help on using the changeset viewer.