summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-09-28 01:23:48 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-09-28 01:23:48 +0000
commit3ff8eb7ddf08c874d646d58684a3ec9975777e8a (patch)
tree07e99dcba297d733d5a0526af5f0bc7a64ca316e
parentc8151eab40b7e5da76d1bc0578a5696077406b81 (diff)
introduce attribute 'ifmedia' which means 'this particulariface
supports if_edia stuff so include correspondent MI support'. reviewed/additions by jason@, he said "there might be more of 'em", but i'd say, there can be only one!
-rw-r--r--sys/arch/sparc/conf/files.sparc6
-rw-r--r--sys/conf/files9
-rw-r--r--sys/dev/pci/files.pci8
3 files changed, 12 insertions, 11 deletions
diff --git a/sys/arch/sparc/conf/files.sparc b/sys/arch/sparc/conf/files.sparc
index ca77b4731e4..b64b56f46c3 100644
--- a/sys/arch/sparc/conf/files.sparc
+++ b/sys/arch/sparc/conf/files.sparc
@@ -1,4 +1,4 @@
-# $OpenBSD: files.sparc,v 1.22 1998/09/10 17:34:31 jason Exp $
+# $OpenBSD: files.sparc,v 1.23 1998/09/28 01:23:38 mickey Exp $
# $NetBSD: files.sparc,v 1.44 1997/08/31 21:29:16 pk Exp $
# @(#)files.sparc 8.1 (Berkeley) 7/19/93
@@ -109,7 +109,7 @@ device qec {}
attach qec at sbus
file arch/sparc/dev/qec.c qec
-device be {}
+device be: ifnet, ether, ifmedia
attach be at qec
file arch/sparc/dev/be.c be
@@ -118,7 +118,7 @@ attach me at qec
file arch/sparc/dev/me.c me
# HappyMeal (hme) ethernet
-device hme: ifnet, ether, mii
+device hme: ifnet, ether, mii, ifmedia
attach hme at sbus
file arch/sparc/dev/hme.c hme
diff --git a/sys/conf/files b/sys/conf/files
index d4662a29dc7..160faa3f2f4 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1,4 +1,4 @@
-# $OpenBSD: files,v 1.93 1998/09/27 03:56:00 rahnds Exp $
+# $OpenBSD: files,v 1.94 1998/09/28 01:23:44 mickey Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@@ -11,6 +11,7 @@ define ifnet
define tty
define audio {}
define scsi {}
+define ifmedia
define mii {[phy = -1]}
# audio device attributes
@@ -67,14 +68,14 @@ device uha: scsi
file dev/ic/uha.c uha
# 3Com Etherlink-III Ethernet controller
-device ep: ether, ifnet
+device ep: ether, ifnet, ifmedia
file dev/ic/elink3.c ep
# WaveLan
# device wlp: ether, ifnet
# LANCE and PCnet Ethernet controllers
-device le: ether, ifnet
+device le: ether, ifnet, ifmedia
file dev/ic/am7990.c le
# SMC 91Cxx Ethernet Controller
@@ -294,7 +295,7 @@ file net/if_atmsubr.c atm needs-flag
file net/if_ethersubr.c ether | fddi needs-flag
file net/if_fddisubr.c fddi
file net/if_loop.c loop needs-count
-file net/if_media.c
+file net/if_media.c ifmedia
file net/if_sl.c sl needs-count
file net/if_strip.c strip needs-count
file net/if_ppp.c ppp needs-count
diff --git a/sys/dev/pci/files.pci b/sys/dev/pci/files.pci
index f4ad2f30d94..6e15d7ccda9 100644
--- a/sys/dev/pci/files.pci
+++ b/sys/dev/pci/files.pci
@@ -1,4 +1,4 @@
-# $OpenBSD: files.pci,v 1.24 1998/09/27 03:55:59 rahnds Exp $
+# $OpenBSD: files.pci,v 1.25 1998/09/28 01:23:47 mickey Exp $
# $NetBSD: files.pci,v 1.20 1996/09/24 17:47:15 christos Exp $
#
# Config.new file and device description for machine-independent PCI code.
@@ -47,7 +47,7 @@ attach isp at pci with isp_pci
file dev/pci/isp_pci.c isp_pci
# Ethernet driver for DC21040-based boards
-device de: ether, ifnet
+device de: ether, ifnet, ifmedia
attach de at pci
file dev/pci/if_de.c de
@@ -102,12 +102,12 @@ attach bktr at pci
file dev/pci/brooktree848.c bktr needs-count
# 3C90x
-device xl: ether, ifnet
+device xl: ether, ifnet, ifmedia
attach xl at pci
file dev/pci/if_xl.c xl
# SMC EPIC, 83c170
-device tx: ether, ifnet
+device tx: ether, ifnet, ifmedia
attach tx at pci
file dev/pci/if_tx.c tx