Return a higher-priority match than 1. These are specific drivers. This
allows for a "generic unknown PHY" driver to be implemented.
This commit is contained in:
parent
51da8fc39f
commit
ad8b66c7c8
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: exphy.c,v 1.12 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: exphy.c,v 1.13 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -121,7 +121,7 @@ exphymatch(parent, match, aux)
|
||||
if (strcmp(parent->dv_cfdata->cf_driver->cd_name, "ex") != 0)
|
||||
return (0);
|
||||
|
||||
return (1);
|
||||
return (10);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: icsphy.c,v 1.4 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: icsphy.c,v 1.5 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -113,7 +113,7 @@ icsphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_ICS &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_ICS_1890)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: inphy.c,v 1.7 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: inphy.c,v 1.8 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -113,7 +113,7 @@ inphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_INTEL &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_INTEL_I82555)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lxtphy.c,v 1.5 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: lxtphy.c,v 1.6 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -113,7 +113,7 @@ lxtphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_LEVEL1 &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_LEVEL1_LXT970)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nsphy.c,v 1.13 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: nsphy.c,v 1.14 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -113,7 +113,7 @@ nsphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_NATSEMI &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_NATSEMI_DP83840)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: qsphy.c,v 1.7 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: qsphy.c,v 1.8 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -113,7 +113,7 @@ qsphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_QUALSEMI &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_QUALSEMI_QS6612)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sqphy.c,v 1.4 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: sqphy.c,v 1.5 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -113,7 +113,7 @@ sqphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_SEEQ &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_SEEQ_80220)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tlphy.c,v 1.14 1998/11/04 23:28:15 thorpej Exp $ */
|
||||
/* $NetBSD: tlphy.c,v 1.15 1998/11/04 23:44:09 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -123,7 +123,7 @@ tlphymatch(parent, match, aux)
|
||||
|
||||
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_TI &&
|
||||
MII_MODEL(ma->mii_id2) == MII_MODEL_TI_TLAN10T)
|
||||
return (1);
|
||||
return (10);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user