Changeset ece7f78 in mainline for uspace/drv/bus/usb/ohci/root_hub.h


Ignore:
Timestamp:
2011-07-11T09:52:15Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c85804f
Parents:
aa81adc
Message:

OHCI: Root hub: remove allocation and fix rare bug.

Limit port-count to 15 (specs say so on page 124).
Use array of max possible size (2 bytes), instead of heap allocation.
Fix issue with changes happening on port 8 on 8-port hub.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/root_hub.h

    raa81adc rece7f78  
    5757        /** pre-allocated interrupt mask
    5858         *
    59          * This is allocated when initializing instance, so that memory
    60          * allocation is not needed when processing request. Buffer is used for
    61          * interrupt bitmask.
     59         * OHCI support max 15 ports (specs page 124) + one global bit, it
     60         * gives max 2 bytes.
    6261         */
    63         uint8_t * interrupt_buffer;
     62        uint8_t interrupt_buffer[2];
    6463        /** size of interrupt buffer */
    6564        size_t interrupt_mask_size;
Note: See TracChangeset for help on using the changeset viewer.