mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-09 09:03:33 +00:00
2005-01-04 Joel Sherrill <joel@OARcorp.com>
* console/keyboard.c, console/ps2_mouse.c, console/vt.c: Remove warnings.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2005-01-04 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* console/keyboard.c, console/ps2_mouse.c, console/vt.c: Remove
|
||||||
|
warnings.
|
||||||
|
|
||||||
2005-01-02 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2005-01-02 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* Makefile.am: Remove build-variant support.
|
* Makefile.am: Remove build-variant support.
|
||||||
|
|||||||
@@ -1,32 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* linux/drivers/char/keyboard.c
|
* $Id$
|
||||||
*
|
|
||||||
* Written for linux by Johan Myreen as a translation from
|
|
||||||
* the assembly version by Linus (with diacriticals added)
|
|
||||||
*
|
|
||||||
* Some additional features added by Christoph Niemann (ChN), March 1993
|
|
||||||
*
|
|
||||||
* Loadable keymaps by Risto Kankkunen, May 1993
|
|
||||||
*
|
|
||||||
* Diacriticals redone & other small changes, aeb@cwi.nl, June 1993
|
|
||||||
* Added decr/incr_console, dynamic keymaps, Unicode support,
|
|
||||||
* dynamic function/string keys, led setting, Sept 1994
|
|
||||||
* `Sticky' modifier keys, 951006.
|
|
||||||
*
|
|
||||||
* 11-11-96: SAK should now work in the raw mode (Martin Mares)
|
|
||||||
*
|
|
||||||
* Modified to provide 'generic' keyboard support by Hamish Macdonald
|
|
||||||
* Merge with the m68k keyboard driver and split-off of the PC low-level
|
|
||||||
* parts by Geert Uytterhoeven, May 1997
|
|
||||||
*
|
|
||||||
* 27-05-97: Added support for the Magic SysRq Key (Martin Mares)
|
|
||||||
* 30-07-98: Dead keys redone, aeb@cwi.nl.
|
|
||||||
* -------------------------------------------------------------------
|
|
||||||
* End of Linux - Copyright notes...
|
|
||||||
*
|
|
||||||
* Ported to RTEMS to provide the basic fuctionality to the console driver.
|
|
||||||
* by: Rosimildo da Silva: rdasilva@connecttel.com
|
|
||||||
*
|
*
|
||||||
|
* Rosimildo da Silva: rdasilva@connecttel.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
#include "mouse_parser.h"
|
#include "mouse_parser.h"
|
||||||
|
|
||||||
static void kbd_write_command_w(int data);
|
static void kbd_write_command_w(int data);
|
||||||
|
#if 0
|
||||||
static void kbd_write_output_w(int data);
|
static void kbd_write_output_w(int data);
|
||||||
|
#endif
|
||||||
|
|
||||||
static unsigned char handle_kbd_event(void);
|
static unsigned char handle_kbd_event(void);
|
||||||
|
|
||||||
@@ -236,6 +238,7 @@ static void ps2_mouse_interrupt()
|
|||||||
*
|
*
|
||||||
* Don't use 'jiffies', so that we don't depend on interrupts
|
* Don't use 'jiffies', so that we don't depend on interrupts
|
||||||
*/
|
*/
|
||||||
|
#if 0
|
||||||
static int send_data(unsigned char data)
|
static int send_data(unsigned char data)
|
||||||
{
|
{
|
||||||
int retries = 3;
|
int retries = 3;
|
||||||
@@ -266,7 +269,9 @@ static int send_data(unsigned char data)
|
|||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
#define KBD_NO_DATA (-1) /* No data */
|
#define KBD_NO_DATA (-1) /* No data */
|
||||||
#define KBD_BAD_DATA (-2) /* Parity or other error */
|
#define KBD_BAD_DATA (-2) /* Parity or other error */
|
||||||
|
|
||||||
@@ -308,6 +313,7 @@ static int kbd_wait_for_input(void)
|
|||||||
} while (--timeout);
|
} while (--timeout);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void kbd_write_command_w(int data)
|
static void kbd_write_command_w(int data)
|
||||||
{
|
{
|
||||||
@@ -315,11 +321,13 @@ static void kbd_write_command_w(int data)
|
|||||||
kbd_write_command(data);
|
kbd_write_command(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void kbd_write_output_w(int data)
|
static void kbd_write_output_w(int data)
|
||||||
{
|
{
|
||||||
kb_wait();
|
kb_wait();
|
||||||
kbd_write_output(data);
|
kbd_write_output(data);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void kbd_write_cmd(int cmd)
|
static void kbd_write_cmd(int cmd)
|
||||||
{
|
{
|
||||||
@@ -496,12 +504,14 @@ static int write_aux( int minor, const char * buffer, int count )
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static unsigned int aux_poll()
|
static unsigned int aux_poll()
|
||||||
{
|
{
|
||||||
if( !queue_empty() )
|
if( !queue_empty() )
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int psaux_init( void )
|
static int psaux_init( void )
|
||||||
{
|
{
|
||||||
@@ -587,17 +597,6 @@ static int write_aux_echo( int minor, const char * buffer, int count )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Some initialization if necessary
|
|
||||||
*/
|
|
||||||
static rtems_device_driver
|
|
||||||
paux_first_open( rtems_device_minor_number major,
|
|
||||||
rtems_device_minor_number minor,
|
|
||||||
void *arg)
|
|
||||||
{
|
|
||||||
return RTEMS_SUCCESSFUL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* paux device driver OPEN entry point
|
* paux device driver OPEN entry point
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ do_kdsk_ioctl(int cmd, struct kbentry *user_kbe, int perm, struct kbd_struct *kb
|
|||||||
ushort *key_map, val;
|
ushort *key_map, val;
|
||||||
|
|
||||||
tmp = *user_kbe;
|
tmp = *user_kbe;
|
||||||
if (i >= NR_KEYS || s >= MAX_NR_KEYMAPS)
|
if (i >= NR_KEYS) /* s cannot be >= MAX_NR_KEYMAPS */
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user