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


Ignore:
Timestamp:
2011-07-12T10:58:45Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4f291d
Parents:
0c224b2
Message:

OHCI: Root hub: Final touches.

Simplify mask size computation.
Remove useless bit_field_size variable in create_hub_descriptor,
value in instance→interrupt_mask_size can be used.
Set interrupt endpoint max packet size to match mask size.
rh_request always returns EOK as errors are indicated via
usb_transfer_batch mechanism, change return type to void.
Get rid of request_without_data function and consolidate request type switch
into one function.
Use new get_feature/set_feature functions to replace the functionality
of removed request_without_data.
Rename:

port_feature_set_request ⇒ set_feature_port
port_feature_clear_request ⇒ clear_feature_port

File:
1 edited

Legend:

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

    r0c224b2 r7d5708d  
    5757        /** size of interrupt buffer */
    5858        size_t interrupt_mask_size;
    59 
    6059        /** Descriptors */
    6160        struct {
     
    7271void rh_init(rh_t *instance, ohci_regs_t *regs);
    7372
    74 int rh_request(rh_t *instance, usb_transfer_batch_t *request);
     73void rh_request(rh_t *instance, usb_transfer_batch_t *request);
    7574
    7675void rh_interrupt(rh_t *instance);
Note: See TracChangeset for help on using the changeset viewer.