1 | #ifndef __serial_mouse_drv__ |
---|
2 | #define __serial_mouse_drv__ |
---|
3 | /*************************************************************************** |
---|
4 | * |
---|
5 | * $Header$ |
---|
6 | * |
---|
7 | * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved. |
---|
8 | * |
---|
9 | * MODULE DESCRIPTION: Prototype routines for the /dev/mouse driver. |
---|
10 | * |
---|
11 | * by: Rosimildo da Silva: |
---|
12 | * rdasilva@connecttel.com |
---|
13 | * http://www.connecttel.com |
---|
14 | * |
---|
15 | * MODIFICATION/HISTORY: |
---|
16 | * |
---|
17 | * $Log$ |
---|
18 | * Revision 1.2 2004/04/15 13:26:12 ralf |
---|
19 | * Remove stray white spaces. |
---|
20 | * |
---|
21 | * Revision 1.1 2000/08/30 08:15:30 joel |
---|
22 | * 2000-08-26 Rosimildo da Silva <rdasilva@connecttel.com> |
---|
23 | * |
---|
24 | * * Major rework of the "/dev/console" driver. |
---|
25 | * * Added termios support for stdin ( keyboard ). |
---|
26 | * * Added ioctls() to support modes similar to Linux( XLATE, |
---|
27 | * RAW, MEDIUMRAW ). |
---|
28 | * * Added Keyboard mapping and handling of the keyboard's leds. |
---|
29 | * * Added Micro FrameBuffer driver ( "/dev/fb0" ) for bare VGA |
---|
30 | * controller ( 16 colors ). |
---|
31 | * * Added PS/2 and Serial mouse support for PC386 BSP. |
---|
32 | * * console/defkeymap.c: New file. |
---|
33 | * * console/fb_vga.c: New file. |
---|
34 | * * console/fb_vga.h: New file. |
---|
35 | * * console/i386kbd.h: New file. |
---|
36 | * * console/kd.h: New file. |
---|
37 | * * console/keyboard.c: New file. |
---|
38 | * * console/keyboard.h: New file. |
---|
39 | * * console/mouse_parser.c: New file. |
---|
40 | * * console/mouse_parser.h: New file. |
---|
41 | * * console/pc_keyb.c: New file. |
---|
42 | * * console/ps2_drv.h: New file. |
---|
43 | * * console/ps2_mouse.c: New file. |
---|
44 | * * console/ps2_mouse.h: New file. |
---|
45 | * * console/serial_mouse.c: New file. |
---|
46 | * * console/serial_mouse.h: New file. |
---|
47 | * * console/vgainit.c: New file. |
---|
48 | * * console/vt.c: New file. |
---|
49 | * * console/Makefile.am: Reflect new files. |
---|
50 | * * console/console.c, console/inch.c, console/outch.c: Console |
---|
51 | * functionality modifications. |
---|
52 | * * startup/Makefile.am: Pick up tty_drv.c and gdb_glue.c |
---|
53 | * |
---|
54 | ****************************************************************************/ |
---|
55 | |
---|
56 | /* functions */ |
---|
57 | #ifdef __cplusplus |
---|
58 | extern "C" { |
---|
59 | #endif |
---|
60 | |
---|
61 | |
---|
62 | /* ttyS1 entry points */ |
---|
63 | rtems_device_driver serial_mouse_initialize( |
---|
64 | rtems_device_major_number, |
---|
65 | rtems_device_minor_number, |
---|
66 | void * |
---|
67 | ); |
---|
68 | |
---|
69 | rtems_device_driver serial_mouse_open( |
---|
70 | rtems_device_major_number, |
---|
71 | rtems_device_minor_number, |
---|
72 | void * |
---|
73 | ); |
---|
74 | |
---|
75 | rtems_device_driver serial_mouse_control( |
---|
76 | rtems_device_major_number, |
---|
77 | rtems_device_minor_number, |
---|
78 | void * |
---|
79 | ); |
---|
80 | |
---|
81 | |
---|
82 | /* serial_mouse entry points */ |
---|
83 | rtems_device_driver serial_mouse_close( |
---|
84 | rtems_device_major_number, |
---|
85 | rtems_device_minor_number, |
---|
86 | void * |
---|
87 | ); |
---|
88 | |
---|
89 | |
---|
90 | rtems_device_driver serial_mouse_read( |
---|
91 | rtems_device_major_number, |
---|
92 | rtems_device_minor_number, |
---|
93 | void * |
---|
94 | ); |
---|
95 | |
---|
96 | rtems_device_driver serial_mouse_write( |
---|
97 | rtems_device_major_number, |
---|
98 | rtems_device_minor_number, |
---|
99 | void * |
---|
100 | ); |
---|
101 | |
---|
102 | |
---|
103 | /* Select the mouse type: "ms","pc","ps2" */ |
---|
104 | #define MOUSE_TYPE "ms" |
---|
105 | |
---|
106 | /* Select the serial port for the serial mouse driver */ |
---|
107 | #define SERIAL_MOUSE_COM1 1 |
---|
108 | /* #define SERIAL_MOUSE_COM2 1 */ |
---|
109 | |
---|
110 | |
---|
111 | #define SERIAL_MOUSE_DRIVER_TABLE_ENTRY \ |
---|
112 | { serial_mouse_initialize, serial_mouse_open, serial_mouse_close, \ |
---|
113 | serial_mouse_read, serial_mouse_write, serial_mouse_control } |
---|
114 | |
---|
115 | #ifdef __cplusplus |
---|
116 | } |
---|
117 | #endif |
---|
118 | /* end of include file */ |
---|
119 | |
---|
120 | #endif /* __tty_drv__ */ |
---|