Changeset e50cd7f in mainline for uspace/lib/drv/include/usbhc_iface.h
- Timestamp:
- 2011-04-17T19:17:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63517c2, cfbbe1d3
- Parents:
- ef354b6 (diff), 8595577b (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
ref354b6 re50cd7f 66 66 * - argument #1 is target address 67 67 * - argument #2 is target endpoint 68 * - argument #3 is max packet size of the endpoint69 68 * - this call is immediately followed by IPC data read (async version) 70 69 * - the call is not answered until the device returns some data (or until … … 85 84 */ 86 85 typedef enum { 87 /** Reserve usage of default address.88 * This call informs the host controller that the caller will be89 * using default USB address. It is duty of the HC driver to ensure90 * that only single entity will have it reserved.91 * The address is returned via IPC_M_USBHC_RELEASE_DEFAULT_ADDRESS.92 * The caller can start using the address after receiving EOK93 * answer.94 */95 IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS,96 97 /** Release usage of default address.98 * @see IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS99 */100 IPC_M_USBHC_RELEASE_DEFAULT_ADDRESS,101 102 86 /** Asks for address assignment by host controller. 103 87 * Answer: … … 169 153 /** Register endpoint attributes at host controller. 170 154 * This is used to reserve portion of USB bandwidth. 155 * When speed is invalid, speed of the device is used. 171 156 * Parameters: 172 * - USB address + endpoint number (ADDR * 256 + EP) 173 * - transfer type + direction (TYPE * 256 + DIR) 174 * - maximum packet size 175 * - interval (in milliseconds) 157 * - USB address + endpoint number 158 * - packed as ADDR << 16 + EP 159 * - speed + transfer type + direction 160 * - packed as ( SPEED << 8 + TYPE ) << 8 + DIR 161 * - maximum packet size + interval (in milliseconds) 162 * - packed as MPS << 16 + INT 176 163 * Answer: 177 164 * - EOK - reservation successful … … 202 189 203 190 /** Out transfer processing function prototype. */ 204 typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t, size_t,191 typedef int (*usbhc_iface_transfer_out_t)(ddf_fun_t *, usb_target_t, 205 192 void *, size_t, 206 193 usbhc_iface_transfer_out_callback_t, void *); … … 210 197 211 198 /** In transfer processing function prototype. */ 212 typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t, size_t,199 typedef int (*usbhc_iface_transfer_in_t)(ddf_fun_t *, usb_target_t, 213 200 void *, size_t, 214 201 usbhc_iface_transfer_in_callback_t, void *); … … 222 209 int (*release_address)(ddf_fun_t *, usb_address_t); 223 210 224 int (*register_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t, 211 int (*register_endpoint)(ddf_fun_t *, 212 usb_address_t, usb_speed_t, usb_endpoint_t, 225 213 usb_transfer_type_t, usb_direction_t, size_t, unsigned int); 226 214 int (*unregister_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t, … … 234 222 235 223 int (*control_write)(ddf_fun_t *, usb_target_t, 236 size_t,237 224 void *, size_t, void *, size_t, 238 225 usbhc_iface_transfer_out_callback_t, void *); 239 226 240 227 int (*control_read)(ddf_fun_t *, usb_target_t, 241 size_t,242 228 void *, size_t, void *, size_t, 243 229 usbhc_iface_transfer_in_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.