summaryrefslogtreecommitdiff
path: root/sys/dev/pci/usb_pci.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-23 03:23:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-23 03:23:02 +0000
commit919eeefecc1cb34d2918ba0ee1c3624a9f326def (patch)
treef7f71bbb26ba66851279c2e98da8ff38cf9bea6b /sys/dev/pci/usb_pci.h
parent9a602279ea7954459111471ffe3834823a8b9685 (diff)
ehci support; hacked into working shape by jonathon@gateway.zenbu.net
Diffstat (limited to 'sys/dev/pci/usb_pci.h')
-rw-r--r--sys/dev/pci/usb_pci.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys/dev/pci/usb_pci.h b/sys/dev/pci/usb_pci.h
new file mode 100644
index 00000000000..99a5fd91dff
--- /dev/null
+++ b/sys/dev/pci/usb_pci.h
@@ -0,0 +1,57 @@
+/* $NetBSD: usb_pci.h,v 1.3 2002/02/14 21:58:30 augustss Exp $ */
+
+/*
+ * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Lennart Augustsson (lennart@augustsson.net) at
+ * Carlstedt Research & Technology.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * EHCI controllers need a way to find their compainion controllers
+ * so we keep track of them as we attach.
+ */
+
+struct usb_pci {
+ TAILQ_ENTRY(usb_pci) next;
+ u_int bus;
+ u_int device;
+ u_int function;
+ struct usbd_bus *usb;
+};
+
+TAILQ_HEAD(usb_pci_alldevs, usb_pci);
+extern struct usb_pci_alldevs ehci_pci_alldevs;
+
+void usb_pci_add(struct usb_pci *, struct pci_attach_args *, struct usbd_bus *);
+void usb_pci_rem(struct usb_pci *);