RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
milkymist_usbinput.h
Go to the documentation of this file.
1
7/* milkymist_usbinput.h
8 *
9 * Milkymist USB input devices driver for RTEMS
10 *
11 * The license and distribution terms for this file may be
12 * found in the file LICENSE in this distribution or at
13 * http://www.rtems.org/license/LICENSE.
14 *
15 * COPYRIGHT (c) 2010, 2012 Sebastien Bourdeauducq
16 */
17
25#ifndef __MILKYMIST_USBINPUT_H_
26#define __MILKYMIST_USBINPUT_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/* Ioctls */
33#define USBINPUT_LOAD_FIRMWARE 0x5500
34
36 const unsigned char *data;
37 int length;
38};
39
40rtems_device_driver usbinput_initialize(
41 rtems_device_major_number major,
42 rtems_device_minor_number minor,
43 void *arg
44);
45
46rtems_device_driver usbinput_open(
47 rtems_device_major_number major,
48 rtems_device_minor_number minor,
49 void *arg
50);
51
52rtems_device_driver usbinput_read(
53 rtems_device_major_number major,
54 rtems_device_minor_number minor,
55 void *arg
56);
57
58rtems_device_driver usbinput_control(
59 rtems_device_major_number major,
60 rtems_device_minor_number minor,
61 void *arg
62);
63
64#define USBINPUT_DRIVER_TABLE_ENTRY {usbinput_initialize, \
65usbinput_open, NULL, usbinput_read, NULL, usbinput_control}
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* __MILKYMIST_USBINPUT_H_ */
rtems_status_code
Classic API Status.
Definition: status.h:43
Definition: milkymist_usbinput.h:35