diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-09-23 17:45:18 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-09-23 17:45:18 +0000 |
commit | 03afde90fdef2d05bb166cbf5f2f07a88a1c045f (patch) | |
tree | eccb33a8d1dec467b0469222f8886ee07fcf55cf /sys/dev/isa | |
parent | 3c9617027361ea16eabd3dca15bc05d40d9508b7 (diff) |
don't need to set ifp->if_mtu or ifp->if_output in each driver,
{ether,atm,fddi}_ifattach already does this.
ok mcbride@ markus@ henning@
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/if_ex.c | 4 | ||||
-rw-r--r-- | sys/dev/isa/if_hp.c | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c index baf08cb2a5a..a1dde5d8d90 100644 --- a/sys/dev/isa/if_ex.c +++ b/sys/dev/isa/if_ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ex.c,v 1.8 2002/03/14 01:26:56 millert Exp $ */ +/* $OpenBSD: if_ex.c,v 1.9 2004/09/23 17:45:16 brad Exp $ */ /* * Copyright (c) 1997, Donald A. Schmidt * Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es) @@ -287,11 +287,9 @@ ex_attach(parent, self, aux) */ ifp->if_softc = sc; bcopy(self->dv_xname, ifp->if_xname, IFNAMSIZ); - ifp->if_output = ether_output; ifp->if_start = ex_start; ifp->if_ioctl = ex_ioctl; ifp->if_watchdog = ex_watchdog; - ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST; /* XXX not done yet. | IFF_MULTICAST */ IFQ_SET_READY(&ifp->if_snd); diff --git a/sys/dev/isa/if_hp.c b/sys/dev/isa/if_hp.c index 5e05b2296a8..3196f3c162d 100644 --- a/sys/dev/isa/if_hp.c +++ b/sys/dev/isa/if_hp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_hp.c,v 1.12 2004/06/13 21:49:24 niklas Exp $ */ +/* $OpenBSD: if_hp.c,v 1.13 2004/09/23 17:45:16 brad Exp $ */ /* $NetBSD: if_hp.c,v 1.21 1995/12/24 02:31:31 mycroft Exp $ */ /* XXX THIS DRIVER IS BROKEN. IT WILL NOT EVEN COMPILE. */ @@ -87,7 +87,7 @@ #include <dev/isa/if_nereg.h> int hpprobe(), hpattach(), hpintr(); -int hpstart(), hpinit(), ether_output(), hpioctl(); +int hpstart(), hpinit(), hpioctl(); struct isa_driver hpdriver = { @@ -394,12 +394,10 @@ hpattach(dvp) ifp->if_unit = unit; ifp->if_name = hpdriver.name; - ifp->if_mtu = ETHERMTU; printf("hp%d: %s %d-bit ethernet address %s\n", unit, hp_id(ns->hp_type), ns->ns_mode & DSDC_WTS ? 32 : 16, ether_sprintf(ns->ns_addrp)); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS; - ifp->if_output = ether_output; ifp->if_start = hpstart; ifp->if_ioctl = hpioctl; ifp->if_reset = hpreset; |