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
This commit is contained in:
parent
6f5bda3790
commit
bc1f34ac24
@ -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.
|
||||
|
@ -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_
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -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_
|
||||
|
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
* TODO:
|
||||
* 1) command failures are not recovered correctly
|
||||
*/
|
||||
|
||||
|
@ -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 */
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -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_
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -28,8 +28,8 @@
|
||||
#define _USB2_BUS_H_
|
||||
|
||||
/*
|
||||
* The following structure defines the USB explore message sent to the
|
||||
* USB explore process.
|
||||
* The following structure defines the USB explore message sent to the USB
|
||||
* explore process.
|
||||
*/
|
||||
|
||||
struct usb2_bus_msg {
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#define USB_BUS_DMA_TAG_MAX 8
|
||||
|
||||
/* structure prototypes */
|
||||
/* structure prototypes */
|
||||
|
||||
struct usb2_bus;
|
||||
struct usb2_page;
|
||||
|
@ -25,8 +25,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Including this file is mandatory for all USB related c-files in the
|
||||
* kernel.
|
||||
* Including this file is mandatory for all USB related c-files in the kernel.
|
||||
*/
|
||||
|
||||
#ifndef _USB2_CORE_H_
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include <dev/usb/usb_controller.h>
|
||||
#include <dev/usb/usb_bus.h>
|
||||
|
||||
/* function prototypes */
|
||||
/* function prototypes */
|
||||
|
||||
static void usb2_init_pipe(struct usb2_device *, uint8_t,
|
||||
struct usb2_endpoint_descriptor *, struct usb2_pipe *);
|
||||
|
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* USB spec: http://www.usb.org/developers/docs/usbspec.zip
|
||||
* USB spec: http://www.usb.org/developers/docs/usbspec.zip
|
||||
*/
|
||||
|
||||
#include <dev/usb/usb_mfunc.h>
|
||||
|
@ -28,7 +28,7 @@
|
||||
#define _USB2_HUB_H_
|
||||
|
||||
/*
|
||||
* The following structure defines an USB port.
|
||||
* The following structure defines an USB port.
|
||||
*/
|
||||
struct usb2_port {
|
||||
uint8_t restartcnt;
|
||||
|
@ -24,7 +24,7 @@
|
||||
* 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.
|
||||
*/
|
||||
*/
|
||||
|
||||
#include <dev/usb/usb_mfunc.h>
|
||||
#include <dev/usb/usb_error.h>
|
||||
|
@ -22,7 +22,7 @@
|
||||
* 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.
|
||||
*/
|
||||
*/
|
||||
|
||||
#include <dev/usb/usb_mfunc.h>
|
||||
#include <dev/usb/usb_error.h>
|
||||
|
Loading…
Reference in New Issue
Block a user