Changes in uspace/lib/drv/include/usbhc_iface.h [1998bcd:b7d8fd9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
r1998bcd rb7d8fd9 66 66 * - argument #1 is target address 67 67 * - argument #2 is target endpoint 68 * - argument #3 is max packet size of the endpoint 68 69 * - this call is immediately followed by IPC data read (async version) 69 70 * - the call is not answered until the device returns some data (or until … … 168 169 /** Register endpoint attributes at host controller. 169 170 * This is used to reserve portion of USB bandwidth. 170 * When speed is invalid, speed of the device is used.171 171 * Parameters: 172 * - USB address + endpoint number 173 * - packed as ADDR << 16 + EP 174 * - speed + transfer type + direction 175 * - packed as ( SPEED << 8 + TYPE ) << 8 + DIR 176 * - maximum packet size + interval (in milliseconds) 177 * - packed as MPS << 16 + INT 172 * - USB address + endpoint number (ADDR * 256 + EP) 173 * - transfer type + direction (TYPE * 256 + DIR) 174 * - maximum packet size 175 * - interval (in milliseconds) 178 176 * Answer: 179 177 * - EOK - reservation successful … … 204 202 205 203 /** Out transfer processing function prototype. */ 206 typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t, 204 typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t, size_t, 207 205 void *, size_t, 208 206 usbhc_iface_transfer_out_callback_t, void *); … … 212 210 213 211 /** In transfer processing function prototype. */ 214 typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t, 212 typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t, size_t, 215 213 void *, size_t, 216 214 usbhc_iface_transfer_in_callback_t, void *); … … 224 222 int (*release_address)(ddf_fun_t *, usb_address_t); 225 223 226 int (*register_endpoint)(ddf_fun_t *, 227 usb_address_t, usb_speed_t, usb_endpoint_t, 224 int (*register_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t, 228 225 usb_transfer_type_t, usb_direction_t, size_t, unsigned int); 229 226 int (*unregister_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t, … … 237 234 238 235 int (*control_write)(ddf_fun_t *, usb_target_t, 236 size_t, 239 237 void *, size_t, void *, size_t, 240 238 usbhc_iface_transfer_out_callback_t, void *); 241 239 242 240 int (*control_read)(ddf_fun_t *, usb_target_t, 241 size_t, 243 242 void *, size_t, void *, size_t, 244 243 usbhc_iface_transfer_in_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.