Changeset f6577d9 in mainline for uspace/drv/bus/usb/vhc/vhcd.h
- Timestamp:
- 2012-12-22T15:48:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5f0cfb
- Parents:
- 01eeaaf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/vhcd.h
r01eeaaf rf6577d9 36 36 #define VHCD_VHCD_H_ 37 37 38 #include <usb/debug.h>39 38 #include <usbvirt/device.h> 40 #include <usb/host/usb_endpoint_manager.h>41 #include <usb/host/usb_device_manager.h>42 39 #include <usbhc_iface.h> 43 40 #include <async.h> … … 62 59 list_t devices; 63 60 fibril_mutex_t guard; 64 usb_endpoint_manager_t ep_manager;65 usb_device_manager_t dev_manager;66 61 usbvirt_device_t *hub; 67 62 ddf_fun_t *hc_fun; … … 70 65 typedef struct { 71 66 link_t link; 72 73 67 usb_transfer_batch_t *batch; 74 75 usb_address_t address;76 usb_endpoint_t endpoint;77 usb_direction_t direction;78 usb_transfer_type_t transfer_type;79 void *setup_buffer;80 size_t setup_buffer_size;81 void *data_buffer;82 size_t data_buffer_size;83 ddf_fun_t *ddf_fun;84 void *callback_arg;85 usbhc_iface_transfer_in_callback_t callback_in;86 usbhc_iface_transfer_out_callback_t callback_out;87 68 } vhc_transfer_t; 88 69 … … 95 76 } 96 77 78 void on_client_close(ddf_fun_t *fun); 79 void default_connection_handler(ddf_fun_t *fun, ipc_callid_t icallid, 80 ipc_call_t *icall); 97 81 98 vhc_transfer_t *vhc_transfer_create(usb_address_t, usb_endpoint_t,99 usb_direction_t, usb_transfer_type_t, ddf_fun_t *, void *);100 82 int vhc_virtdev_plug(vhc_data_t *, async_sess_t *, uintptr_t *); 101 83 int vhc_virtdev_plug_local(vhc_data_t *, usbvirt_device_t *, uintptr_t *); 102 84 int vhc_virtdev_plug_hub(vhc_data_t *, usbvirt_device_t *, uintptr_t *, usb_address_t address); 103 85 void vhc_virtdev_unplug(vhc_data_t *, uintptr_t); 104 int vhc_virtdev_add_transfer(vhc_data_t *, vhc_transfer_t *);105 106 int vhc_transfer_queue_processor(void *arg);107 86 108 87 109 88 int vhc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 89 int vhc_transfer_queue_processor(void *arg); 110 90 111 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.