Changeset b20de1d in mainline for uspace/drv/usbhid/main.c


Ignore:
Timestamp:
2011-04-29T09:31:34Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
890961a, f19f1b7
Parents:
323b0ec
Message:

Subdriver for Logitech UltraX keyboard improved.

  • Added mapping from usages to HelenOS keycodes - now lists only the Usages used by this keyboard + some other which are result of bad parsing of the report (will be removed, now only for demonstration purposes).
  • Added lgtch_init() and lgtch_deinit() functions (also to the subdriver mapping).
  • Some code of key handling is copied from boot kbd subdriver.
  • The subdriver creates its own DDF function and adds it into the 'keyboard' class, so that the console connects to it.
  • Fixed iterating over report.
File:
1 edited

Legend:

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

    r323b0ec rb20de1d  
    114114        hid_fun->ops = &hid_dev->ops;
    115115        hid_fun->driver_data = hid_dev;   // TODO: maybe change to hid_dev->data
     116       
     117        /*
     118         * 1) subdriver vytvori vlastnu ddf_fun, vlastne ddf_dev_ops, ktore da
     119         *    do nej.
     120         * 2) do tych ops do .interfaces[DEV_IFACE_USBHID (asi)] priradi
     121         *    vyplnenu strukturu usbhid_iface_t.
     122         * 3) klientska aplikacia - musi si rucne vytvorit telefon
     123         *    (devman_device_connect() - cesta k zariadeniu (/hw/pci0/...) az
     124         *    k tej fcii.
     125         *    pouzit usb/classes/hid/iface.h - prvy int je telefon
     126         */
    116127
    117128        rc = ddf_fun_bind(hid_fun);
Note: See TracChangeset for help on using the changeset viewer.