The USB API currently assumes that host controllers will have immediate data buffer space available in which to store the setup packet. This is true for xHCI, partially true for EHCI (which happens to have 12 bytes of padding in each transfer descriptor due to alignment requirements), and not true at all for UHCI. Include the setup packet within the I/O buffer passed to the host controller's message() method, thereby eliminating the requirement for host controllers to provide immediate data buffers. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
460 | 460 |
|
461 | 461 |
|
462 | 462 |
|
463 |
|
|
464 |
|
|
465 |
|
|
463 | 466 |
|
464 | 467 |
|
465 | 468 |
|
466 | 469 |
|
467 | 470 |
|
468 | 471 |
|
469 |
|
|
472 |
|
|
470 | 473 |
|
471 | 474 |
|
472 | 475 |
|
476 |
|
|
477 |
|
|
478 |
|
|
473 | 479 |
|
474 | 480 |
|
475 | 481 |
|
|
||
484 | 490 |
|
485 | 491 |
|
486 | 492 |
|
487 |
|
|
488 |
|
|
489 |
|
|
490 |
|
|
493 |
|
|
494 |
|
|
495 |
|
|
496 |
|
|
497 |
|
|
491 | 498 |
|
492 | 499 |
|
493 |
|
|
500 |
|
|
494 | 501 |
|
495 | 502 |
|
496 | 503 |
|
|
||
734 | 741 |
|
735 | 742 |
|
736 | 743 |
|
737 |
|
|
738 | 744 |
|
739 | 745 |
|
746 |
|
|
747 |
|
|
748 |
|
|
749 |
|
|
750 |
|
|
740 | 751 |
|
741 | 752 |
|
742 | 753 |
|
743 | 754 |
|
744 |
|
|
755 |
|
|
745 | 756 |
|
746 | 757 |
|
747 | 758 |
|
748 | 759 |
|
749 |
|
|
760 |
|
|
750 | 761 |
|
751 | 762 |
|
752 | 763 |
|
|
||
528 | 528 |
|
529 | 529 |
|
530 | 530 |
|
531 |
|
|
532 |
|
|
533 | 531 |
|
534 | 532 |
|
535 | 533 |
|
|
||
547 | 545 |
|
548 | 546 |
|
549 | 547 |
|
550 |
|
|
548 |
|
|
551 | 549 |
|
552 | 550 |
|
553 |
|
|
554 |
|
|
555 |
|
|
556 |
|
|
557 |
|
|
558 |
|
|
559 |
|
|
560 | 551 |
|
561 | 552 |
|
562 | 553 |
|
|
||
1103 | 1094 |
|
1104 | 1095 |
|
1105 | 1096 |
|
1106 |
|
|
1107 | 1097 |
|
1108 | 1098 |
|
1109 | 1099 |
|
1110 | 1100 |
|
1111 |
|
|
1112 | 1101 |
|
1113 | 1102 |
|
1114 | 1103 |
|
1115 |
|
|
1104 |
|
|
1105 |
|
|
1116 | 1106 |
|
1117 | 1107 |
|
1118 |
|
|
1108 |
|
|
1119 | 1109 |
|
1120 | 1110 |
|
1121 | 1111 |
|
1112 |
|
|
1113 |
|
|
1114 |
|
|
1122 | 1115 |
|
1123 | 1116 |
|
1124 |
|
|
1117 |
|
|
1125 | 1118 |
|
1126 | 1119 |
|
1127 | 1120 |
|
1121 |
|
|
1122 |
|
|
1128 | 1123 |
|
1129 | 1124 |
|
1130 | 1125 |
|
|
||
241 | 241 |
|
242 | 242 |
|
243 | 243 |
|
244 |
|
|
245 |
|
|
246 |
|
|
247 |
|
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
244 |
|
|
245 |
|
|
259 | 246 |
|
260 | 247 |
|
261 | 248 |
|
|
||
483 | 470 |
|
484 | 471 |
|
485 | 472 |
|
486 |
|
|
487 |
|
|
488 |
|
|
489 | 473 |
|
490 | 474 |
|
491 | 475 |
|
|
||
2472 | 2472 |
|
2473 | 2473 |
|
2474 | 2474 |
|
2475 |
|
|
2476 | 2475 |
|
2477 | 2476 |
|
2478 | 2477 |
|
2479 | 2478 |
|
2480 |
|
|
2481 | 2479 |
|
2482 | 2480 |
|
2483 |
|
|
2484 |
|
|
2481 |
|
|
2482 |
|
|
2483 |
|
|
2485 | 2484 |
|
2486 | 2485 |
|
2487 | 2486 |
|
|
||
2495 | 2494 |
|
2496 | 2495 |
|
2497 | 2496 |
|
2497 |
|
|
2498 |
|
|
2499 |
|
|
2498 | 2500 |
|
2499 | 2501 |
|
2500 | 2502 |
|
2501 | 2503 |
|
2502 | 2504 |
|
2505 |
|
|
2506 |
|
|
2503 | 2507 |
|
2504 | 2508 |
|
2505 | 2509 |
|
|
||
433 | 433 |
|
434 | 434 |
|
435 | 435 |
|
436 |
|
|
437 |
|
|
436 |
|
|
438 | 437 |
|
439 | 438 |
|
440 | 439 |
|
441 |
|
|
442 | 440 |
|
443 | 441 |
|
444 | 442 |
|