Changeset 01eeaaf in mainline for uspace/drv/bus/usb/vhc/vhcd.h
- Timestamp:
- 2012-12-22T15:07:29Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6577d9
- Parents:
- 94c40ce2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/vhcd.h
r94c40ce2 r01eeaaf 43 43 #include <async.h> 44 44 45 #include <usb/host/hcd.h> 46 47 45 48 #define NAME "vhc" 46 49 … … 67 70 typedef struct { 68 71 link_t link; 72 73 usb_transfer_batch_t *batch; 74 69 75 usb_address_t address; 70 76 usb_endpoint_t endpoint; … … 81 87 } vhc_transfer_t; 82 88 89 static inline void vhc_data_init(vhc_data_t *instance) 90 { 91 assert(instance); 92 list_initialize(&instance->devices); 93 fibril_mutex_initialize(&instance->guard); 94 instance->magic = 0xDEADBEEF; 95 } 96 97 83 98 vhc_transfer_t *vhc_transfer_create(usb_address_t, usb_endpoint_t, 84 99 usb_direction_t, usb_transfer_type_t, ddf_fun_t *, void *); 85 100 int vhc_virtdev_plug(vhc_data_t *, async_sess_t *, uintptr_t *); 86 101 int vhc_virtdev_plug_local(vhc_data_t *, usbvirt_device_t *, uintptr_t *); 87 int vhc_virtdev_plug_hub(vhc_data_t *, usbvirt_device_t *, uintptr_t * );102 int vhc_virtdev_plug_hub(vhc_data_t *, usbvirt_device_t *, uintptr_t *, usb_address_t address); 88 103 void vhc_virtdev_unplug(vhc_data_t *, uintptr_t); 89 104 int vhc_virtdev_add_transfer(vhc_data_t *, vhc_transfer_t *); … … 92 107 93 108 109 int vhc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 110 94 111 #endif 95 112 /**
Note:
See TracChangeset
for help on using the changeset viewer.