Changeset 66402ef2 in rtems
- Timestamp:
- 10/12/14 00:09:52 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- ee2c3b6
- Parents:
- d08e1320
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 00:09:52)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:17)
- Location:
- c/src/lib/libbsp/m68k/mvme136
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c
rd08e1320 r66402ef2 1 /* Clock_init() 2 * 1 /* 3 2 * This routine initializes the Z80386 1 on the MVME136 board. 4 3 * The tick frequency is 1 millisecond. 5 * 6 * Input parameters: NONE 7 * 8 * Output parameters: NONE 9 * 4 */ 5 6 /* 10 7 * COPYRIGHT (c) 1989-1999. 11 8 * On-Line Applications Research Corporation (OAR). … … 45 42 46 43 /* 47 * These are set by clock driver during its init48 */49 50 rtems_device_major_number rtems_clock_major = ~0;51 rtems_device_minor_number rtems_clock_minor;52 53 /*54 44 * ISR Handler 55 45 */ 56 57 rtems_isr Clock_isr( 46 static rtems_isr Clock_isr( 58 47 rtems_vector_number vector 59 48 ) … … 70 59 } 71 60 72 void Install_clock(61 static void Install_clock( 73 62 rtems_isr_entry clock_isr 74 63 ) … … 122 111 Install_clock( Clock_isr ); 123 112 124 /*125 * make major/minor avail to others such as shared memory driver126 */127 128 rtems_clock_major = major;129 rtems_clock_minor = minor;130 131 113 return RTEMS_SUCCESSFUL; 132 114 } -
c/src/lib/libbsp/m68k/mvme136/console/console.c
rd08e1320 r66402ef2 1 1 /* 2 2 * This file contains the MVME136 console IO package. 3 * 4 * COPYRIGHT (c) 1989-1999. 3 */ 4 5 /* 6 * COPYRIGHT (c) 1989-2014. 5 7 * On-Line Applications Research Corporation (OAR). 6 8 * … … 16 18 volatile struct w_m681_info *_Write_m681; /* M68681 write registers */ 17 19 18 19 20 20 /* console_initialize 21 21 * 22 22 * This routine initializes the console IO driver. 23 *24 * Input parameters: NONE25 *26 * Output parameters: NONE27 *28 * Return values:29 23 */ 30 31 24 rtems_device_driver console_initialize( 32 25 rtems_device_major_number major, … … 52 45 } 53 46 54 /* is_character_ready55 *56 * This routine returns TRUE if a character is available.57 *58 * Input parameters: NONE59 *60 * Output parameters: NONE61 *62 * Return values:63 */64 65 bool is_character_ready(66 char *ch67 )68 {69 if ( !(_Read_m681->srb & RXRDYB) )70 return false;71 72 *ch = _Read_m681->rbb;73 return true;74 }75 76 47 /* inbyte 77 48 * 78 49 * This routine reads a character from the UART. 79 *80 * Input parameters: NONE81 *82 * Output parameters: NONE83 *84 * Return values:85 * character read from UART86 50 */ 87 88 char inbyte( void ) 51 static char inbyte( void ) 89 52 { 90 53 while ( !(_Read_m681->srb & RXRDYB) ); … … 96 59 * This routine transmits a character out the M68681. It supports 97 60 * XON/XOFF flow control. 98 *99 * Input parameters:100 * ch - character to be transmitted101 *102 * Output parameters: NONE103 61 */ 104 105 void outbyte( 62 static void outbyte( 106 63 char ch 107 64 ) … … 122 79 * Open entry point 123 80 */ 124 125 81 rtems_device_driver console_open( 126 82 rtems_device_major_number major, … … 135 91 * Close entry point 136 92 */ 137 138 93 rtems_device_driver console_close( 139 94 rtems_device_major_number major, … … 148 103 * read bytes from the serial port. We only have stdin. 149 104 */ 150 151 105 rtems_device_driver console_read( 152 106 rtems_device_major_number major, … … 180 134 * write bytes to the serial port. Stdout and stderr are the same. 181 135 */ 182 183 136 rtems_device_driver console_write( 184 137 rtems_device_major_number major, … … 211 164 * IO Control entry point 212 165 */ 213 214 166 rtems_device_driver console_control( 215 167 rtems_device_major_number major, -
c/src/lib/libbsp/m68k/mvme136/include/bsp.h
rd08e1320 r66402ef2 1 /* bsp.h 2 * 1 /* 3 2 * This include file contains all MVME136 board IO definitions. 4 * 5 * COPYRIGHT (c) 1989-1999. 3 */ 4 5 /* 6 * COPYRIGHT (c) 1989-2014. 6 7 * On-Line Applications Research Corporation (OAR). 7 8 * … … 69 70 70 71 rtems_isr_entry set_vector( 71 rtems_isr_entry handle r,72 rtems_isr_entry handle, 72 73 rtems_vector_number vector, 73 74 int type -
c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c
rd08e1320 r66402ef2 14 14 #include <rtems/zilog/z8036.h> 15 15 16 extern void start( void);16 void start(void); 17 17 18 void bsp_return_to_monitor_trap(void)18 static rtems_isr bsp_return_to_monitor_trap(rtems_vector_number ignored) 19 19 { 20 20 register volatile void *start_addr; 21 21 22 m68k_set_vbr( 0 ); /* restore 135Bug vectors */23 __asm__ volatile( "trap #15" ); 24 __asm__ volatile( ".short 0x63" ); 25 /* restart program */22 m68k_set_vbr( 0 ); /* restore 135Bug vectors */ 23 __asm__ volatile( "trap #15" ); /* trap to 135Bug */ 24 __asm__ volatile( ".short 0x63" ); /* return to 135Bug (.RETURN) */ 25 /* restart program */ 26 26 start_addr = start; 27 27 -
c/src/lib/libbsp/m68k/mvme136/timer/timer.c
rd08e1320 r66402ef2 17 17 bool benchmark_timer_find_average_overhead; 18 18 19 rtems_isr timerisr( void);19 rtems_isr timerisr(rtems_vector_number); 20 20 21 21 void benchmark_timer_initialize(void)
Note: See TracChangeset
for help on using the changeset viewer.