Changeset e6b9182 in mainline for uspace/lib/usbhost/include


Ignore:
Timestamp:
2017-10-13T08:49:29Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
741bcdeb
Parents:
0a5833d7
Message:

WIP usbhost refactoring: ohci completed

Along with that we noticed hcd_t in bus_t is superfluous and it complicates initialization (and breaks isolation), so we removed it. Also, type of the toggle has changed to bool in the functions.

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

Legend:

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

    r0a5833d7 re6b9182  
    6868        /* Endpoint ops, optional (have generic fallback) */
    6969        void (*destroy_endpoint)(endpoint_t *);
    70         int (*endpoint_get_toggle)(endpoint_t *);
    71         void (*endpoint_set_toggle)(endpoint_t *, unsigned);
     70        bool (*endpoint_get_toggle)(endpoint_t *);
     71        void (*endpoint_set_toggle)(endpoint_t *, bool);
    7272} bus_ops_t;
    7373
    7474/** Endpoint management structure */
    7575typedef struct bus {
    76         hcd_t *hcd;
    77 
    7876        /* Synchronization of ops */
    7977        fibril_mutex_t guard;
     
    8583} bus_t;
    8684
    87 void bus_init(bus_t *, hcd_t *hcd);
     85void bus_init(bus_t *);
    8886
    8987endpoint_t *bus_create_endpoint(bus_t *);
  • uspace/lib/usbhost/include/usb/host/usb2_bus.h

    r0a5833d7 re6b9182  
    6565} usb2_bus_t;
    6666
    67 extern int usb2_bus_init(usb2_bus_t *, hcd_t *, size_t, count_bw_func_t);
     67extern int usb2_bus_init(usb2_bus_t *, size_t, count_bw_func_t);
    6868
    6969#endif
Note: See TracChangeset for help on using the changeset viewer.