RTEMS 6.1-rc1
serial_mouse.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
17/*
18 * COPYRIGHT (c) 1989-2011.
19 * On-Line Applications Research Corporation (OAR).
20 *
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions
23 * are met:
24 * 1. Redistributions of source code must retain the above copyright
25 * notice, this list of conditions and the following disclaimer.
26 * 2. Redistributions in binary form must reproduce the above copyright
27 * notice, this list of conditions and the following disclaimer in the
28 * documentation and/or other materials provided with the distribution.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
34 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
35 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
36 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
37 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
38 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 * POSSIBILITY OF SUCH DAMAGE.
41 */
42
43#ifndef __SERIAL_MOUSE_h__
44#define __SERIAL_MOUSE_h__
45
46#include <rtems/io.h>
47
48/* functions */
49
55#ifdef __cplusplus
56extern "C" {
57#endif
58
62#define SERIAL_MOUSE_DEVICE_PS2 "/dev/psaux"
63
67#define SERIAL_MOUSE_DRIVER_TABLE_ENTRY \
68 { serial_mouse_initialize, serial_mouse_open, serial_mouse_close, \
69 serial_mouse_read, serial_mouse_write, serial_mouse_control }
70
83 void *arg
84);
85
99 void *arg
100);
101
115 void *arg
116);
117
131 void *arg
132);
133
147 void *arg
148);
149
163 void *arg
164);
165
180 const char **name,
181 const char **type
182);
183
184#ifdef __cplusplus
185}
186#endif
188#endif /* __tty_drv__ */
This header file defines the IO Manager API.
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
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:151
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:172
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:182
bool bsp_get_serial_mouse_device(const char **name, const char **type)
Obtain serial mouse configuration information.
Definition: serial_mouse_config.c:48
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:162
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:78
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:99