summaryrefslogtreecommitdiff
path: root/sys/dev/ic/re.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@cvs.openbsd.org>2006-09-18 21:33:33 +0000
committerDimitry Andric <dim@cvs.openbsd.org>2006-09-18 21:33:33 +0000
commit4458493a8254e497ee8d753fe86ed8d3d0ba20e9 (patch)
tree2f69c4c2d8548a07b39ed5e54ae2975a30738d9d /sys/dev/ic/re.c
parentda60693861d2597a49ad622406e287847e083369 (diff)
Fix for re_stop() being called from re_cardbus_shutdown() with the
wrong arguments, causing uvm_fault on halt/reboot, with a cardbus re inserted. While here, cleanup prototypes and use revar.h everywhere. ok brad@
Diffstat (limited to 'sys/dev/ic/re.c')
-rw-r--r--sys/dev/ic/re.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index 97c90172caa..f781b37cdaf 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.45 2006/09/17 18:18:57 brad Exp $ */
+/* $OpenBSD: re.c,v 1.46 2006/09/18 21:33:32 dim Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -149,12 +149,11 @@
#include <dev/pci/pcivar.h>
#include <dev/ic/rtl81x9reg.h>
+#include <dev/ic/revar.h>
int redebug = 0;
#define DPRINTF(x) if (redebug) printf x
-int re_attach(struct rl_softc *);
-
int re_encap(struct rl_softc *, struct mbuf *, int *);
int re_newbuf(struct rl_softc *, int, struct mbuf *);
@@ -165,12 +164,9 @@ void re_fixup_rx(struct mbuf *);
#endif
void re_rxeof(struct rl_softc *);
void re_txeof(struct rl_softc *);
-int re_intr(void *);
void re_tick(void *);
void re_start(struct ifnet *);
int re_ioctl(struct ifnet *, u_long, caddr_t);
-int re_init(struct ifnet *);
-void re_stop(struct ifnet *, int);
void re_watchdog(struct ifnet *);
int re_ifmedia_upd(struct ifnet *);
void re_ifmedia_sts(struct ifnet *, struct ifmediareq *);