Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libmiiphy Add a rump kernel component for m...
details: https://anonhg.NetBSD.org/src/rev/aafb881d9805
branches: trunk
changeset: 328487:aafb881d9805
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Apr 04 14:18:19 2014 +0000
description:
Add a rump kernel component for mii support and phy drivers.
diffstat:
sys/rump/dev/lib/libmiiphy/MIIPHY.ioconf | 41 +++++++++++++++++++++++++++++
sys/rump/dev/lib/libmiiphy/Makefile | 23 ++++++++++++++++
sys/rump/dev/lib/libmiiphy/opt/opt_mii.h | 1 +
sys/rump/dev/lib/libmiiphy/phy_at_mii.c | 45 ++++++++++++++++++++++++++++++++
sys/rump/dev/lib/libmiiphy/shlib_version | 2 +
5 files changed, 112 insertions(+), 0 deletions(-)
diffs (132 lines):
diff -r efa4cc4dd466 -r aafb881d9805 sys/rump/dev/lib/libmiiphy/MIIPHY.ioconf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/dev/lib/libmiiphy/MIIPHY.ioconf Fri Apr 04 14:18:19 2014 +0000
@@ -0,0 +1,41 @@
+# $NetBSD: MIIPHY.ioconf,v 1.1 2014/04/04 14:18:19 pooka Exp $
+#
+
+ioconf phy
+
+include "conf/files"
+
+pseudo-root mii*
+
+acphy* at mii? phy ? # Altima AC101 and AMD Am79c874 PHYs
+amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs
+atphy* at mii? phy ? # Attansic/Atheros PHYs
+bmtphy* at mii? phy ? # Broadcom BCM5201 and BCM5202 PHYs
+brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs
+ciphy* at mii? phy ? # Cicada CS8201 Gig-E PHYs
+dmphy* at mii? phy ? # Davicom DM9101 PHYs
+etphy* at mii? phy ? # Agere/LSI ET1011 TruePHY Gig-E PHYs
+exphy* at mii? phy ? # 3Com internal PHYs
+gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs
+glxtphy* at mii? phy ? # Level One LXT-1000 PHYs
+gphyter* at mii? phy ? # NS83861 Gig-E PHY
+icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x
+igphy* at mii? phy ? # Intel IGP01E1000
+ihphy* at mii? phy ? # Intel 82577 PHYs
+ikphy* at mii? phy ? # Intel 82563 PHYs
+inphy* at mii? phy ? # Intel 82555 PHYs
+iophy* at mii? phy ? # Intel 82553 PHYs
+lxtphy* at mii? phy ? # Level One LXT-970 PHYs
+makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
+nsphy* at mii? phy ? # NS83840 PHYs
+nsphyter* at mii? phy ? # NS83843 PHYs
+pnaphy* at mii? phy ? # generic HomePNA PHYs
+qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
+rdcphy* at mii? phy ? # RDC R6040 10/100 PHY
+rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs
+rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
+sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
+tlphy* at mii? phy ? # ThunderLAN PHYs
+tqphy* at mii? phy ? # TDK Semiconductor PHYs
+ukphy* at mii? phy ? # generic unknown PHYs
+urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs
diff -r efa4cc4dd466 -r aafb881d9805 sys/rump/dev/lib/libmiiphy/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/dev/lib/libmiiphy/Makefile Fri Apr 04 14:18:19 2014 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2014/04/04 14:18:19 pooka Exp $
+#
+
+RUMPTOP=${TOPRUMP}
+
+.PATH: ${RUMPTOP}/../dev/pci ${RUMPTOP}/../dev/mii
+
+LIB= rumpdev_miiphy
+IOCONF= MIIPHY.ioconf
+
+SRCS= phy_at_mii.c
+
+SRCS+= mii.c mii_ethersubr.c mii_physubr.c ukphy.c ukphy_subr.c
+SRCS+= acphy.c amhphy.c atphy.c bmtphy.c brgphy.c ciphy.c dmphy.c etphy.c \
+ exphy.c gentbi.c glxtphy.c gphyter.c icsphy.c igphy.c ihphy.c ikphy.c \
+ inphy.c iophy.c lxtphy.c makphy.c mvphy.c nsphy.c nsphyter.c pnaphy.c \
+ qsphy.c rdcphy.c rgephy.c rlphy.c sqphy.c tlphy.c tqphy.c urlphy.c
+
+CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern -I${.CURDIR}/opt
+
+.include "${RUMPTOP}/Makefile.rump"
+.include <bsd.lib.mk>
+.include <bsd.klinks.mk>
diff -r efa4cc4dd466 -r aafb881d9805 sys/rump/dev/lib/libmiiphy/opt/opt_mii.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/dev/lib/libmiiphy/opt/opt_mii.h Fri Apr 04 14:18:19 2014 +0000
@@ -0,0 +1,1 @@
+/* $NetBSD: opt_mii.h,v 1.1 2014/04/04 14:18:19 pooka Exp $ */
diff -r efa4cc4dd466 -r aafb881d9805 sys/rump/dev/lib/libmiiphy/phy_at_mii.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/dev/lib/libmiiphy/phy_at_mii.c Fri Apr 04 14:18:19 2014 +0000
@@ -0,0 +1,45 @@
+/* $NetBSD: phy_at_mii.c,v 1.1 2014/04/04 14:18:19 pooka Exp $ */
+
+/*
+ * Copyright (c) 2010 Antti Kantee. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: phy_at_mii.c,v 1.1 2014/04/04 14:18:19 pooka Exp $");
+
+#include <sys/param.h>
+#include <sys/conf.h>
+#include <sys/device.h>
+#include <sys/bus.h>
+
+#include "rump_private.h"
+
+#include "ioconf.c"
+
+RUMP_COMPONENT(RUMP_COMPONENT_DEV)
+{
+
+ config_init_component(cfdriver_ioconf_phy,
+ cfattach_ioconf_phy, cfdata_ioconf_phy);
+}
diff -r efa4cc4dd466 -r aafb881d9805 sys/rump/dev/lib/libmiiphy/shlib_version
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/dev/lib/libmiiphy/shlib_version Fri Apr 04 14:18:19 2014 +0000
@@ -0,0 +1,2 @@
+major=0
+minor=0
Home |
Main Index |
Thread Index |
Old Index