Changeset 7dfc06fa in mainline for uspace/drv/ohci/iface.c
- Timestamp:
- 2011-04-08T18:08:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c6cb76d
- Parents:
- c1b1944
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/iface.c
rc1b1944 r7dfc06fa 196 196 * @param[in] fun Device function the action was invoked on. 197 197 * @param[in] target Target pipe (address and endpoint number) specification. 198 * @param[in] max_packet_size Max packet size for the transfer.199 198 * @param[in] data Data to be sent (in USB endianess, allocated and deallocated 200 199 * by the caller). … … 205 204 */ 206 205 static int interrupt_out( 207 ddf_fun_t *fun, usb_target_t target, size_t max_packet_size,void *data,206 ddf_fun_t *fun, usb_target_t target, void *data, 208 207 size_t size, usbhc_iface_transfer_out_callback_t callback, void *arg) 209 208 { 210 209 assert(fun); 210 211 // FIXME: get from endpoint manager 212 size_t max_packet_size = 8; 213 211 214 hc_t *hc = fun_to_hc(fun); 212 215 assert(hc); … … 239 242 * @param[in] fun Device function the action was invoked on. 240 243 * @param[in] target Target pipe (address and endpoint number) specification. 241 * @param[in] max_packet_size Max packet size for the transfer.242 244 * @param[in] data Buffer where to store the data (in USB endianess, 243 245 * allocated and deallocated by the caller). … … 248 250 */ 249 251 static int interrupt_in( 250 ddf_fun_t *fun, usb_target_t target, size_t max_packet_size,void *data,252 ddf_fun_t *fun, usb_target_t target, void *data, 251 253 size_t size, usbhc_iface_transfer_in_callback_t callback, void *arg) 252 254 { 253 255 assert(fun); 256 257 // FIXME: get from endpoint manager 258 size_t max_packet_size = 8; 259 254 260 hc_t *hc = fun_to_hc(fun); 255 261 assert(hc); … … 281 287 * @param[in] fun Device function the action was invoked on. 282 288 * @param[in] target Target pipe (address and endpoint number) specification. 283 * @param[in] max_packet_size Max packet size for the transfer.284 289 * @param[in] data Data to be sent (in USB endianess, allocated and deallocated 285 290 * by the caller). … … 290 295 */ 291 296 static int bulk_out( 292 ddf_fun_t *fun, usb_target_t target, size_t max_packet_size,void *data,297 ddf_fun_t *fun, usb_target_t target, void *data, 293 298 size_t size, usbhc_iface_transfer_out_callback_t callback, void *arg) 294 299 { 295 300 assert(fun); 301 302 // FIXME: get from endpoint manager 303 size_t max_packet_size = 8; 304 296 305 hc_t *hc = fun_to_hc(fun); 297 306 assert(hc); … … 324 333 * @param[in] fun Device function the action was invoked on. 325 334 * @param[in] target Target pipe (address and endpoint number) specification. 326 * @param[in] max_packet_size Max packet size for the transfer.327 335 * @param[in] data Buffer where to store the data (in USB endianess, 328 336 * allocated and deallocated by the caller). … … 333 341 */ 334 342 static int bulk_in( 335 ddf_fun_t *fun, usb_target_t target, size_t max_packet_size,void *data,343 ddf_fun_t *fun, usb_target_t target, void *data, 336 344 size_t size, usbhc_iface_transfer_in_callback_t callback, void *arg) 337 345 { 338 346 assert(fun); 347 348 // FIXME: get from endpoint manager 349 size_t max_packet_size = 8; 350 339 351 hc_t *hc = fun_to_hc(fun); 340 352 assert(hc); … … 366 378 * @param[in] fun Device function the action was invoked on. 367 379 * @param[in] target Target pipe (address and endpoint number) specification. 368 * @param[in] max_packet_size Max packet size for the transfer.369 380 * @param[in] setup_packet Setup packet buffer (in USB endianess, allocated 370 381 * and deallocated by the caller). … … 378 389 */ 379 390 static int control_write( 380 ddf_fun_t *fun, usb_target_t target, size_t max_packet_size,391 ddf_fun_t *fun, usb_target_t target, 381 392 void *setup_data, size_t setup_size, void *data, size_t size, 382 393 usbhc_iface_transfer_out_callback_t callback, void *arg) 383 394 { 384 395 assert(fun); 396 397 // FIXME: get from endpoint manager 398 size_t max_packet_size = 8; 399 385 400 hc_t *hc = fun_to_hc(fun); 386 401 assert(hc); … … 417 432 * @param[in] fun Device function the action was invoked on. 418 433 * @param[in] target Target pipe (address and endpoint number) specification. 419 * @param[in] max_packet_size Max packet size for the transfer.420 434 * @param[in] setup_packet Setup packet buffer (in USB endianess, allocated 421 435 * and deallocated by the caller). … … 429 443 */ 430 444 static int control_read( 431 ddf_fun_t *fun, usb_target_t target, size_t max_packet_size,445 ddf_fun_t *fun, usb_target_t target, 432 446 void *setup_data, size_t setup_size, void *data, size_t size, 433 447 usbhc_iface_transfer_in_callback_t callback, void *arg) 434 448 { 435 449 assert(fun); 450 451 // FIXME: get from endpoint manager 452 size_t max_packet_size = 8; 453 436 454 hc_t *hc = fun_to_hc(fun); 437 455 assert(hc);
Note:
See TracChangeset
for help on using the changeset viewer.