Changeset 54b5625 in mainline


Ignore:
Timestamp:
2011-01-30T22:03:39Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c2772b8
Parents:
43f698b
Message:

Driver dependent stuff outside libusb

The USB classes files in libusb shall not define driver-dependent stuff but
only things that describe USB standards.

Location:
uspace
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/descdump.h

    r43f698b r54b5625  
    3232#define USBHID_DESCDUMP_H_
    3333
    34 #include <usb/classes/hid.h>
     34#include "hid.h"
    3535
    3636void dump_standard_configuration_descriptor(
  • uspace/drv/usbkbd/descparser.h

    r43f698b r54b5625  
    3333#define USBHID_DESCPARSER_H_
    3434
    35 #include <usb/classes/hid.h>
     35#include "hid.h"
    3636
    3737int usbkbd_parse_descriptors(const uint8_t *data, size_t size,
  • uspace/drv/usbkbd/main.c

    r43f698b r54b5625  
    4242#include <usb/descriptor.h>
    4343#include <io/console.h>
     44#include "hid.h"
    4445#include "descparser.h"
    4546#include "descdump.h"
  • uspace/lib/usb/include/usb/classes/hid.h

    r43f698b r54b5625  
    3737
    3838#include <usb/usb.h>
    39 #include <driver.h>
    4039#include <usb/classes/hidparser.h>
    4140#include <usb/descriptor.h>
     
    101100} __attribute__ ((packed)) usb_standard_hid_descriptor_t;
    102101
    103 /**
    104  *
    105  */
    106 typedef struct {
    107         usb_standard_interface_descriptor_t iface_desc;
    108         usb_standard_endpoint_descriptor_t *endpoints;
    109         usb_standard_hid_descriptor_t hid_desc;
    110         uint8_t *report_desc;
    111         //usb_standard_hid_class_descriptor_info_t *class_desc_info;
    112         //uint8_t **class_descs;
    113 } usb_hid_iface_t;
    114 
    115 /**
    116  *
    117  */
    118 typedef struct {
    119         usb_standard_configuration_descriptor_t config_descriptor;
    120         usb_hid_iface_t *interfaces;
    121 } usb_hid_configuration_t;
    122 
    123 /**
    124  * @brief USB/HID keyboard device type.
    125  *
    126  * Quite dummy right now.
    127  */
    128 typedef struct {
    129         device_t *device;
    130         usb_hid_configuration_t *conf;
    131         usb_address_t address;
    132         usb_endpoint_t poll_endpoint;
    133         usb_hid_report_parser_t *parser;
    134 } usb_hid_dev_kbd_t;
    135 
    136 // TODO: more configurations!
    137102
    138103#endif
Note: See TracChangeset for help on using the changeset viewer.