2001-08-20 11:16:35 +04:00
|
|
|
/* $NetBSD: ehcireg.h,v 1.3 2001/08/20 07:16:35 gehenna Exp $ */
|
2000-12-24 09:39:01 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
* by Lennart Augustsson (lennart@augustsson.net).
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2000-12-24 09:42:34 +03:00
|
|
|
/*
|
2001-08-20 11:16:35 +04:00
|
|
|
* EHCI 0.96 spec can be found at
|
|
|
|
* http://developer.intel.com/technology/usb/download/ehci-r096.pdf
|
2000-12-24 09:42:34 +03:00
|
|
|
*/
|
|
|
|
|
2000-12-24 09:39:01 +03:00
|
|
|
#ifndef _DEV_PCI_EHCIREG_H_
|
|
|
|
#define _DEV_PCI_EHCIREG_H_
|
|
|
|
|
|
|
|
/*** PCI config registers ***/
|
|
|
|
|
|
|
|
#define PCI_USBREV 0x60 /* USB protocol revision */
|
|
|
|
#define PCI_USBREV_MASK 0xff
|
|
|
|
#define PCI_USBREV_PRE_1_0 0x00
|
|
|
|
#define PCI_USBREV_1_0 0x10
|
|
|
|
#define PCI_USBREV_1_1 0x11
|
|
|
|
#define PCI_USBREV_2_0 0x20
|
|
|
|
|
|
|
|
#define PCI_CBMEM 0x10 /* configuration base MEM */
|
|
|
|
|
|
|
|
#define PCI_INTERFACE_EHCI 0x20
|
|
|
|
|
|
|
|
#define PCI_EHCI_FLADJ 0x61 /* Frame length adj, SOF counter = 59488+6*fladj */
|
|
|
|
|
|
|
|
#define PCI_EHCI_PORTWAKECAP 0x62
|
|
|
|
|
|
|
|
/*** EHCI registers ***/
|
|
|
|
|
|
|
|
#define EHCI_CAPLENGTH 0x00 /* 1 Capability register length field */
|
|
|
|
#define EHCI_HCIVERSION 0x02 /* 2 Interface version number */
|
|
|
|
#define EHCI_HCSPARAMS 0x04 /* 4 Structural parameters */
|
|
|
|
#define EHCI_HCCPARAMS 0x08 /* 4 Capability parameters */
|
|
|
|
#define EHCI_HCSP_PORTROUTE 0x0c /* 15 Companion port route description */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _DEV_PCI_EHCIREG_H_ */
|