Changeset 78a38fa2 in rtems
- Timestamp:
- 10/08/14 22:38:12 (9 years ago)
- 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)
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mrm332/console/console.c
r79f093b r78a38fa2 1 1 /* 2 * This file contains the generic console driver shell used3 * by all console drivers using libchip.4 *5 * This driver uses the termios pseudo driver.6 *7 2 * COPYRIGHT (c) 1989-1997. 8 3 * On-Line Applications Research Corporation (OAR). … … 18 13 #include "sci.h" 19 14 20 /*PAGE 21 * 15 /* 22 16 * console_open 23 17 * 24 18 * open a port as a termios console. 25 19 */ 26 27 20 rtems_device_driver console_open( 28 21 rtems_device_major_number major, … … 48 41 } 49 42 50 /*PAGE 51 * 43 /* 52 44 * console_close 53 45 * 54 46 * This routine closes a port that has been opened as console. 55 47 */ 56 57 48 rtems_device_driver console_close( 58 49 rtems_device_major_number major, … … 64 55 } 65 56 66 /*PAGE 67 * 57 /* 68 58 * console_read 69 59 * 70 60 * This routine uses the termios driver to read a character. 71 61 */ 72 73 62 rtems_device_driver console_read( 74 63 rtems_device_major_number major, … … 80 69 } 81 70 82 /*PAGE 83 * 71 /* 84 72 * console_write 85 73 * 86 74 * this routine uses the termios driver to write a character. 87 75 */ 88 89 76 rtems_device_driver console_write( 90 77 rtems_device_major_number major, … … 96 83 } 97 84 98 /*PAGE 99 * 85 /* 100 86 * console_control 101 87 * … … 112 98 } 113 99 114 /*PAGE 115 * 100 /* 116 101 * console_initialize 117 102 * 118 103 * Routine called to initialize the console device driver. 119 104 */ 120 121 105 rtems_device_driver console_initialize( 122 106 rtems_device_major_number major, -
c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c
r79f093b r78a38fa2 1 1 /* 2 *3 2 * COPYRIGHT (c) 1989-2009. 4 3 * On-Line Applications Research Corporation (OAR). … … 18 17 #include "PCI.h" 19 18 20 /*PAGE 21 * 19 /* 22 20 * SCORE603e_FLASH_Disable 23 21 */ 24 25 22 unsigned int SCORE603e_FLASH_Disable( 26 uint32_t area /* IN */23 uint32_t area 27 24 ) 28 25 { … … 84 81 } 85 82 86 /*PAGE 87 * 83 /* 88 84 * SCORE603e_FLASH_Enable_writes 89 85 */ 90 86 unsigned int SCORE603e_FLASH_Enable_writes( 91 uint32_t area /* IN */87 uint32_t area 92 88 ) 93 89 { -
c/src/lib/libbsp/powerpc/score603e/console/85c30.c
r79f093b r78a38fa2 4 4 * 5 5 * Currently only polled mode is supported. 6 * 6 */ 7 8 /* 7 9 * COPYRIGHT (c) 1989-2009. 8 10 * On-Line Applications Research Corporation (OAR). … … 360 362 #if CONSOLE_USE_INTERRUPTS 361 363 362 /*PAGE 363 * 364 /* 364 365 * Z8530_Async_Channel_ISR 365 *366 366 */ 367 367 /* RR0 */ -
c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
r79f093b r78a38fa2 72 72 } 73 73 74 /*PAGE 75 * 74 /* 76 75 * bsp_predriver_hook 77 76 * 78 77 * Before drivers are setup initialize interupt vectors. 79 78 */ 80 81 79 void init_RTC(void); 82 80 void initialize_PMC(void); -
c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
r79f093b r78a38fa2 1 1 /* 2 2 * VMEbus support routines for the Generation I board. 3 * 3 */ 4 5 /* 4 6 * COPYRIGHT (c) 1989-2008. 5 7 * On-Line Applications Research Corporation (OAR). … … 14 16 #include <rtems/vmeintr.h> 15 17 16 /*PAGE 17 * 18 /* 18 19 * VME_interrupt_Disable 19 *20 20 */ 21 22 void VME_interrupt_Disable ( 21 void VME_interrupt_Disable( 23 22 VME_interrupt_Mask mask /* IN */ 24 23 ) … … 33 32 } 34 33 35 /*PAGE 36 * 34 /* 37 35 * VME_interrupt_Enable 38 *39 36 */ 40 41 void VME_interrupt_Enable ( 37 void VME_interrupt_Enable( 42 38 VME_interrupt_Mask mask /* IN */ 43 39 ) -
c/src/lib/libbsp/shared/tod.c
r79f093b r78a38fa2 1 1 /* 2 2 * Real Time Clock Driver Wrapper for Libchip 3 * 3 */ 4 5 /* 4 6 * The license and distribution terms for this file may be 5 7 * found in the file LICENSE in this distribution or at … … 17 19 * Configuration Information 18 20 */ 19 20 21 extern size_t RTC_Count; 21 22 extern rtems_device_minor_number RTC_Minor; … … 30 31 * Initialize the RTC driver 31 32 */ 32 33 33 rtems_device_driver rtc_initialize( 34 34 rtems_device_major_number major, … … 67 67 * Register and initialize the primary RTC's 68 68 */ 69 70 69 status = rtems_io_register_name( RTC_DEVICE_NAME, major, RTC_Minor ); 71 70 if (status != RTEMS_SUCCESSFUL) { … … 78 77 * Now initialize any secondary RTC's 79 78 */ 80 81 79 for ( minor++ ; minor<RTC_Count ; minor++) { 82 80 /* … … 97 95 * Initialize the hardware device. 98 96 */ 99 100 97 RTC_Table[minor].pDeviceFns->deviceInitialize(minor); 101 98 … … 202 199 } 203 200 204 /*PAGE 205 * 201 /* 206 202 * 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 */ 215 204 void setRealTimeToRTEMS() 216 205 { … … 224 213 } 225 214 226 /*PAGE 227 * 215 /* 228 216 * setRealTimeFromRTEMS 229 217 * 230 218 * 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 */ 239 220 void setRealTimeFromRTEMS(void) 240 221 { … … 248 229 } 249 230 250 /*PAGE 251 * 231 /* 252 232 * getRealTime 253 233 * 254 234 * 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 */ 263 236 void getRealTime( 264 237 rtems_time_of_day *tod … … 271 244 } 272 245 273 /*PAGE 274 * 246 /* 275 247 * setRealTime 276 248 * 277 249 * This routine sets the RTC. 278 *279 * Input parameters: NONE280 *281 * Output parameters: NONE282 *283 * Return values: NONE284 250 */ 285 251 int setRealTime( … … 297 263 } 298 264 299 /*PAGE 300 * 265 /* 301 266 * checkRealTime 302 267 * 303 268 * 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. 312 270 */ 313 271 int checkRealTime(void) -
c/src/lib/libcpu/m68k/shared/misc/m68kidle.c
r79f093b r78a38fa2 2 2 * Motorola MC68xxx Dependent Idle Body Source 3 3 * 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 /* 4 10 * COPYRIGHT (c) 1989-2002. 5 11 * On-Line Applications Research Corporation (OAR). … … 13 19 #include <rtems/score/thread.h> 14 20 15 16 /*PAGE17 *18 * _CPU_Thread_Idle_body19 *20 * This kernel routine is the idle thread. The idle thread runs any time21 * no other thread is ready to run. This thread loops forever with22 * interrupts enabled.23 *24 * Input parameters:25 * ignored - this parameter is ignored26 *27 * Output parameters: NONE28 */29 30 21 void *_CPU_Thread_Idle_body( uintptr_t ignored ) 31 22 { … … 36 27 } 37 28 #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 } 40 33 #endif 41 34 } -
c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
r79f093b r78a38fa2 1 1 /* 2 2 * 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> 5 7 * 6 8 * COPYRIGHT (c) 1995 by i-cubed ltd. … … 41 43 * 42 44 * This routine performs processor dependent initialization. 43 *44 * INPUT PARAMETERS: NONE45 45 */ 46 47 46 void _CPU_Initialize(void) 48 47 { 49 /* Do nothing */50 48 #ifdef __ALTIVEC__ 51 49 _CPU_Initialize_altivec(); … … 53 51 } 54 52 55 /*PAGE 56 * 53 /* 57 54 * _CPU_Context_Initialize 58 55 */ 59 60 56 void _CPU_Context_Initialize( 61 57 Context_Control *the_context, -
c/src/lib/libcpu/sparc64/shared/score/cpu.c
r79f093b r78a38fa2 1 1 /* 2 2 * SPARC-v9 Dependent Source 3 * 3 */ 4 5 /* 4 6 * COPYRIGHT (c) 1989-2007. 5 7 * On-Line Applications Research Corporation (OAR). … … 46 48 47 49 48 /*PAGE 49 * 50 /* 50 51 * _CPU_ISR_Get_level 51 52 * … … 55 56 * returns the current interrupt level (PIL field of the PSR) 56 57 */ 57 58 58 uint32_t _CPU_ISR_Get_level( void ) 59 59 { … … 65 65 } 66 66 67 /*PAGE 68 * 67 /* 69 68 * _CPU_ISR_install_raw_handler 70 69 * … … 204 203 } 205 204 206 /*PAGE 207 * 205 /* 208 206 * _CPU_ISR_install_vector 209 207 * … … 218 216 * Output parameters: 219 217 * *old_handler - former ISR for this vector number 220 * 221 */ 222 218 */ 223 219 void _CPU_ISR_install_vector( 224 220 uint64_t vector, -
doc/tools/bmenu/Makefile.am
r79f093b r78a38fa2 6 6 noinst_PROGRAMS = bmenu2 7 7 8 bmenu2_SOURCES = address.h chain.c address.inlchain.h bmenu2.c base.h \8 bmenu2_SOURCES = address.h chain.c chain.h bmenu2.c base.h \ 9 9 chain.inl system.h -
doc/tools/bmenu/address.h
r79f093b r78a38fa2 1 /* address.h 2 * 1 /* 3 2 * This include file contains the information required to manipulate 4 3 * physical addresses. 5 * 4 */ 5 6 /* 6 7 * COPYRIGHT (c) 1988-2002. 7 8 * On-Line Applications Research Corporation (OAR). … … 23 24 * converted to an access type before being used further. 24 25 */ 25 26 26 STATIC INLINE void *_Addresses_Add_offset ( 27 27 void *base, 28 28 size_t offset 29 ); 30 31 #include "address.inl" 29 ) 30 { 31 return (base + offset); 32 } 32 33 33 34 #endif -
doc/tools/bmenu/chain.inl
r79f093b r78a38fa2 1 /* inline/chain.inl 2 * 1 /* 3 2 * This include file contains the bodies of the routines which are 4 3 * associated with doubly linked chains and inlined. 5 * 4 */ 5 6 /* 6 7 * COPYRIGHT (c) 1988-2002. 7 8 * On-Line Applications Research Corporation (OAR). … … 12 13 #define __INLINE_CHAIN_inl 13 14 14 /*PAGE 15 * 15 /* 16 16 * _Chain_Is_null 17 17 */ 18 19 18 STATIC INLINE boolean _Chain_Is_null( 20 19 Chain_Control *the_chain … … 24 23 } 25 24 26 /*PAGE 27 * 25 /* 28 26 * _Chain_Is_null_node 29 27 */ 30 31 28 STATIC INLINE boolean _Chain_Is_null_node( 32 29 Chain_Node *the_node … … 36 33 } 37 34 38 /*PAGE 39 * 35 /* 40 36 * _Chain_Head 41 37 */ 42 43 38 STATIC INLINE Chain_Node *_Chain_Head( 44 39 Chain_Control *the_chain … … 48 43 } 49 44 50 /*PAGE 51 * 45 /* 52 46 * _Chain_Tail 53 47 */ 54 55 48 STATIC INLINE Chain_Node *_Chain_Tail( 56 49 Chain_Control *the_chain … … 60 53 } 61 54 62 /*PAGE 63 * 55 /* 64 56 * _Chain_Is_empty 65 57 */ 66 67 58 STATIC INLINE boolean _Chain_Is_empty( 68 59 Chain_Control *the_chain … … 72 63 } 73 64 74 /*PAGE 75 * 65 /* 76 66 * _Chain_Is_first 77 67 */ 78 79 68 STATIC INLINE boolean _Chain_Is_first( 80 69 Chain_Node *the_node … … 84 73 } 85 74 86 /*PAGE 87 * 75 /* 88 76 * _Chain_Is_last 89 77 */ 90 91 78 STATIC INLINE boolean _Chain_Is_last( 92 79 Chain_Node *the_node … … 96 83 } 97 84 98 /*PAGE 99 * 85 /* 100 86 * _Chain_Has_only_one_node 101 87 */ 102 103 88 STATIC INLINE boolean _Chain_Has_only_one_node( 104 89 Chain_Control *the_chain … … 108 93 } 109 94 110 /*PAGE 111 * 95 /* 112 96 * _Chain_Is_head 113 97 */ 114 115 98 STATIC INLINE boolean _Chain_Is_head( 116 99 Chain_Control *the_chain, … … 121 104 } 122 105 123 /*PAGE 124 * 106 /* 125 107 * _Chain_Is_tail 126 108 */ 127 128 109 STATIC INLINE boolean _Chain_Is_tail( 129 110 Chain_Control *the_chain, … … 134 115 } 135 116 136 /*PAGE 137 * 117 /* 138 118 * Chain_Initialize_empty 139 119 */ 140 141 120 STATIC INLINE void _Chain_Initialize_empty( 142 121 Chain_Control *the_chain … … 148 127 } 149 128 150 /*PAGE 151 * 129 /* 152 130 * _Chain_Extract_unprotected 153 131 */ 154 155 132 STATIC INLINE void _Chain_Extract_unprotected( 156 133 Chain_Node *the_node … … 166 143 } 167 144 168 /*PAGE 169 * 145 /* 170 146 * _Chain_Get_first_unprotected 171 147 */ 172 173 148 STATIC INLINE Chain_Node *_Chain_Get_first_unprotected( 174 149 Chain_Control *the_chain … … 186 161 } 187 162 188 /*PAGE 189 * 163 /* 190 164 * Chain_Get_unprotected 191 165 */ 192 193 166 STATIC INLINE Chain_Node *_Chain_Get_unprotected( 194 167 Chain_Control *the_chain … … 201 174 } 202 175 203 /*PAGE 204 * 176 /* 205 177 * _Chain_Insert_unprotected 206 178 */ 207 208 179 STATIC INLINE void _Chain_Insert_unprotected( 209 180 Chain_Node *after_node, … … 220 191 } 221 192 222 /*PAGE 223 * 193 /* 224 194 * _Chain_Append_unprotected 225 195 */ 226 227 196 STATIC INLINE void _Chain_Append_unprotected( 228 197 Chain_Control *the_chain, … … 239 208 } 240 209 241 /*PAGE 242 * 210 /* 243 211 * _Chain_Prepend_unprotected 244 212 */ 245 246 213 STATIC INLINE void _Chain_Prepend_unprotected( 247 214 Chain_Control *the_chain, … … 253 220 } 254 221 255 /*PAGE 256 * 222 /* 257 223 * _Chain_Prepend 258 224 */ 259 260 225 STATIC INLINE void _Chain_Prepend( 261 226 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 /* 10 2 * COPYRIGHT (c) 1989-2009. 11 3 * On-Line Applications Research Corporation (OAR). … … 21 13 22 14 #include "system.h" 23 24 /*PAGE25 *26 * Test_Task_Support27 *28 */29 15 30 16 void 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 /* 12 2 * COPYRIGHT (c) 1989-2009. 13 3 * On-Line Applications Research Corporation (OAR). … … 26 16 #define DOT_COUNT 25 27 17 28 /*PAGE 29 * 18 /* 30 19 * Stop_Test_TSR 31 20 */ 32 33 21 rtems_timer_service_routine Stop_Test_TSR( 34 22 rtems_id ignored_id, … … 39 27 } 40 28 41 /*PAGE 42 * 29 /* 43 30 * Event_set_table 44 31 */ 45 46 32 rtems_event_set Event_set_table[] = { 47 33 RTEMS_EVENT_0, … … 79 65 }; 80 66 81 /*PAGE 82 * 67 /* 83 68 * Test_task 84 69 */ 85 86 70 rtems_task Test_task( 87 71 rtems_task_argument argument
Note: See TracChangeset
for help on using the changeset viewer.