summaryrefslogtreecommitdiff
path: root/sys/include/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include/dev')
-rw-r--r--sys/include/dev/phy/rt8139.h13
-rw-r--r--sys/include/dev/usb/xhcivar.h5
2 files changed, 17 insertions, 1 deletions
diff --git a/sys/include/dev/phy/rt8139.h b/sys/include/dev/phy/rt8139.h
index ef7b127..21c7d54 100644
--- a/sys/include/dev/phy/rt8139.h
+++ b/sys/include/dev/phy/rt8139.h
@@ -33,7 +33,14 @@
#include <sys/types.h>
#include <sys/param.h>
-#define RT_IDR0 0x00 /* MAC address */
+/* MAC address */
+#define RT_IDR0 0x00
+#define RT_IDR1 0x00
+#define RT_IDR2 0x02
+#define RT_IDR3 0x03
+#define RT_IDR4 0x04
+#define RT_IDR5 0x05
+
#define RT_MAR0 0x08 /* Multicast filter */
#define RT_TXSTATUS0 0x10 /* Transmit status (4 32bit regs) */
#define RT_TXADDR0 0x20 /* Tx descriptors (also 4 32bit) */
@@ -70,6 +77,10 @@
#define RT_RE BIT(3) /* Receiver enable */
#define RT_RST BIT(4) /* Reset */
+/* 93C46 EEPROM mode bits */
+#define RT_EEM0 BIT(6)
+#define RT_EEM1 BIT(7)
+
/* Receive register bits */
#define RT_AAP BIT(0) /* Accept all packets */
#define RT_APM BIT(1) /* Accept physical match packets */
diff --git a/sys/include/dev/usb/xhcivar.h b/sys/include/dev/usb/xhcivar.h
index 0488ad8..a9a8fc1 100644
--- a/sys/include/dev/usb/xhcivar.h
+++ b/sys/include/dev/usb/xhcivar.h
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <dev/usb/xhciregs.h>
#define XHCI_TIMEOUT 500 /* In ms */
@@ -41,6 +42,9 @@
#define XHCI_MAX_PROTOS 4
#define XHCI_IMOD_DEFAULT 0
+/* Quirks */
+#define XHCI_QUIRK_HANDOFF BIT(0)
+
/*
* USB proto (USB 2.0 or 3.0)
*/
@@ -108,6 +112,7 @@ struct xhci_hc {
uint32_t *evring;
uint8_t maxslots;
uint8_t cr_cycle : 1;
+ uint16_t quirks;
size_t maxports;
size_t protocnt;
struct xhci_caps *caps;