Changeset 7d5708d in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2011-07-12T10:58:45Z (13 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/hc.c

    r0c224b2 r7d5708d  
    373373        /* Check for root hub communication */
    374374        if (batch->ep->address == instance->rh.address) {
    375                 return rh_request(&instance->rh, batch);
     375                rh_request(&instance->rh, batch);
     376                return EOK;
    376377        }
    377378
Note: See TracChangeset for help on using the changeset viewer.