Changes in / [a09128c:c2772b8] in mainline
- Location:
- uspace
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/descdump.h
ra09128c rc2772b8 37 37 #define USBHID_DESCDUMP_H_ 38 38 39 #include <usb/classes/hid.h>39 #include "hid.h" 40 40 41 41 void dump_standard_configuration_descriptor( -
uspace/drv/usbhid/descparser.h
ra09128c rc2772b8 37 37 #define USBHID_DESCPARSER_H_ 38 38 39 #include <usb/classes/hid.h>39 #include "hid.h" 40 40 41 41 int usbkbd_parse_descriptors(const uint8_t *data, size_t size, -
uspace/drv/usbhid/main.c
ra09128c rc2772b8 49 49 #include <usb/descriptor.h> 50 50 #include <io/console.h> 51 #include "hid.h" 51 52 #include "descparser.h" 52 53 #include "descdump.h" -
uspace/lib/usb/Makefile
ra09128c rc2772b8 43 43 src/hidparser.c \ 44 44 src/localdrv.c \ 45 src/pipes.c \ 45 46 src/recognise.c \ 46 47 src/remotedrv.c \ -
uspace/lib/usb/include/usb/classes/hid.h
ra09128c rc2772b8 37 37 38 38 #include <usb/usb.h> 39 #include <driver.h>40 39 #include <usb/classes/hidparser.h> 41 40 #include <usb/descriptor.h> … … 101 100 } __attribute__ ((packed)) usb_standard_hid_descriptor_t; 102 101 103 /**104 *105 */106 typedef struct {107 usb_standard_interface_descriptor_t iface_desc;108 usb_standard_endpoint_descriptor_t *endpoints;109 usb_standard_hid_descriptor_t hid_desc;110 uint8_t *report_desc;111 //usb_standard_hid_class_descriptor_info_t *class_desc_info;112 //uint8_t **class_descs;113 } usb_hid_iface_t;114 115 /**116 *117 */118 typedef struct {119 usb_standard_configuration_descriptor_t config_descriptor;120 usb_hid_iface_t *interfaces;121 } usb_hid_configuration_t;122 123 /**124 * @brief USB/HID keyboard device type.125 *126 * Quite dummy right now.127 */128 typedef struct {129 device_t *device;130 usb_hid_configuration_t *conf;131 usb_address_t address;132 usb_endpoint_t poll_endpoint;133 usb_hid_report_parser_t *parser;134 } usb_hid_dev_kbd_t;135 136 // TODO: more configurations!137 102 138 103 #endif -
uspace/lib/usb/include/usb/usb.h
ra09128c rc2772b8 52 52 typedef enum { 53 53 USB_DIRECTION_IN, 54 USB_DIRECTION_OUT 54 USB_DIRECTION_OUT, 55 USB_DIRECTION_BOTH 55 56 } usb_direction_t; 56 57
Note:
See TracChangeset
for help on using the changeset viewer.