Changeset 90df90c in mainline for uspace/drv/bus/usb/usbhid/main.c
- Timestamp:
- 2011-11-09T13:23:03Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07b9cbae
- Parents:
- 6f730278
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/main.c
r6f730278 r90df90c 73 73 usb_device_data_alloc(dev, sizeof(usb_hid_dev_t)); 74 74 if (hid_dev == NULL) { 75 usb_log_error("Error while creating USB/HID device " 76 "structure.\n"); 75 usb_log_error("Failed to create USB/HID device structure.\n"); 77 76 return ENOMEM; 78 77 } … … 87 86 usb_log_debug("USB/HID device structure initialized.\n"); 88 87 89 /*90 * 1) subdriver vytvori vlastnu ddf_fun, vlastne ddf_dev_ops, ktore da91 * do nej.92 * 2) do tych ops do .interfaces[DEV_IFACE_USBHID (asi)] priradi93 * vyplnenu strukturu usbhid_iface_t.94 * 3) klientska aplikacia - musi si rucne vytvorit telefon95 * (devman_device_connect() - cesta k zariadeniu (/hw/pci0/...) az96 * k tej fcii.97 * pouzit usb/classes/hid/iface.h - prvy int je telefon98 */99 100 88 /* Start automated polling function. 101 89 * This will create a separate fibril that will query the device 102 * for the data continuously. 103 */ 90 * for the data continuously. */ 104 91 rc = usb_device_auto_poll(dev, 105 92 /* Index of the polling pipe. */ … … 135 122 static int usb_hid_device_rem(usb_device_t *dev) 136 123 { 137 // TODO: Stop device polling fibril 138 // TODO: Stop autorepeat fibril 139 // TODO: Call deinit 124 // TODO: Stop device polling 125 // TODO: Call deinit (stops autorepeat too) 140 126 return ENOTSUP; 141 127 }
Note:
See TracChangeset
for help on using the changeset viewer.