Changeset f58154c5 in mainline for uspace/drv/ohci/hc.c


Ignore:
Timestamp:
2011-05-18T10:59:50Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17fc40c
Parents:
b2995c3 (diff), aeca5a3 (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:

Minor fixes and comments

UHCI: use provided barrier defines (buffer allocator should be able to use cacheable memory)
libusb: make usb enumeration routine follow USB spec more closely (wait periods)
OHCI: handle hw errors
OHCI: use provided barrier defines (buffer allocator should be able to use cacheable memory)
OHCI: reduce maximum buffer size for one transaction, this relaxes requirements on allocator providing hw accessible buffers.(memory does not have to be continuous) The only requirement that stays is the 32bit pointers limit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    rb2995c3 rf58154c5  
    293293                rh_interrupt(&instance->rh);
    294294
    295 
    296295        if (status & I_WDH) {
    297296                fibril_mutex_lock(&instance->guard);
     
    316315                fibril_mutex_unlock(&instance->guard);
    317316        }
     317
     318        if (status & I_UE) {
     319                hc_start_hw(instance);
     320        }
     321
    318322}
    319323/*----------------------------------------------------------------------------*/
     
    450454{
    451455        assert(instance);
    452 
    453456#define SETUP_ENDPOINT_LIST(type) \
    454457do { \
     
    458461                usb_log_error("Failed(%d) to setup %s endpoint list.\n", \
    459462                    ret, name); \
    460                 endpoint_list_fini(&instance->lists[USB_TRANSFER_ISOCHRONOUS]); \
     463                endpoint_list_fini(&instance->lists[USB_TRANSFER_ISOCHRONOUS]);\
    461464                endpoint_list_fini(&instance->lists[USB_TRANSFER_INTERRUPT]); \
    462465                endpoint_list_fini(&instance->lists[USB_TRANSFER_CONTROL]); \
Note: See TracChangeset for help on using the changeset viewer.