Changes in uspace/drv/usbhid/usbhid.h [8fb45e08:faa44e58] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.h
r8fb45e08 rfaa44e58 48 48 struct usb_hid_dev; 49 49 50 typedef int (*usb_hid_driver_init_t)(struct usb_hid_dev *, void **data); 51 typedef void (*usb_hid_driver_deinit_t)(struct usb_hid_dev *, void *data); 52 typedef bool (*usb_hid_driver_poll)(struct usb_hid_dev *, void *data, uint8_t *, 53 size_t); 54 typedef int (*usb_hid_driver_poll_ended)(struct usb_hid_dev *, void *data, 55 bool reason); 50 typedef int (*usb_hid_driver_init_t)(struct usb_hid_dev *); 51 typedef void (*usb_hid_driver_deinit_t)(struct usb_hid_dev *); 52 typedef bool (*usb_hid_driver_poll)(struct usb_hid_dev *, uint8_t *, size_t); 53 typedef int (*usb_hid_driver_poll_ended)(struct usb_hid_dev *, bool reason); 56 54 57 55 // TODO: add function and class name?? … … 65 63 /** Function to be called when polling ends. */ 66 64 usb_hid_driver_poll_ended poll_end; 67 /** Arbitrary data needed by the subdriver. */68 void *data;69 65 } usb_hid_subdriver_t; 70 66 … … 76 72 /** Structure holding generic USB device information. */ 77 73 usb_device_t *usb_dev; 74 75 /** @todo What is this actually? */ 76 ddf_dev_ops_t ops; 78 77 79 78 /** Index of the polling pipe in usb_hid_endpoints array. */ … … 98 97 99 98 size_t input_report_size; 100 size_t max_input_report_size;101 99 102 int report_nr; 100 /** Arbitrary data (e.g. a special structure for handling keyboard). */ 101 void *data; 103 102 } usb_hid_dev_t; 104 103 … … 130 129 //const char *usb_hid_get_class_name(const usb_hid_dev_t *hid_dev); 131 130 132 void usb_hid_new_report( usb_hid_dev_t *hid_dev);131 void usb_hid_new_report(void); 133 132 134 int usb_hid_report_number(usb_hid_dev_t *hid_dev);133 void usb_hid_report_received(void); 135 134 136 //void usb_hid_report_received(void); 137 138 //bool usb_hid_report_ready(void); 135 bool usb_hid_report_ready(void); 139 136 140 137 void usb_hid_free(usb_hid_dev_t **hid_dev);
Note:
See TracChangeset
for help on using the changeset viewer.