diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-08-30 08:15:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-08-30 08:15:30 +0000 |
commit | 3cbb63ac774a21e13f5f75271810754b70ff311d (patch) | |
tree | 66325321fdf790e0fc19503652fca633fdb7f5b0 /c/src/lib/libbsp/i386/pc386/console/mouse_parser.h | |
parent | 2000-08-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-3cbb63ac774a21e13f5f75271810754b70ff311d.tar.bz2 |
2000-08-26 Rosimildo da Silva <rdasilva@connecttel.com>
* Major rework of the "/dev/console" driver.
* Added termios support for stdin ( keyboard ).
* Added ioctls() to support modes similar to Linux( XLATE,
RAW, MEDIUMRAW ).
* Added Keyboard mapping and handling of the keyboard's leds.
* Added Micro FrameBuffer driver ( "/dev/fb0" ) for bare VGA
controller ( 16 colors ).
* Added PS/2 and Serial mouse support for PC386 BSP.
* console/defkeymap.c: New file.
* console/fb_vga.c: New file.
* console/fb_vga.h: New file.
* console/i386kbd.h: New file.
* console/kd.h: New file.
* console/keyboard.c: New file.
* console/keyboard.h: New file.
* console/mouse_parser.c: New file.
* console/mouse_parser.h: New file.
* console/pc_keyb.c: New file.
* console/ps2_drv.h: New file.
* console/ps2_mouse.c: New file.
* console/ps2_mouse.h: New file.
* console/serial_mouse.c: New file.
* console/serial_mouse.h: New file.
* console/vgainit.c: New file.
* console/vt.c: New file.
* console/Makefile.am: Reflect new files.
* console/console.c, console/inch.c, console/outch.c: Console
functionality modifications.
* startup/Makefile.am: Pick up tty_drv.c and gdb_glue.c
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/mouse_parser.h')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/console/mouse_parser.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h new file mode 100644 index 0000000000..7956a14599 --- /dev/null +++ b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h @@ -0,0 +1,36 @@ +#ifndef __mouse_parser_h__ +#define __mouse_parser_h__ + +#include <rtems/mw_uid.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Use the same definitions as the user interface */ +#define RBUTTON MV_BUTTON_RIGHT +#define MBUTTON MV_BUTTON_CENTER +#define LBUTTON MV_BUTTON_LEFT + +typedef int COORD; /* device coordinates*/ +typedef unsigned int BUTTON; /* mouse button mask*/ + +/* local routines */ +int MOU_Init(); +int MOU_Data( int ch, COORD *dx, COORD *dy, COORD *dz, BUTTON *bptr ); + +/* Mouse Interface */ +void register_mou_msg_queue( char * qname, int port ); +void unregister_mou_msg_queue( int port ); + +/* KBD Interface */ +void register_kbd_msg_queue( char *qname, int port ); +void unregister_kbd_msg_queue( int port ); + +#ifdef __cplusplus +} +#endif + + +#endif /* __mouse_parser_h__ */ + |