summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ohcivar.h
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-07-15 23:12:54 +0000
committerjmg <jmg@FreeBSD.org>2003-07-15 23:12:54 +0000
commit32a9aeec73a3c286b3d0e84c1c16ee65b0db3704 (patch)
tree82afe6d165a48c847ccca6c7287b312cf8c433d9 /sys/dev/usb/ohcivar.h
parentd9b36adf9db6e55ce3c1c5daac171320822b286b (diff)
downloadFreeBSD-src-32a9aeec73a3c286b3d0e84c1c16ee65b0db3704.zip
FreeBSD-src-32a9aeec73a3c286b3d0e84c1c16ee65b0db3704.tar.gz
fix support for umass and related devices on ohci. This is a partial
sync of the NetBSD code. fix isochornous support for ohci. This gets webcams like my OV511 working on sparc64. PR: kern/52589 Submitted by: Bruce R. Montague (isochonous support) Reviewed by: joe among others
Diffstat (limited to 'sys/dev/usb/ohcivar.h')
-rw-r--r--sys/dev/usb/ohcivar.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/ohcivar.h b/sys/dev/usb/ohcivar.h
index 6b50122..445c346 100644
--- a/sys/dev/usb/ohcivar.h
+++ b/sys/dev/usb/ohcivar.h
@@ -70,6 +70,8 @@ typedef struct ohci_soft_itd {
LIST_ENTRY(ohci_soft_itd) hnext;
usbd_xfer_handle xfer;
u_int16_t flags;
+#define OHCI_ITD_ACTIVE 0x0010 /* Hardware op in progress */
+#define OHCI_ITD_INTFIN 0x0020 /* Hw completion interrupt seen.*/
#ifdef DIAGNOSTIC
char isdone;
#endif
@@ -149,9 +151,11 @@ typedef struct ohci_softc {
struct ohci_xfer {
struct usbd_xfer xfer;
struct usb_task abort_task;
+ u_int32_t ohci_xfer_flags;
};
+#define OHCI_ISOC_DIRTY 0x01
-#define OXFER(xfer) ((struct ehci_xfer *)(xfer))
+#define OXFER(xfer) ((struct ohci_xfer *)(xfer))
usbd_status ohci_init(ohci_softc_t *);
int ohci_intr(void *);
OpenPOWER on IntegriCloud