RTEMS: bsps/lm32/include/bsp/milkymist_usbinput.h Source File

| RTEMS 5.4-rc2

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
35 struct usbinput_firmware_description {
36 const unsigned char *data;
37 int length;
38};
39
40 rtems_device_driver usbinput_initialize(
41 rtems_device_major_number major,
42 rtems_device_minor_number minor,
43 void *arg
44);
45
46 rtems_device_driver usbinput_open(
47 rtems_device_major_number major,
48 rtems_device_minor_number minor,
49 void *arg
50);
51
52 rtems_device_driver usbinput_read(
53 rtems_device_major_number major,
54 rtems_device_minor_number minor,
55 void *arg
56);
57
58 rtems_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
rtems_status_code
Classic API Status.
Definition: status.h:43
usbinput_firmware_description
Definition: milkymist_usbinput.h:35