RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
lm32
include
bsp
milkymist_usbinput.h
Go to the documentation of this file.
1
6
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
24
25
#ifndef __MILKYMIST_USBINPUT_H_
26
#define __MILKYMIST_USBINPUT_H_
27
28
#ifdef __cplusplus
29
extern
"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, \
65
usbinput_open, NULL, usbinput_read, NULL, usbinput_control}
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* __MILKYMIST_USBINPUT_H_ */
rtems_device_driver
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
Definition
io.h:90
rtems_device_major_number
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition
io.h:103
rtems_device_minor_number
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition
io.h:115
usbinput_firmware_description
Definition
milkymist_usbinput.h:35
Generated by
1.18.0