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


Ignore:
Timestamp:
2011-07-11T17:10:31Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14426a0
Parents:
b21dfba
Message:

OHCI: Root hub: Don't store interrupt mask in rh_t isntance.

It was never kept and always refreshed. OHCI limit of 15 ports enables us to use uint16_t directly if we take care of endian issue.

File:
1 edited

Legend:

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

    rb21dfba rf20bc82  
    4242
    4343#define HUB_DESCRIPTOR_MAX_SIZE (7 + 2 + 2)
    44 #define INTERRUPT_BUFFER_MAX_SIZE 2
    4544
    4645/**
     
    5655        /** interrupt transfer waiting for an actual interrupt to occur */
    5756        usb_transfer_batch_t *unfinished_interrupt_transfer;
    58         /** Interrupt mask of changes
    59          *
    60          * OHCI support max 15 ports (specs page 124) + one global bit, it
    61          * gives max 2 bytes.
    62          */
    63         uint8_t interrupt_buffer[INTERRUPT_BUFFER_MAX_SIZE];
    6457        /** size of interrupt buffer */
    6558        size_t interrupt_mask_size;
Note: See TracChangeset for help on using the changeset viewer.