Changes in uspace/lib/drv/include/usbhc_iface.h [b36e5de2:6427cf67] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
rb36e5de2 r6427cf67 53 53 * - argument #1 is target address 54 54 * - argument #2 is target endpoint 55 * - argument #3 is max packet size of the endpoint55 * - argument #3 is buffer size 56 56 * - this call is immediately followed by IPC data write (from caller) 57 57 * - the initial call (and the whole transaction) is answer after the … … 66 66 * - argument #1 is target address 67 67 * - argument #2 is target endpoint 68 * - argument #3 is max packet size of the endpoint68 * - argument #3 is buffer size 69 69 * - this call is immediately followed by IPC data read (async version) 70 70 * - the call is not answered until the device returns some data (or until … … 153 153 IPC_M_USBHC_INTERRUPT_IN, 154 154 155 156 /** Start WRITE control transfer. 157 * See explanation at usb_iface_funcs_t (OUT transaction). 158 */ 159 IPC_M_USBHC_CONTROL_WRITE_SETUP, 160 161 /** Send control-transfer data to device. 162 * See explanation at usb_iface_funcs_t (OUT transaction). 163 */ 164 IPC_M_USBHC_CONTROL_WRITE_DATA, 165 166 /** Terminate WRITE control transfer. 167 * See explanation at usb_iface_funcs_t (NO-DATA transaction). 168 */ 169 IPC_M_USBHC_CONTROL_WRITE_STATUS, 170 171 172 173 /** Start READ control transfer. 174 * See explanation at usb_iface_funcs_t (OUT transaction). 175 */ 176 IPC_M_USBHC_CONTROL_READ_SETUP, 177 178 /** Get control-transfer data from device. 179 * See explanation at usb_iface_funcs_t (IN transaction). 180 */ 181 IPC_M_USBHC_CONTROL_READ_DATA, 182 183 /** Terminate READ control transfer. 184 * See explanation at usb_iface_funcs_t (NO-DATA transaction). 185 */ 186 IPC_M_USBHC_CONTROL_READ_STATUS, 187 155 188 /** Issue control WRITE transfer. 156 189 * See explanation at usb_iface_funcs_t (OUT transaction) for … … 161 194 IPC_M_USBHC_CONTROL_WRITE, 162 195 163 /** Issue control READtransfer.196 /** Issue control WRITE transfer. 164 197 * See explanation at usb_iface_funcs_t (IN transaction) for 165 198 * call parameters. 166 * This call is immediately followed by IPC data write from the caller 167 * (setup packet) and IPC data read (buffer that was read). 199 * This call is immediately followed by IPC data read from the caller 200 * (setup packet). 201 * Actual data are retrieved through IPC_M_USBHC_GET_BUFFER. 168 202 */ 169 203 IPC_M_USBHC_CONTROL_READ, … … 182 216 183 217 /** Out transfer processing function prototype. */ 184 typedef int (*usbhc_iface_transfer_out_t)(device_t *, usb_target_t, size_t,218 typedef int (*usbhc_iface_transfer_out_t)(device_t *, usb_target_t, 185 219 void *, size_t, 186 220 usbhc_iface_transfer_out_callback_t, void *); 187 221 188 /** Setup transfer processing function prototype. @deprecated*/222 /** Setup transfer processing function prototype. */ 189 223 typedef usbhc_iface_transfer_out_t usbhc_iface_transfer_setup_t; 190 224 191 225 /** In transfer processing function prototype. */ 192 typedef int (*usbhc_iface_transfer_in_t)(device_t *, usb_target_t, size_t,226 typedef int (*usbhc_iface_transfer_in_t)(device_t *, usb_target_t, 193 227 void *, size_t, 194 228 usbhc_iface_transfer_in_callback_t, void *); … … 198 232 int (*tell_address)(device_t *, devman_handle_t, usb_address_t *); 199 233 200 int (*reserve_default_address)(device_t *, usb_speed_t);234 int (*reserve_default_address)(device_t *, bool); 201 235 int (*release_default_address)(device_t *); 202 int (*request_address)(device_t *, usb_speed_t, usb_address_t *);236 int (*request_address)(device_t *, bool, usb_address_t *); 203 237 int (*bind_address)(device_t *, usb_address_t, devman_handle_t); 204 238 int (*release_address)(device_t *, usb_address_t); … … 207 241 usbhc_iface_transfer_in_t interrupt_in; 208 242 243 usbhc_iface_transfer_setup_t control_write_setup; 244 usbhc_iface_transfer_out_t control_write_data; 245 int (*control_write_status)(device_t *, usb_target_t, 246 usbhc_iface_transfer_in_callback_t, void *); 247 248 usbhc_iface_transfer_setup_t control_read_setup; 249 usbhc_iface_transfer_in_t control_read_data; 250 int (*control_read_status)(device_t *, usb_target_t, 251 usbhc_iface_transfer_out_callback_t, void *); 252 209 253 int (*control_write)(device_t *, usb_target_t, 210 size_t,211 254 void *, size_t, void *, size_t, 212 255 usbhc_iface_transfer_out_callback_t, void *); 213 256 214 257 int (*control_read)(device_t *, usb_target_t, 215 size_t,216 258 void *, size_t, void *, size_t, 217 259 usbhc_iface_transfer_in_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.