atheros813x: sync with FreeBSD 11.1.

This commit is contained in:
Jérôme Duval 2017-11-19 09:22:08 +01:00
parent 5c6208cc0c
commit cf42509b42
3 changed files with 5 additions and 11 deletions

View File

@ -1,6 +1,6 @@
SubDir HAIKU_TOP src add-ons kernel drivers network atheros813x dev alc ; SubDir HAIKU_TOP src add-ons kernel drivers network atheros813x dev alc ;
UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_network compat ] UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd11_network compat ]
: true ; : true ;
UsePrivateHeaders net system ; UsePrivateHeaders net system ;
@ -13,6 +13,6 @@ SubDirCcFlags [ FDefines _KERNEL=1 ] ;
KernelAddon atheros813x : KernelAddon atheros813x :
if_alc.c if_alc.c
glue.c glue.c
: libfreebsd_network.a atheros813x_mii.a : atheros813x_mii.a libfreebsd11_network.a
; ;

View File

@ -45,12 +45,12 @@
#define DEVICEID_ATHEROS_AR8152_B 0x2060 /* L2C V1.1 */ #define DEVICEID_ATHEROS_AR8152_B 0x2060 /* L2C V1.1 */
#define DEVICEID_ATHEROS_AR8152_B2 0x2062 /* L2C V2.0 */ #define DEVICEID_ATHEROS_AR8152_B2 0x2062 /* L2C V2.0 */
#define DEVICEID_ATHEROS_AR8161 0x1091 #define DEVICEID_ATHEROS_AR8161 0x1091
#define DEVICEID_ATHEROS_E2200 0xE091
#define DEVICEID_ATHEROS_E2400 0xE0A1
#define DEVICEID_ATHEROS_E2500 0xE0B1
#define DEVICEID_ATHEROS_AR8162 0x1090 #define DEVICEID_ATHEROS_AR8162 0x1090
#define DEVICEID_ATHEROS_AR8171 0x10A1 #define DEVICEID_ATHEROS_AR8171 0x10A1
#define DEVICEID_ATHEROS_AR8172 0x10A0 #define DEVICEID_ATHEROS_AR8172 0x10A0
#define DEVICEID_ATHEROS_E2200 0xE091
#define DEVICEID_ATHEROS_E2400 0xE0A1
#define DEVICEID_ATHEROS_E2500 0xE0B1
#define ATHEROS_AR8152_B_V10 0xC0 #define ATHEROS_AR8152_B_V10 0xC0
#define ATHEROS_AR8152_B_V11 0xC1 #define ATHEROS_AR8152_B_V11 0xC1

View File

@ -140,12 +140,6 @@ ukphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
break; break;
case MII_MEDIACHG: case MII_MEDIACHG:
/*
* If the interface is not up, don't do anything.
*/
if ((mii->mii_ifp->if_flags & IFF_UP) == 0)
break;
mii_phy_setmedia(sc); mii_phy_setmedia(sc);
break; break;