X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=usb%2Fhost%2Fohci.h;h=6bcd12186e64a25b45dae8a47c901938e8541199;hb=0a6c9cd0c045cc9481147531a8e3cc08aef20a98;hp=f2409788a026670d66e4c213696b3890fa8df27b;hpb=e3850e3c60ac379edf9d6fad436eeeca5718aa3a;p=ppcskel.git diff --git a/usb/host/ohci.h b/usb/host/ohci.h index f240978..6bcd121 100644 --- a/usb/host/ohci.h +++ b/usb/host/ohci.h @@ -62,23 +62,6 @@ Copyright (C) 2009 Sebastian Falbesoner #define OHCI_INTR_OC (1 << 30) /* ownership change */ #define OHCI_INTR_MIE (1 << 31) /* master interrupt enable */ -/* - * masks used with interrupt registers: - * HcInterruptStatus (intrstatus) - * HcInterruptEnable (intrenable) - * HcInterruptDisable (intrdisable) - */ -#define OHCI_INTR_SO (1 << 0) /* scheduling overrun */ -#define OHCI_INTR_WDH (1 << 1) /* writeback of done_head */ -#define OHCI_INTR_SF (1 << 2) /* start frame */ -#define OHCI_INTR_RD (1 << 3) /* resume detect */ -#define OHCI_INTR_UE (1 << 4) /* unrecoverable error */ -#define OHCI_INTR_FNO (1 << 5) /* frame number overflow */ -#define OHCI_INTR_RHSC (1 << 6) /* root hub status change */ -#define OHCI_INTR_OC (1 << 30) /* ownership change */ -#define OHCI_INTR_MIE (1 << 31) /* master interrupt enable */ - - /* For initializing controller (mask in an HCFS mode too) */ #define OHCI_CONTROL_INIT (3 << 0) #define OHCI_INTR_INIT \ @@ -166,10 +149,15 @@ struct endpoint_descriptor { struct general_td { + /* required by HC */ u32 flags; u32 cbp; u32 nexttd; u32 be; + + /* required by software */ + u32 bufaddr; + u16 buflen; } ALIGNED(16); #define OHCI_TD_BUFFER_ROUNDING 0x00040000