Changeset a4a5624 in rtems


Ignore:
Timestamp:
Jan 4, 2005, 11:28:30 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a4d3eb0d
Parents:
78962326
Message:

2005-01-04 Joel Sherrill <joel@…>

  • console/keyboard.c, console/ps2_mouse.c, console/vt.c: Remove warnings.
Location:
c/src/lib/libbsp/i386/pc386
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    r78962326 ra4a5624  
     12005-01-04      Joel Sherrill <joel@OARcorp.com>
     2
     3        * console/keyboard.c, console/ps2_mouse.c, console/vt.c: Remove
     4        warnings.
     5
    162005-01-02      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/i386/pc386/console/keyboard.c

    r78962326 ra4a5624  
    11/*
    2  * linux/drivers/char/keyboard.c
     2 *   $Id$
    33 *
    4  * Written for linux by Johan Myreen as a translation from
    5  * the assembly version by Linus (with diacriticals added)
    6  *
    7  * Some additional features added by Christoph Niemann (ChN), March 1993
    8  *
    9  * Loadable keymaps by Risto Kankkunen, May 1993
    10  *
    11  * Diacriticals redone & other small changes, aeb@cwi.nl, June 1993
    12  * Added decr/incr_console, dynamic keymaps, Unicode support,
    13  * dynamic function/string keys, led setting,  Sept 1994
    14  * `Sticky' modifier keys, 951006.
    15  *
    16  * 11-11-96: SAK should now work in the raw mode (Martin Mares)
    17  *
    18  * Modified to provide 'generic' keyboard support by Hamish Macdonald
    19  * Merge with the m68k keyboard driver and split-off of the PC low-level
    20  * parts by Geert Uytterhoeven, May 1997
    21  *
    22  * 27-05-97: Added support for the Magic SysRq Key (Martin Mares)
    23  * 30-07-98: Dead keys redone, aeb@cwi.nl.
    24  * -------------------------------------------------------------------
    25  * End of Linux - Copyright notes...
    26  *
    27  * Ported to RTEMS to provide the basic fuctionality to the console driver.
    28  * by: Rosimildo da Silva:  rdasilva@connecttel.com
    29  *
     4 *   Rosimildo da Silva:  rdasilva@connecttel.com
    305 */
    316
  • c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c

    r78962326 ra4a5624  
    3434
    3535static void kbd_write_command_w(int data);
     36#if 0
    3637static void kbd_write_output_w(int data);
     38#endif
    3739
    3840static unsigned char handle_kbd_event(void);
     
    237239 * Don't use 'jiffies', so that we don't depend on interrupts
    238240 */
     241#if 0
    239242static int send_data(unsigned char data)
    240243{
     
    267270        return 0;
    268271}
    269 
     272#endif
     273
     274#if 0
    270275#define KBD_NO_DATA     (-1)    /* No data */
    271276#define KBD_BAD_DATA    (-2)    /* Parity or other error */
     
    309314        return -1;
    310315}
     316#endif
    311317
    312318static void kbd_write_command_w(int data)
     
    316322}
    317323
     324#if 0
    318325static void kbd_write_output_w(int data)
    319326{
     
    321328        kbd_write_output(data);
    322329}
     330#endif
    323331
    324332static void kbd_write_cmd(int cmd)
     
    497505}
    498506
     507#if 0
    499508static unsigned int aux_poll()
    500509{
     
    503512        return 0;
    504513}
     514#endif
    505515
    506516static int psaux_init( void )
     
    589599
    590600/*
    591  * Some initialization if necessary
    592  */
    593 static rtems_device_driver
    594 paux_first_open( rtems_device_minor_number major,
    595                  rtems_device_minor_number minor,
    596                  void                      *arg)
    597 {
    598    return RTEMS_SUCCESSFUL;
    599 }
    600 
    601 /*
    602601 * paux device driver OPEN entry point
    603602 */
     
    610609  static rtems_termios_callbacks cb =
    611610  {
    612     NULL,                     /* firstOpen */
     611    NULL,                 /* firstOpen */
    613612    paux_last_close,      /* lastClose */
    614613    NULL,                 /* poll read  */
    615614    write_aux_echo,       /* write */
    616     NULL,                     /* setAttributes */
    617     NULL,                     /* stopRemoteTx */
    618     NULL,                     /* startRemoteTx */
    619     0                            /* outputUsesInterrupts */
     615    NULL,                 /* setAttributes */
     616    NULL,                 /* stopRemoteTx */
     617    NULL,                 /* startRemoteTx */
     618    0                     /* outputUsesInterrupts */
    620619  };
    621620
     
    630629rtems_device_driver
    631630paux_close(rtems_device_major_number major,
    632               rtems_device_minor_number minor,
    633               void                      *arg)
     631           rtems_device_minor_number minor,
     632           void                      *arg)
    634633{
    635634  return (rtems_termios_close (arg));
     
    642641rtems_device_driver
    643642paux_read(rtems_device_major_number major,
    644              rtems_device_minor_number minor,
    645              void                      *arg)
     643          rtems_device_minor_number minor,
     644         void                      *arg)
    646645{
    647646  return rtems_termios_read (arg);
     
    654653rtems_device_driver
    655654paux_write(rtems_device_major_number major,
    656               rtems_device_minor_number minor,
    657               void                    * arg)
     655          rtems_device_minor_number minor,
     656          void                    * arg)
    658657{
    659658  rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *)arg;
     
    669668rtems_device_driver
    670669paux_control(rtems_device_major_number major,
    671                 rtems_device_minor_number minor,
    672                 void                      * arg
     670             rtems_device_minor_number minor,
     671             void                      * arg
    673672)
    674673{
  • c/src/lib/libbsp/i386/pc386/console/vt.c

    r78962326 ra4a5624  
    120120
    121121        tmp = *user_kbe;
    122         if (i >= NR_KEYS || s >= MAX_NR_KEYMAPS)
     122        if (i >= NR_KEYS)  /*  s cannot be >= MAX_NR_KEYMAPS */
    123123                return -EINVAL;
    124124
Note: See TracChangeset for help on using the changeset viewer.