Changeset 1a02517 in mainline for uspace/lib/usbhost/include/usb/host


Ignore:
Timestamp:
2011-08-25T08:53:14Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32e093e
Parents:
3afb758
Message:

libusbhost: Streamline new hcd arch. UHCI: follow changes in libusbhost

Add endpoint registration hook.
Remove batch private data dtor from hcd_t (it should be set during initialization)

Location:
uspace/lib/usbhost/include/usb/host
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r3afb758 r1a02517  
    5050
    5151        int (*schedule)(hcd_t *, usb_transfer_batch_t *);
    52         void * (*batch_private_ctor)(usb_transfer_batch_t *);
    53         void (*batch_private_dtor)(void *);
     52        int (*batch_init_hook)(usb_transfer_batch_t *);
     53        int (*ep_add_hook)(endpoint_t *);
    5454};
    5555/*----------------------------------------------------------------------------*/
  • uspace/lib/usbhost/include/usb/host/usb_endpoint_manager.h

    r3afb758 r1a02517  
    7777    usb_endpoint_manager_t *instance, usb_target_t target, const uint8_t *data);
    7878
     79/** Wrapper combining allocation and insertion */
    7980static inline int usb_endpoint_manager_add_ep(usb_endpoint_manager_t *instance,
    8081    usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction,
Note: See TracChangeset for help on using the changeset viewer.