Revision d4c4e6fd hw/usb-ohci.c
b/hw/usb-ohci.c | ||
---|---|---|
599 | 599 |
{ |
600 | 600 |
int dir; |
601 | 601 |
size_t len = 0; |
602 |
#ifdef DEBUG_ISOCH |
|
602 | 603 |
const char *str = NULL; |
604 |
#endif |
|
603 | 605 |
int pid; |
604 | 606 |
int ret; |
605 | 607 |
int i; |
... | ... | |
663 | 665 |
dir = OHCI_BM(ed->flags, ED_D); |
664 | 666 |
switch (dir) { |
665 | 667 |
case OHCI_TD_DIR_IN: |
668 |
#ifdef DEBUG_ISOCH |
|
666 | 669 |
str = "in"; |
670 |
#endif |
|
667 | 671 |
pid = USB_TOKEN_IN; |
668 | 672 |
break; |
669 | 673 |
case OHCI_TD_DIR_OUT: |
674 |
#ifdef DEBUG_ISOCH |
|
670 | 675 |
str = "out"; |
676 |
#endif |
|
671 | 677 |
pid = USB_TOKEN_OUT; |
672 | 678 |
break; |
673 | 679 |
case OHCI_TD_DIR_SETUP: |
680 |
#ifdef DEBUG_ISOCH |
|
674 | 681 |
str = "setup"; |
682 |
#endif |
|
675 | 683 |
pid = USB_TOKEN_SETUP; |
676 | 684 |
break; |
677 | 685 |
default: |
... | ... | |
834 | 842 |
{ |
835 | 843 |
int dir; |
836 | 844 |
size_t len = 0; |
845 |
#ifdef DEBUG_PACKET |
|
837 | 846 |
const char *str = NULL; |
847 |
#endif |
|
838 | 848 |
int pid; |
839 | 849 |
int ret; |
840 | 850 |
int i; |
... | ... | |
871 | 881 |
|
872 | 882 |
switch (dir) { |
873 | 883 |
case OHCI_TD_DIR_IN: |
884 |
#ifdef DEBUG_PACKET |
|
874 | 885 |
str = "in"; |
886 |
#endif |
|
875 | 887 |
pid = USB_TOKEN_IN; |
876 | 888 |
break; |
877 | 889 |
case OHCI_TD_DIR_OUT: |
890 |
#ifdef DEBUG_PACKET |
|
878 | 891 |
str = "out"; |
892 |
#endif |
|
879 | 893 |
pid = USB_TOKEN_OUT; |
880 | 894 |
break; |
881 | 895 |
case OHCI_TD_DIR_SETUP: |
896 |
#ifdef DEBUG_PACKET |
|
882 | 897 |
str = "setup"; |
898 |
#endif |
|
883 | 899 |
pid = USB_TOKEN_SETUP; |
884 | 900 |
break; |
885 | 901 |
default: |
Also available in: Unified diff