From the OpenBSD commit log :

Add support for the Apple USB Ethernet adapter.
Work around the "latch in at the first working PHY address hack",
that fails for this adapter because it returns 0xffff when reading
from lower PHY addresses. Also add more debugging printfs

Obtained from:	OpenBSD
MFC After:	3 days
This commit is contained in:
Olivier Houchard 2008-05-13 14:00:09 +00:00
parent 3bd0024335
commit 1e4ef54501
2 changed files with 3 additions and 1 deletions

View File

@ -127,6 +127,7 @@ __FBSDID("$FreeBSD$");
const struct axe_type axe_devs[] = {
{ { USB_VENDOR_ABOCOM, USB_PRODUCT_ABOCOM_UF200}, 0 },
{ { USB_VENDOR_ACERCM, USB_PRODUCT_ACERCM_EP1427X2}, 0 },
{ { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_ETHERNET}, AX772 },
{ { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88172}, 0 },
{ { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772}, AX772 },
{ { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88178}, AX178 },
@ -273,7 +274,7 @@ axe_miibus_readreg(device_t dev, int phy, int reg)
return(-1);
}
if (val)
if (val && val != 0xffff)
sc->axe_phyaddrs[0] = phy;
return (le16toh(val));

View File

@ -852,6 +852,7 @@ product APPLE IPOD_07 0x1207 iPod '07'
product APPLE IPOD_08 0x1208 iPod '08'
product APPLE IPODVIDEO 0x1209 iPod Video
product APPLE IPODNANO 0x120a iPod Nano
product APPLE ETHERNET 0x1402 Ethernet A1277
/* Arkmicro Technologies */
product ARKMICRO ARK3116 0x0232 ARK3116 Serial