diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-04-06 00:22:49 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-04-06 00:22:49 +0000 |
commit | bc1f34ac24682020347369ad5489ddc8676c8684 (patch) | |
tree | 003eb8e89f0e84898017ea74643842a05bc658c3 /sys/dev/usb/controller | |
parent | 6f5bda37903208bc8a3c7edbc195e9db50cb271c (diff) | |
download | FreeBSD-src-bc1f34ac24682020347369ad5489ddc8676c8684.zip FreeBSD-src-bc1f34ac24682020347369ad5489ddc8676c8684.tar.gz |
Provide a better commit log for r190735, forced by making a whitespace change.
Refactor how we interface with the root HUB. This is achieved by making a
direct call from usb2_do_request to the host controller for root hub requests,
this call will perform the controller specific register read/writes and return
the error code.
This cuts out a lot of code in the host controller files and saves one thread
per USB bus.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/controller')
-rw-r--r-- | sys/dev/usb/controller/at91dci.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/at91dci.h | 4 | ||||
-rw-r--r-- | sys/dev/usb/controller/atmegadci.c | 5 | ||||
-rw-r--r-- | sys/dev/usb/controller/atmegadci.h | 4 | ||||
-rw-r--r-- | sys/dev/usb/controller/ehci.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/ehci.h | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/musb_otg.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/controller/musb_otg.h | 4 | ||||
-rw-r--r-- | sys/dev/usb/controller/ohci.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/ohci.h | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/uhci.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/uhci.h | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/usb_controller.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/controller/uss820dci.c | 2 |
14 files changed, 19 insertions, 20 deletions
diff --git a/sys/dev/usb/controller/at91dci.c b/sys/dev/usb/controller/at91dci.c index af3eb5a..0df84e2 100644 --- a/sys/dev/usb/controller/at91dci.c +++ b/sys/dev/usb/controller/at91dci.c @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); /* * NOTE: The "fifo_bank" is not reset in hardware when the endpoint is - * reset ! + * reset. * * NOTE: When the chip detects BUS-reset it will also reset the * endpoints, Function-address and more. diff --git a/sys/dev/usb/controller/at91dci.h b/sys/dev/usb/controller/at91dci.h index 5b7e35d..8a745c8 100644 --- a/sys/dev/usb/controller/at91dci.h +++ b/sys/dev/usb/controller/at91dci.h @@ -27,8 +27,8 @@ */ /* - * USB Device Port (UDP) register definition, based on - * "AT91RM9200.h" provided by ATMEL. + * USB Device Port (UDP) register definition, based on "AT91RM9200.h" provided + * by ATMEL. */ #ifndef _AT9100_DCI_H_ diff --git a/sys/dev/usb/controller/atmegadci.c b/sys/dev/usb/controller/atmegadci.c index dcb66be..b6fb4ca 100644 --- a/sys/dev/usb/controller/atmegadci.c +++ b/sys/dev/usb/controller/atmegadci.c @@ -27,9 +27,8 @@ __FBSDID("$FreeBSD$"); */ /* - * This file contains the driver for the ATMEGA series USB OTG - * Controller. This driver currently only supports the DCI mode of the - * USB hardware. + * This file contains the driver for the ATMEGA series USB OTG Controller. This + * driver currently only supports the DCI mode of the USB hardware. */ /* diff --git a/sys/dev/usb/controller/atmegadci.h b/sys/dev/usb/controller/atmegadci.h index 6f8c656..af61eeb 100644 --- a/sys/dev/usb/controller/atmegadci.h +++ b/sys/dev/usb/controller/atmegadci.h @@ -25,8 +25,8 @@ */ /* - * USB Device Port register definitions, copied from ATMEGA - * documentation provided by ATMEL. + * USB Device Port register definitions, copied from ATMEGA documentation + * provided by ATMEL. */ #ifndef _ATMEGADCI_H_ diff --git a/sys/dev/usb/controller/ehci.c b/sys/dev/usb/controller/ehci.c index fe7bf70..a1ee20d 100644 --- a/sys/dev/usb/controller/ehci.c +++ b/sys/dev/usb/controller/ehci.c @@ -39,7 +39,7 @@ */ /* - * TODO: + * TODO: * 1) command failures are not recovered correctly */ diff --git a/sys/dev/usb/controller/ehci.h b/sys/dev/usb/controller/ehci.h index d69891b..0f3580f 100644 --- a/sys/dev/usb/controller/ehci.h +++ b/sys/dev/usb/controller/ehci.h @@ -40,7 +40,7 @@ #define EHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128) -/* PCI config registers */ +/* PCI config registers */ #define PCI_CBMEM 0x10 /* configuration base MEM */ #define PCI_INTERFACE_EHCI 0x20 #define PCI_USBREV 0x60 /* RO USB protocol revision */ diff --git a/sys/dev/usb/controller/musb_otg.c b/sys/dev/usb/controller/musb_otg.c index ca87eaf..950e46c 100644 --- a/sys/dev/usb/controller/musb_otg.c +++ b/sys/dev/usb/controller/musb_otg.c @@ -25,8 +25,8 @@ */ /* - * Thanks to Mentor Graphics for providing a reference driver for this - * USB chip at their homepage. + * Thanks to Mentor Graphics for providing a reference driver for this USB chip + * at their homepage. */ /* diff --git a/sys/dev/usb/controller/musb_otg.h b/sys/dev/usb/controller/musb_otg.h index 8d0e668..2dd2ce3 100644 --- a/sys/dev/usb/controller/musb_otg.h +++ b/sys/dev/usb/controller/musb_otg.h @@ -25,8 +25,8 @@ */ /* - * This header file defines the registers of the Mentor Graphics - * USB OnTheGo Inventra chip. + * This header file defines the registers of the Mentor Graphics USB OnTheGo + * Inventra chip. */ #ifndef _MUSB2_OTG_H_ diff --git a/sys/dev/usb/controller/ohci.c b/sys/dev/usb/controller/ohci.c index c412253..e22b37f 100644 --- a/sys/dev/usb/controller/ohci.c +++ b/sys/dev/usb/controller/ohci.c @@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$"); * USB Open Host Controller driver. * * OHCI spec: http://www.compaq.com/productinfo/development/openhci.html - * USB spec: http://www.usb.org/developers/docs/usbspec.zip + * USB spec: http://www.usb.org/developers/docs/usbspec.zip */ #include <dev/usb/usb.h> diff --git a/sys/dev/usb/controller/ohci.h b/sys/dev/usb/controller/ohci.h index 8586cac..322324a 100644 --- a/sys/dev/usb/controller/ohci.h +++ b/sys/dev/usb/controller/ohci.h @@ -41,7 +41,7 @@ #define OHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128) -/* PCI config registers */ +/* PCI config registers */ #define PCI_CBMEM 0x10 /* configuration base memory */ #define PCI_INTERFACE_OHCI 0x10 diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c index 59e2986..580f907 100644 --- a/sys/dev/usb/controller/uhci.c +++ b/sys/dev/usb/controller/uhci.c @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$"); * Handles e.g. PIIX3 and PIIX4. * * UHCI spec: http://developer.intel.com/design/USB/UHCI11D.htm - * USB spec: http://www.usb.org/developers/docs/usbspec.zip + * USB spec: http://www.usb.org/developers/docs/usbspec.zip * PIIXn spec: ftp://download.intel.com/design/intarch/datashts/29055002.pdf * ftp://download.intel.com/design/intarch/datashts/29056201.pdf */ diff --git a/sys/dev/usb/controller/uhci.h b/sys/dev/usb/controller/uhci.h index 652c6dc..64a80cf 100644 --- a/sys/dev/usb/controller/uhci.h +++ b/sys/dev/usb/controller/uhci.h @@ -41,7 +41,7 @@ #define UHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128) -/* PCI config registers */ +/* PCI config registers */ #define PCI_USBREV 0x60 /* USB protocol revision */ #define PCI_USB_REV_MASK 0xff #define PCI_USB_REV_PRE_1_0 0x00 diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index 33df798..77ff430 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -41,7 +41,7 @@ #include <dev/usb/usb_controller.h> #include <dev/usb/usb_bus.h> -/* function prototypes */ +/* function prototypes */ static device_probe_t usb2_probe; static device_attach_t usb2_attach; diff --git a/sys/dev/usb/controller/uss820dci.c b/sys/dev/usb/controller/uss820dci.c index 2cd04c1..b5b55a1 100644 --- a/sys/dev/usb/controller/uss820dci.c +++ b/sys/dev/usb/controller/uss820dci.c @@ -29,7 +29,7 @@ * This file contains the driver for the USS820 series USB Device * Controller * - * NOTE: The datasheet does not document everything! + * NOTE: The datasheet does not document everything. */ #include <dev/usb/usb.h> |