Changes in uspace/drv/bus/usb/vhc/vhcd.h [d369b3b:58563585] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/vhcd.h
rd369b3b r58563585 38 38 39 39 #include <usbvirt/device.h> 40 #include <usbhc_iface.h> 40 41 #include <async.h> 41 #include <macros.h>42 42 43 43 #include <usb/host/hcd.h> 44 #include <usb/host/usb2_bus.h>45 #include <usb/host/usb_transfer_batch.h>46 44 47 45 #define NAME "vhc" … … 58 56 59 57 typedef struct { 60 hc_device_t base; 61 62 bus_t bus; 63 usb2_bus_helper_t bus_helper; 64 65 ddf_fun_t *virtual_fun; 58 uint32_t magic; 66 59 list_t devices; 67 60 fibril_mutex_t guard; … … 70 63 71 64 typedef struct { 72 usb_transfer_batch_t batch;73 65 link_t link; 66 usb_transfer_batch_t *batch; 74 67 } vhc_transfer_t; 75 76 static inline vhc_data_t *hcd_to_vhc(hc_device_t *hcd)77 {78 assert(hcd);79 return (vhc_data_t *) hcd;80 }81 82 static inline vhc_data_t *bus_to_vhc(bus_t *bus)83 {84 assert(bus);85 return member_to_inst(bus, vhc_data_t, bus);86 }87 68 88 69 void on_client_close(ddf_fun_t *fun); … … 95 76 void vhc_virtdev_unplug(vhc_data_t *, uintptr_t); 96 77 97 int vhc_init(vhc_data_t * );98 int vhc_schedule( usb_transfer_batch_t *);78 int vhc_init(vhc_data_t *instance); 79 int vhc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 99 80 int vhc_transfer_queue_processor(void *arg); 100 81
Note:
See TracChangeset
for help on using the changeset viewer.