Changeset 90df90c in mainline for uspace/drv/bus/usb/usbhid/main.c


Ignore:
Timestamp:
2011-11-09T13:23:03Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
07b9cbae
Parents:
6f730278
Message:

usbhid: Rework usb_hid_check_pipes. Comment fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/main.c

    r6f730278 r90df90c  
    7373            usb_device_data_alloc(dev, sizeof(usb_hid_dev_t));
    7474        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");
    7776                return ENOMEM;
    7877        }
     
    8786        usb_log_debug("USB/HID device structure initialized.\n");
    8887
    89         /*
    90          * 1) subdriver vytvori vlastnu ddf_fun, vlastne ddf_dev_ops, ktore da
    91          *    do nej.
    92          * 2) do tych ops do .interfaces[DEV_IFACE_USBHID (asi)] priradi
    93          *    vyplnenu strukturu usbhid_iface_t.
    94          * 3) klientska aplikacia - musi si rucne vytvorit telefon
    95          *    (devman_device_connect() - cesta k zariadeniu (/hw/pci0/...) az
    96          *    k tej fcii.
    97          *    pouzit usb/classes/hid/iface.h - prvy int je telefon
    98          */
    99 
    10088        /* Start automated polling function.
    10189         * This will create a separate fibril that will query the device
    102          * for the data continuously.
    103          */
     90         * for the data continuously. */
    10491       rc = usb_device_auto_poll(dev,
    10592           /* Index of the polling pipe. */
     
    135122static int usb_hid_device_rem(usb_device_t *dev)
    136123{
    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)
    140126        return ENOTSUP;
    141127}
Note: See TracChangeset for help on using the changeset viewer.