summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ehcivar.h
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2005-09-18 11:45:39 +0000
committernetchild <netchild@FreeBSD.org>2005-09-18 11:45:39 +0000
commitbf4ea1996568104cfe0d03372a6517d88da5daf4 (patch)
treee1042fd346befb9d267b3e6dc7125760c86f43ae /sys/dev/usb/ehcivar.h
parent504eccc1e52cb7efe503c8f6f05d48e3cfb9fd54 (diff)
downloadFreeBSD-src-bf4ea1996568104cfe0d03372a6517d88da5daf4.zip
FreeBSD-src-bf4ea1996568104cfe0d03372a6517d88da5daf4.tar.gz
ehcivar.h:
Synchronise with NetBSD upto rev 1.19: - Allow 32 chars in the saved vendor string. - Some NetBSD-only changes. - Some missing parts (define, variable). ehci_pci.c: Add vendor ids for ATI and Philips. Add identification strings for the following: o ALi's M5239 o AMD 8111 o ATI SB200, SB400 o Intel 6300ESB, ICH4, ICH5, ICH7 o NVIDIA nForce 2, nForce 3, nForce 4 o Philips ISP156x ehcireg.h: We're at the same level as rev 1.18 from NetBSD. usb_port.h: NetBSD/OpenBSD specific things Obtained from: NetBSD via DragonFly No comment from: usb@
Diffstat (limited to 'sys/dev/usb/ehcivar.h')
-rw-r--r--sys/dev/usb/ehcivar.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/usb/ehcivar.h b/sys/dev/usb/ehcivar.h
index fe791ec..e6f2a0a 100644
--- a/sys/dev/usb/ehcivar.h
+++ b/sys/dev/usb/ehcivar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ehcivar.h,v 1.12 2001/12/31 12:16:57 augustss Exp $ */
+/* $NetBSD: ehcivar.h,v 1.19 2005/04/29 15:04:29 augustss Exp $ */
/* $FreeBSD$ */
/*-
@@ -85,6 +85,7 @@ struct ehci_soft_islot {
#define EHCI_FRAMELIST_MAXCOUNT 1024
#define EHCI_IPOLLRATES 8 /* Poll rates (1ms, 2, 4, 8 ... 128) */
#define EHCI_INTRQHS ((1 << EHCI_IPOLLRATES) - 1)
+#define EHCI_MAX_POLLRATE (1 << (EHCI_IPOLLRATES - 1))
#define EHCI_IQHIDX(lev, pos) \
((((pos) & ((1 << (lev)) - 1)) | (1 << (lev))) - 1)
#define EHCI_ILEV_IVAL(lev) (1 << (lev))
@@ -108,7 +109,7 @@ typedef struct ehci_softc {
#endif
u_int sc_offs; /* offset to operational regs */
- char sc_vendor[16]; /* vendor string for root hub */
+ char sc_vendor[32]; /* vendor string for root hub */
int sc_id_vendor; /* vendor ID for root hub */
u_int32_t sc_cmd; /* shadow of cmd reg during suspend */
@@ -124,6 +125,7 @@ typedef struct ehci_softc {
usb_dma_t sc_fldma;
ehci_link_t *sc_flist;
u_int sc_flsize;
+ u_int sc_rand; /* XXX need proper intr scheduling */
struct ehci_soft_islot sc_islots[EHCI_INTRQHS];
@@ -154,6 +156,9 @@ typedef struct ehci_softc {
device_ptr_t sc_child; /* /dev/usb# device */
#endif
char sc_dying;
+#if defined(__NetBSD__)
+ struct usb_dma_reserve sc_dma_reserve;
+#endif
} ehci_softc_t;
#define EREAD1(sc, a) bus_space_read_1((sc)->iot, (sc)->ioh, (a))
OpenPOWER on IntegriCloud