RTEMS  5.0.0
serial_mouse.h
Go to the documentation of this file.
1 
15 /*
16  * COPYRIGHT (c) 1989-2011.
17  * On-Line Applications Research Corporation (OAR).
18  *
19  * The license and distribution terms for this file may be
20  * found in the file LICENSE in this distribution or at
21  * http://www.rtems.org/license/LICENSE.
22  */
23 
24 #ifndef __SERIAL_MOUSE_h__
25 #define __SERIAL_MOUSE_h__
26 
27 #include <rtems/io.h>
28 
29 /* functions */
30 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
43 #define SERIAL_MOUSE_DEVICE_PS2 "/dev/psaux"
44 
48 #define SERIAL_MOUSE_DRIVER_TABLE_ENTRY \
49  { serial_mouse_initialize, serial_mouse_open, serial_mouse_close, \
50  serial_mouse_read, serial_mouse_write, serial_mouse_control }
51 
62  rtems_device_major_number major,
63  rtems_device_minor_number minor,
64  void *arg
65 );
66 
78  rtems_device_major_number major,
79  rtems_device_minor_number minor,
80  void *arg
81 );
82 
94  rtems_device_major_number major,
95  rtems_device_minor_number minor,
96  void *arg
97 );
98 
110  rtems_device_major_number major,
111  rtems_device_minor_number minor,
112  void *arg
113 );
114 
126  rtems_device_major_number major,
127  rtems_device_minor_number minor,
128  void *arg
129 );
130 
142  rtems_device_major_number major,
143  rtems_device_minor_number minor,
144  void *arg
145 );
146 
161  const char **name,
162  const char **type
163 );
164 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #endif /* __tty_drv__ */
rtems_device_driver serial_mouse_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
The initialization of the serial mouse driver.
Definition: serial_mouse.c:58
rtems_device_driver serial_mouse_read(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Read device driver entry point for the serial mouse driver.
Definition: serial_mouse.c:142
rtems_device_driver serial_mouse_write(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Write device driver entry point for the serial mouse driver.
Definition: serial_mouse.c:152
rtems_status_code
Classic API Status.
Definition: status.h:43
Classic Input/Output Manager API.
rtems_device_driver serial_mouse_control(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
IO Control device driver entry point for the serial mouse driver.
Definition: serial_mouse.c:162
bool bsp_get_serial_mouse_device(const char **name, const char **type)
Obtain serial mouse configuration information.
Definition: serial_mouse_config.c:29
rtems_device_driver serial_mouse_close(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Close device driver entry point for the serial mouse driver.
Definition: serial_mouse.c:131
rtems_device_driver serial_mouse_open(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Open device driver entry point for the serial mouse driver.
Definition: serial_mouse.c:79