summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/atmegadci.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-04-05 18:20:49 +0000
committerthompsa <thompsa@FreeBSD.org>2009-04-05 18:20:49 +0000
commitd21a622bba09d8841faedb2b868bfbaf8df99c0c (patch)
tree3cf2863804b1271652221a79f7ee4b84733266b8 /sys/dev/usb/controller/atmegadci.h
parentf498dc2227c7edc88b3ba4fdfbbe30ec4205369a (diff)
downloadFreeBSD-src-d21a622bba09d8841faedb2b868bfbaf8df99c0c.zip
FreeBSD-src-d21a622bba09d8841faedb2b868bfbaf8df99c0c.tar.gz
MFp4 //depot/projects/usb@159922
Refactor how we interface with the root HUB. This cuts around 1200 lines of code totally and saves one thread per USB bus. Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/controller/atmegadci.h')
-rw-r--r--sys/dev/usb/controller/atmegadci.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/usb/controller/atmegadci.h b/sys/dev/usb/controller/atmegadci.h
index 1e7d964..6f8c656 100644
--- a/sys/dev/usb/controller/atmegadci.h
+++ b/sys/dev/usb/controller/atmegadci.h
@@ -34,10 +34,6 @@
#define ATMEGA_MAX_DEVICES (USB_MIN_DEVICES + 1)
-#ifndef ATMEGA_HAVE_BUS_SPACE
-#define ATMEGA_HAVE_BUS_SPACE 1
-#endif
-
#define ATMEGA_UEINT 0xF4
#define ATMEGA_UEINT_MASK(n) (1 << (n)) /* endpoint interrupt mask */
@@ -241,8 +237,6 @@ struct atmegadci_softc {
struct usb2_bus sc_bus;
union atmegadci_hub_temp sc_hub_temp;
LIST_HEAD(, usb2_xfer) sc_interrupt_list_head;
- struct usb2_sw_transfer sc_root_ctrl;
- struct usb2_sw_transfer sc_root_intr;
/* must be set by by the bus interface layer */
atmegadci_clocks_t *sc_clocks_on;
@@ -251,11 +245,10 @@ struct atmegadci_softc {
struct usb2_device *sc_devices[ATMEGA_MAX_DEVICES];
struct resource *sc_irq_res;
void *sc_intr_hdl;
-#if (ATMEGA_HAVE_BUS_SPACE != 0)
struct resource *sc_io_res;
bus_space_tag_t sc_io_tag;
bus_space_handle_t sc_io_hdl;
-#endif
+
uint8_t sc_rt_addr; /* root hub address */
uint8_t sc_dv_addr; /* device address */
uint8_t sc_conf; /* root hub config */
OpenPOWER on IntegriCloud