Changeset 1e647c7d in mainline for uspace/lib/drv/include/usbhc_iface.h
- Timestamp:
- 2011-09-13T14:24:16Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d915b7
- Parents:
- e3f6304
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
re3f6304 r1e647c7d 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. … … 187 150 IPC_M_USBHC_UNREGISTER_ENDPOINT, 188 151 152 /** Issue control WRITE transfer. 153 * See explanation at usb_iface_funcs_t (OUT transaction) for 154 * call parameters. 155 * This call is immediately followed by two IPC data writes 156 * from the caller (setup packet and actual data). 157 */ 158 IPC_M_USBHC_CONTROL_WRITE, 159 160 /** Issue control READ transfer. 161 * See explanation at usb_iface_funcs_t (IN transaction) for 162 * call parameters. 163 * This call is immediately followed by IPC data write from the caller 164 * (setup packet) and IPC data read (buffer that was read). 165 */ 166 IPC_M_USBHC_CONTROL_READ, 167 168 /** Get data from device. 169 * See explanation at usb_iface_funcs_t (IN transaction). 170 */ 189 171 IPC_M_USBHC_DATA_READ, 190 172 173 /** Send data to device. 174 * See explanation at usb_iface_funcs_t (OUT transaction). 175 */ 191 176 IPC_M_USBHC_DATA_WRITE, 192 177 } usbhc_iface_funcs_t; … … 199 184 typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *, 200 185 int, size_t, void *); 201 202 203 /** Out transfer processing function prototype. */204 typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t,205 void *, size_t,206 usbhc_iface_transfer_out_callback_t, void *);207 208 /** Setup transfer processing function prototype. @deprecated */209 typedef usbhc_iface_transfer_out_t usbhc_iface_transfer_setup_t;210 211 /** In transfer processing function prototype. */212 typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t,213 void *, size_t,214 usbhc_iface_transfer_in_callback_t, void *);215 186 216 187 /** USB host controller communication interface. */ … … 227 198 usb_direction_t); 228 199 229 usbhc_iface_transfer_out_t interrupt_out;230 usbhc_iface_transfer_in_t interrupt_in;231 232 usbhc_iface_transfer_out_t bulk_out;233 usbhc_iface_transfer_in_t bulk_in;234 235 int (*control_write)(ddf_fun_t *, usb_target_t,236 void *, size_t, void *, size_t,237 usbhc_iface_transfer_out_callback_t, void *);238 239 int (*control_read)(ddf_fun_t *, usb_target_t,240 void *, size_t, void *, size_t,241 usbhc_iface_transfer_in_callback_t, void *);242 243 200 int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t, 244 201 usbhc_iface_transfer_in_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.