summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-03-12 05:37:02 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-03-12 05:37:02 +0000
commitae5b9c617251f0bbde3b4bc036c9c4fa6ac03be0 (patch)
treefd8d5ce0859f439ce531740d6f199e6f7f58e0ec /sys/arch
parent6132c34e3bdb7699e0b9c86920b8c517208deef2 (diff)
Adjust the way that media is initialized on DP8390-compatibles; from NetBSD.
The dp8390_softc now has media_init and media_fini function pointers that do the work. fgsch@ ok
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amiga/dev/if_ne_zbus.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/arch/amiga/dev/if_ne_zbus.c b/sys/arch/amiga/dev/if_ne_zbus.c
index c854917c68a..76ff6e86cea 100644
--- a/sys/arch/amiga/dev/if_ne_zbus.c
+++ b/sys/arch/amiga/dev/if_ne_zbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ne_zbus.c,v 1.1 2000/02/29 19:05:22 niklas Exp $ */
+/* $OpenBSD: if_ne_zbus.c,v 1.2 2001/03/12 05:36:57 aaron Exp $ */
/* $NetBSD: if_ne_zbus.c,v 1.5 2000/01/23 21:06:13 aymeric Exp $ */
/*-
@@ -150,14 +150,11 @@ ne_zbus_attach(parent, self, aux)
bus_space_handle_t nich;
bus_space_tag_t asict = nict;
bus_space_handle_t asich;
- int *media, nmedia, defmedia;
-
- media = NULL;
- nmedia = defmedia = 0;
dsc->sc_mediachange = rtl80x9_mediachange;
dsc->sc_mediastatus = rtl80x9_mediastatus;
dsc->init_card = rtl80x9_init_card;
+ dsc->sc_media_init = rtl80x9_media_init;
#ifdef __NetBSD__
zsc->sc_bst.base = (u_long)zap->va + 0;
@@ -194,9 +191,6 @@ ne_zbus_attach(parent, self, aux)
nsc->sc_asict = asict;
nsc->sc_asich = asich;
- /* Initialize media. */
- rtl80x9_init_media(dsc, &media, &nmedia, &defmedia);
-
/* This interface is always enabled. */
dsc->sc_enabled = 1;
@@ -204,7 +198,7 @@ ne_zbus_attach(parent, self, aux)
* Do generic NE2000 attach. This will read the station address
* from the EEPROM.
*/
- ne2000_attach(nsc, NULL, media, nmedia, defmedia);
+ ne2000_attach(nsc, NULL);
zsc->sc_isr.isr_intr = dp8390_intr;
zsc->sc_isr.isr_arg = dsc;