summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_axereg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2003-06-15 21:45:43 +0000
committerwpaul <wpaul@FreeBSD.org>2003-06-15 21:45:43 +0000
commit441816c04b0f07b84e8f0e4dc26d405b0dfad020 (patch)
tree3b38bb19c4a88729e25be3e30bf68b16e2bb77c3 /sys/dev/usb/if_axereg.h
parentd1edf6fb0eef6529331786e891d80e88e426f00b (diff)
downloadFreeBSD-src-441816c04b0f07b84e8f0e4dc26d405b0dfad020.zip
FreeBSD-src-441816c04b0f07b84e8f0e4dc26d405b0dfad020.tar.gz
In the device attach routine, don't depend on uaa->iface being
populated. Apparently, if you use an ehci controller, it's not. Use usbd_device2interface_handle() to retrieve the interface handle. NOTE: uaa->iface is populated in the probe routine, so I suspect the fact that it's NULL in the attach routine is a bug in the ehci driver. Also, don't depend on the PHY addresses returned by the AXE_CMD_READ_PHYID command. The address is correct for my LinkSys NIC, but a user has reported that with a D-Link NIC, the PHYID command returns address 4 while the attached Broadcom PHY is in fact strapped for address 0. Instead, latch onto the first PHY address that returns valid data during a readreg operation.
Diffstat (limited to 'sys/dev/usb/if_axereg.h')
-rw-r--r--sys/dev/usb/if_axereg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/if_axereg.h b/sys/dev/usb/if_axereg.h
index b293f04..c880785 100644
--- a/sys/dev/usb/if_axereg.h
+++ b/sys/dev/usb/if_axereg.h
@@ -105,6 +105,7 @@
#define AXE_CTL_WRITE 0x02
#define AXE_CONFIG_NO 1
+#define AXE_IFACE_IDX 0
/*
* The interrupt endpoint is currently unused
OpenPOWER on IntegriCloud