Changeset 400575c5 in mainline for uspace/drv/usbhid/main.c


Ignore:
Timestamp:
2011-02-04T17:19:20Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e29e09cf, e778543
Parents:
458e40c (diff), 89acf204 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Add UHCI Host Controller driver (uhci-hcd)
Add UHCI Root Hub driver (uhci-rhd)

hcd is able to communicate with usb dvices if request sent to hcd follow
USB specification (no isochronous transfers)
rhd does not support device removal

File:
1 edited

Legend:

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

    r458e40c r400575c5  
    5656#include "layout.h"
    5757
    58 #define BUFFER_SIZE 32
     58#define BUFFER_SIZE 8
    5959#define NAME "usbhid"
    6060
     
    262262}
    263263
     264# if 0
    264265/*
    265266 * Kbd functions
     
    297298        return EOK;
    298299}
    299 
    300300static int usbkbd_process_descriptors(usb_hid_dev_kbd_t *kbd_dev)
    301301{
     
    363363        return EOK;
    364364}
    365 
     365#endif
    366366static usb_hid_dev_kbd_t *usbkbd_init_device(device_t *dev)
    367367{
     
    404404         */
    405405
     406
    406407        // TODO: get descriptors, parse descriptors and save endpoints
    407         usbkbd_process_descriptors(kbd_dev);
     408        //usbkbd_process_descriptors(kbd_dev);
     409        usb_drv_req_set_configuration(
     410          kbd_dev->device->parent_phone, kbd_dev->address, 1);
    408411
    409412
     
    467470
    468471        while (true) {
    469                 async_usleep(1000 * 1000 * 2);
     472                async_usleep(1000 * 10);
    470473
    471474                sess_rc = usb_endpoint_pipe_start_session(&kbd_dev->poll_pipe);
Note: See TracChangeset for help on using the changeset viewer.