RTEMS 6.1-rc6
Loading...
Searching...
No Matches
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(
43 void *arg
44);
45
46rtems_device_driver usbinput_open(
49 void *arg
50);
51
52rtems_device_driver usbinput_read(
55 void *arg
56);
57
58rtems_device_driver usbinput_control(
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_ */
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
Definition: milkymist_usbinput.h:35