From f7d8cf85e38f0bfd97dfd113dbe10252560fa3d6 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 14 Oct 2010 21:41:08 +0000 Subject: [PATCH] Remove unused EHCI register definition. Define reserved EHCI register. Approved by: thompsa (mentor) --- sys/dev/usb/controller/ehci_pci.c | 2 -- sys/dev/usb/controller/ehcireg.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/usb/controller/ehci_pci.c b/sys/dev/usb/controller/ehci_pci.c index c8d2d61a670..7e87762c32a 100644 --- a/sys/dev/usb/controller/ehci_pci.c +++ b/sys/dev/usb/controller/ehci_pci.c @@ -93,8 +93,6 @@ __FBSDID("$FreeBSD$"); #define PCI_EHCI_VENDORID_NVIDIA2 0x10DE #define PCI_EHCI_VENDORID_VIA 0x1106 -#define PCI_EHCI_BASE_REG 0x10 - static void ehci_pci_takecontroller(device_t self); static device_probe_t ehci_pci_probe; diff --git a/sys/dev/usb/controller/ehcireg.h b/sys/dev/usb/controller/ehcireg.h index 4da80c0488e..ab81f08cf30 100644 --- a/sys/dev/usb/controller/ehcireg.h +++ b/sys/dev/usb/controller/ehcireg.h @@ -55,7 +55,7 @@ /* EHCI capability registers */ #define EHCI_CAPLENGTH 0x00 /* RO Capability register length field */ -/* reserved 0x01 */ +#define EHCI_RESERVED 0x01 /* Reserved register */ #define EHCI_HCIVERSION 0x02 /* RO Interface version number */ #define EHCI_HCSPARAMS 0x04 /* RO Structural parameters */ #define EHCI_HCS_DEBUGPORT(x) (((x) >> 20) & 0xf)