Ignore:
Timestamp:
2011-01-14T12:20:54Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b2a6fcfe
Parents:
2b0db98
Message:

Descriptor parsing modified (fixed)

  • change usbkbd_parse_descriptors() not to parse class-specific descriptors as these are retrieved differently
  • dump functions moved to descdump.h/c
  • getting report descriptor in usbkbd/main.c
  • changed descriptor structures (hid.h) to reflect, that there is only one report descriptor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/classes/hid.h

    r2b0db98 r6986418  
    9393        /** Total number of class-specific (i.e. Report and Physical)
    9494         * descriptors.
     95         *
     96         * @note There is always only one Report descriptor.
    9597         */
    9698        uint8_t class_desc_count;
    97 //      /** First mandatory class descriptor info. */
    98 //      usb_standard_hid_descriptor_class_item_t class_descriptor;
     99        /** First mandatory class descriptor (Report) info. */
     100        usb_standard_hid_descriptor_class_item_t report_desc_info;
    99101} __attribute__ ((packed)) usb_standard_hid_descriptor_t;
    100102
     
    106108        usb_standard_endpoint_descriptor_t *endpoints;
    107109        usb_standard_hid_descriptor_t hid_desc;
    108         usb_standard_hid_class_descriptor_info_t *class_desc_info;
    109         uint8_t **class_descs;
     110        uint8_t *report_desc;
     111        //usb_standard_hid_class_descriptor_info_t *class_desc_info;
     112        //uint8_t **class_descs;
    110113} usb_hid_iface_t;
    111114
     
    131134} usb_hid_dev_kbd_t;
    132135
     136// TODO: more configurations!
     137
    133138#endif
    134139/**
Note: See TracChangeset for help on using the changeset viewer.