Changeset 66402ef2 in rtems


Ignore:
Timestamp:
10/12/14 00:09:52 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
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)
Message:

m68k/mvme136: Fix warnings

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/*
    32 *  This routine initializes the Z80386 1 on the MVME136 board.
    43 *  The tick frequency is 1 millisecond.
    5  *
    6  *  Input parameters:  NONE
    7  *
    8  *  Output parameters:  NONE
    9  *
     4 */
     5
     6/*
    107 *  COPYRIGHT (c) 1989-1999.
    118 *  On-Line Applications Research Corporation (OAR).
     
    4542
    4643/*
    47  * These are set by clock driver during its init
    48  */
    49 
    50 rtems_device_major_number rtems_clock_major = ~0;
    51 rtems_device_minor_number rtems_clock_minor;
    52 
    53 /*
    5444 *  ISR Handler
    5545 */
    56 
    57 rtems_isr Clock_isr(
     46static rtems_isr Clock_isr(
    5847  rtems_vector_number vector
    5948)
     
    7059}
    7160
    72 void Install_clock(
     61static void Install_clock(
    7362  rtems_isr_entry clock_isr
    7463)
     
    122111  Install_clock( Clock_isr );
    123112
    124   /*
    125    * make major/minor avail to others such as shared memory driver
    126    */
    127 
    128   rtems_clock_major = major;
    129   rtems_clock_minor = minor;
    130 
    131113  return RTEMS_SUCCESSFUL;
    132114}
  • c/src/lib/libbsp/m68k/mvme136/console/console.c

    rd08e1320 r66402ef2  
    11/*
    22 *  This file contains the MVME136 console IO package.
    3  *
    4  *  COPYRIGHT (c) 1989-1999.
     3 */
     4
     5/*
     6 *  COPYRIGHT (c) 1989-2014.
    57 *  On-Line Applications Research Corporation (OAR).
    68 *
     
    1618volatile struct w_m681_info *_Write_m681; /* M68681 write registers */
    1719
    18 
    19 
    2020/*  console_initialize
    2121 *
    2222 *  This routine initializes the console IO driver.
    23  *
    24  *  Input parameters: NONE
    25  *
    26  *  Output parameters:  NONE
    27  *
    28  *  Return values:
    2923 */
    30 
    3124rtems_device_driver console_initialize(
    3225  rtems_device_major_number  major,
     
    5245}
    5346
    54 /*  is_character_ready
    55  *
    56  *  This routine returns TRUE if a character is available.
    57  *
    58  *  Input parameters: NONE
    59  *
    60  *  Output parameters:  NONE
    61  *
    62  *  Return values:
    63  */
    64 
    65 bool is_character_ready(
    66   char *ch
    67 )
    68 {
    69   if ( !(_Read_m681->srb & RXRDYB) )
    70     return false;
    71 
    72   *ch = _Read_m681->rbb;
    73   return true;
    74 }
    75 
    7647/*  inbyte
    7748 *
    7849 *  This routine reads a character from the UART.
    79  *
    80  *  Input parameters: NONE
    81  *
    82  *  Output parameters:  NONE
    83  *
    84  *  Return values:
    85  *    character read from UART
    8650 */
    87 
    88 char inbyte( void )
     51static char inbyte( void )
    8952{
    9053  while ( !(_Read_m681->srb & RXRDYB) );
     
    9659 *  This routine transmits a character out the M68681.  It supports
    9760 *  XON/XOFF flow control.
    98  *
    99  *  Input parameters:
    100  *    ch  - character to be transmitted
    101  *
    102  *  Output parameters:  NONE
    10361 */
    104 
    105 void outbyte(
     62static void outbyte(
    10663  char ch
    10764)
     
    12279 *  Open entry point
    12380 */
    124 
    12581rtems_device_driver console_open(
    12682  rtems_device_major_number major,
     
    13591 *  Close entry point
    13692 */
    137 
    13893rtems_device_driver console_close(
    13994  rtems_device_major_number major,
     
    148103 * read bytes from the serial port. We only have stdin.
    149104 */
    150 
    151105rtems_device_driver console_read(
    152106  rtems_device_major_number major,
     
    180134 * write bytes to the serial port. Stdout and stderr are the same.
    181135 */
    182 
    183136rtems_device_driver console_write(
    184137  rtems_device_major_number major,
     
    211164 *  IO Control entry point
    212165 */
    213 
    214166rtems_device_driver console_control(
    215167  rtems_device_major_number major,
  • c/src/lib/libbsp/m68k/mvme136/include/bsp.h

    rd08e1320 r66402ef2  
    1 /*  bsp.h
    2  *
     1/*
    32 *  This include file contains all MVME136 board IO definitions.
    4  *
    5  *  COPYRIGHT (c) 1989-1999.
     3 */
     4
     5/*
     6 *  COPYRIGHT (c) 1989-2014.
    67 *  On-Line Applications Research Corporation (OAR).
    78 *
     
    6970
    7071rtems_isr_entry set_vector(
    71   rtems_isr_entry     handler,
     72  rtems_isr_entry     handle,
    7273  rtems_vector_number vector,
    7374  int                 type
  • c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c

    rd08e1320 r66402ef2  
    1414#include <rtems/zilog/z8036.h>
    1515
    16 extern void start( void  );
     16void start(void);
    1717
    18 void bsp_return_to_monitor_trap(void)
     18static rtems_isr bsp_return_to_monitor_trap(rtems_vector_number ignored)
    1919{
    2020  register volatile void *start_addr;
    2121
    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 */
     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 */
    2626  start_addr = start;
    2727
  • c/src/lib/libbsp/m68k/mvme136/timer/timer.c

    rd08e1320 r66402ef2  
    1717bool benchmark_timer_find_average_overhead;
    1818
    19 rtems_isr timerisr(void);
     19rtems_isr timerisr(rtems_vector_number);
    2020
    2121void benchmark_timer_initialize(void)
Note: See TracChangeset for help on using the changeset viewer.