Add root hub emulation.

This commit is contained in:
augustss 2001-11-15 23:25:09 +00:00
parent 6424a6316a
commit 122d2863d8
3 changed files with 974 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/* $NetBSD: ehcireg.h,v 1.4 2001/11/10 17:06:11 augustss Exp $ */
/* $NetBSD: ehcireg.h,v 1.5 2001/11/15 23:25:09 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@ -146,10 +146,10 @@
#define EHCI_PS_OCC 0x00000020 /* RWC over current change */
#define EHCI_PS_OCA 0x00000010 /* RO over current active */
#define EHCI_PS_PEC 0x00000008 /* RWC port enable change */
#define EHCI_PS_PE 0x00000004 /* RO port enable */
#define EHCI_PS_PE 0x00000004 /* RW port enable */
#define EHCI_PS_CSC 0x00000002 /* RWC connect status change */
#define EHCI_PS_CS 0x00000001 /* RO connect status */
#define EHCI_PS_CLEAR (EHCI_PS_OCC|EHCI_PS_PEC|EHCI_PS_CSC)
#define EHCI_FLALIGN_ALIGN 0x1000

View File

@ -1,7 +1,7 @@
/* $NetBSD: ehcivar.h,v 1.3 2001/11/10 17:06:11 augustss Exp $ */
/* $NetBSD: ehcivar.h,v 1.4 2001/11/15 23:25:09 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@ -56,7 +56,16 @@ typedef struct ehci_softc {
usb_dma_t sc_fldma;
u_int sc_flsize;
int sc_noport;
u_int8_t sc_addr; /* device address */
u_int8_t sc_conf; /* device configuration */
usbd_xfer_handle sc_intrxfer;
SIMPLEQ_HEAD(, usbd_xfer) sc_free_xfers; /* free xfers */
device_ptr_t sc_child; /* /dev/usb# device */
char sc_dying;
} ehci_softc_t;
#define EREAD1(sc, a) bus_space_read_1((sc)->iot, (sc)->ioh, (a))