Changeset 867b375 in mainline for uspace/lib/usb/include/usb/usb.h


Ignore:
Timestamp:
2017-10-15T02:04:10Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20eaa82
Parents:
d7869d7e
Message:

hcd_ddf_new_device refactoring

This long function is now split into parts. Instead of passing dozens of arguments, it now creates the usb_dev_t right away, and uses that to pass it along. The address_device part is now modifiable by drivers.

There is still a work to be done. The biggest problem I see is in the addressing - currently, there is usb_address_t, and for high speed transaction translating there is another address. For (near) future extensibility, we should pass address as a structure. Or even better, make a way how to reference a device, maybe in a similar way how we work with endpoints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/usb.h

    rd7869d7e r867b375  
    114114typedef int16_t usb_address_t;
    115115
     116typedef struct {
     117        usb_address_t address;
     118        unsigned port;
     119} usb_tt_address_t;
     120
    116121/** Default USB address. */
    117122#define USB_ADDRESS_DEFAULT 0
Note: See TracChangeset for help on using the changeset viewer.