From ec9064e1d0c090dfda00cd22ab8d1db4f00fa07f Mon Sep 17 00:00:00 2001 From: kevlo Date: Tue, 19 Apr 2022 03:26:33 +0000 Subject: [PATCH] Add a new RDC PHY. From Andrius Varanavicius --- sys/dev/mii/miidevs | 3 ++- sys/dev/mii/rdcphy.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/mii/miidevs b/sys/dev/mii/miidevs index e5a947029cf..66eaad14c1e 100644 --- a/sys/dev/mii/miidevs +++ b/sys/dev/mii/miidevs @@ -1,4 +1,4 @@ -$OpenBSD: miidevs,v 1.130 2021/06/17 09:29:01 kettenis Exp $ +$OpenBSD: miidevs,v 1.131 2022/04/19 03:26:33 kevlo Exp $ /* $NetBSD: miidevs,v 1.3 1998/11/05 03:43:43 thorpej Exp $ */ /*- @@ -288,6 +288,7 @@ model QUALITYSEMI QS6612 0x0000 QS6612 10/100 PHY /* RDC Semi. PHYs */ model RDC R6040 0x0003 R6040 10/100 PHY +model RDC R6040_2 0x0005 R6040 10/100 PHY /* Realtek PHYs */ model xxREALTEK RTL8251 0x0000 RTL8251 PHY diff --git a/sys/dev/mii/rdcphy.c b/sys/dev/mii/rdcphy.c index f1eefcbe783..927e9c3497c 100644 --- a/sys/dev/mii/rdcphy.c +++ b/sys/dev/mii/rdcphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rdcphy.c,v 1.4 2022/04/06 18:59:29 naddy Exp $ */ +/* $OpenBSD: rdcphy.c,v 1.5 2022/04/19 03:26:33 kevlo Exp $ */ /*- * Copyright (c) 2010, Pyun YongHyeon * All rights reserved. @@ -102,6 +102,8 @@ const struct mii_phy_funcs rdcphy_funcs = { static const struct mii_phydesc rdcphys[] = { { MII_OUI_RDC, MII_MODEL_RDC_R6040, MII_STR_RDC_R6040 }, + { MII_OUI_RDC, MII_MODEL_RDC_R6040_2, + MII_STR_RDC_R6040_2 }, { 0, 0, NULL }, }; -- 2.20.1