Changeset 54b5625 in mainline
- Timestamp:
- 2011-01-30T22:03:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c2772b8
- Parents:
- 43f698b
- Location:
- uspace
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/descdump.h
r43f698b r54b5625 32 32 #define USBHID_DESCDUMP_H_ 33 33 34 #include <usb/classes/hid.h>34 #include "hid.h" 35 35 36 36 void dump_standard_configuration_descriptor( -
uspace/drv/usbkbd/descparser.h
r43f698b r54b5625 33 33 #define USBHID_DESCPARSER_H_ 34 34 35 #include <usb/classes/hid.h>35 #include "hid.h" 36 36 37 37 int usbkbd_parse_descriptors(const uint8_t *data, size_t size, -
uspace/drv/usbkbd/main.c
r43f698b r54b5625 42 42 #include <usb/descriptor.h> 43 43 #include <io/console.h> 44 #include "hid.h" 44 45 #include "descparser.h" 45 46 #include "descdump.h" -
uspace/lib/usb/include/usb/classes/hid.h
r43f698b r54b5625 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
Note:
See TracChangeset
for help on using the changeset viewer.