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