Changeset 432a269 in mainline for uspace/lib/drv/include/usbhc_iface.h
- Timestamp:
- 2011-09-16T21:13:57Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3a11f17
- Parents:
- c0e53ff (diff), fd07e526 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
rc0e53ff r432a269 123 123 IPC_M_USBHC_RELEASE_ADDRESS, 124 124 125 126 /** Send interrupt data to device.127 * See explanation at usb_iface_funcs_t (OUT transaction).128 */129 IPC_M_USBHC_INTERRUPT_OUT,130 131 /** Get interrupt data from device.132 * See explanation at usb_iface_funcs_t (IN transaction).133 */134 IPC_M_USBHC_INTERRUPT_IN,135 136 /** Send bulk data to device.137 * See explanation at usb_iface_funcs_t (OUT transaction).138 */139 IPC_M_USBHC_BULK_OUT,140 141 /** Get bulk data from device.142 * See explanation at usb_iface_funcs_t (IN transaction).143 */144 IPC_M_USBHC_BULK_IN,145 146 /** Issue control WRITE transfer.147 * See explanation at usb_iface_funcs_t (OUT transaction) for148 * call parameters.149 * This call is immediately followed by two IPC data writes150 * from the caller (setup packet and actual data).151 */152 IPC_M_USBHC_CONTROL_WRITE,153 154 /** Issue control READ transfer.155 * See explanation at usb_iface_funcs_t (IN transaction) for156 * call parameters.157 * This call is immediately followed by IPC data write from the caller158 * (setup packet) and IPC data read (buffer that was read).159 */160 IPC_M_USBHC_CONTROL_READ,161 162 125 /** Register endpoint attributes at host controller. 163 126 * This is used to reserve portion of USB bandwidth. … … 185 148 * - ENOENT - unknown endpoint 186 149 */ 187 IPC_M_USBHC_UNREGISTER_ENDPOINT 150 IPC_M_USBHC_UNREGISTER_ENDPOINT, 151 152 /** Get data from device. 153 * See explanation at usb_iface_funcs_t (IN transaction). 154 */ 155 IPC_M_USBHC_READ, 156 157 /** Send data to device. 158 * See explanation at usb_iface_funcs_t (OUT transaction). 159 */ 160 IPC_M_USBHC_WRITE, 188 161 } usbhc_iface_funcs_t; 189 162 190 163 /** Callback for outgoing transfer. */ 191 typedef void (*usbhc_iface_transfer_out_callback_t)(ddf_fun_t *, 192 int, void *); 164 typedef void (*usbhc_iface_transfer_out_callback_t)(ddf_fun_t *, int, void *); 193 165 194 166 /** Callback for incoming transfer. */ 195 167 typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *, 196 168 int, size_t, void *); 197 198 199 /** Out transfer processing function prototype. */200 typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t,201 void *, size_t,202 usbhc_iface_transfer_out_callback_t, void *);203 204 /** Setup transfer processing function prototype. @deprecated */205 typedef usbhc_iface_transfer_out_t usbhc_iface_transfer_setup_t;206 207 /** In transfer processing function prototype. */208 typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t,209 void *, size_t,210 usbhc_iface_transfer_in_callback_t, void *);211 169 212 170 /** USB host controller communication interface. */ … … 223 181 usb_direction_t); 224 182 225 usbhc_iface_transfer_out_t interrupt_out;226 usbhc_iface_transfer_in_t interrupt_in;183 int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t, 184 usbhc_iface_transfer_in_callback_t, void *); 227 185 228 usbhc_iface_transfer_out_t bulk_out; 229 usbhc_iface_transfer_in_t bulk_in; 230 231 int (*control_write)(ddf_fun_t *, usb_target_t, 232 void *, size_t, void *, size_t, 233 usbhc_iface_transfer_out_callback_t, void *); 234 235 int (*control_read)(ddf_fun_t *, usb_target_t, 236 void *, size_t, void *, size_t, 237 usbhc_iface_transfer_in_callback_t, void *); 186 int (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *, 187 size_t, usbhc_iface_transfer_out_callback_t, void *); 238 188 } usbhc_iface_t; 239 189
Note:
See TracChangeset
for help on using the changeset viewer.