Changes in uspace/drv/usbhid/usbhid.h [faa44e58:d1fb591] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.h
rfaa44e58 rd1fb591 48 48 struct usb_hid_dev; 49 49 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); 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); 54 56 55 57 // TODO: add function and class name?? … … 63 65 /** Function to be called when polling ends. */ 64 66 usb_hid_driver_poll_ended poll_end; 67 /** Arbitrary data needed by the subdriver. */ 68 void *data; 65 69 } usb_hid_subdriver_t; 66 70 … … 72 76 /** Structure holding generic USB device information. */ 73 77 usb_device_t *usb_dev; 74 75 /** @todo What is this actually? */76 ddf_dev_ops_t ops;77 78 78 79 /** Index of the polling pipe in usb_hid_endpoints array. */ … … 97 98 98 99 size_t input_report_size; 99 100 /** Arbitrary data (e.g. a special structure for handling keyboard). */ 101 void *data; 100 size_t max_input_report_size; 102 101 } usb_hid_dev_t; 103 102
Note:
See TracChangeset
for help on using the changeset viewer.