diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-23 21:54:58 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-23 21:54:58 +0000 |
commit | b4a55308473160cf766428883f536514afcc4bbd (patch) | |
tree | 19cd4293743c312ebbc079b5f7c77b482a6cd851 /sys/dev/ic | |
parent | d7db1c56504be35c243bc1503b87d003be3eb625 (diff) |
Remove repeated ethernet constants; use if_ether.h for it instead.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dp8390.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/elink3.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/i82596var.h | 5 | ||||
-rw-r--r-- | sys/dev/ic/smc91cxx.c | 9 |
4 files changed, 4 insertions, 22 deletions
diff --git a/sys/dev/ic/dp8390.c b/sys/dev/ic/dp8390.c index a12e0f1e541..0384aa3f542 100644 --- a/sys/dev/ic/dp8390.c +++ b/sys/dev/ic/dp8390.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dp8390.c,v 1.12 2001/03/29 01:39:32 aaron Exp $ */ +/* $OpenBSD: dp8390.c,v 1.13 2001/06/23 21:54:43 fgsch Exp $ */ /* $NetBSD: dp8390.c,v 1.13 1998/07/05 06:49:11 jonathan Exp $ */ /* @@ -71,10 +71,6 @@ static int dp8390_test_mem __P((struct dp8390_softc *)); int dp8390_enable __P((struct dp8390_softc *)); void dp8390_disable __P((struct dp8390_softc *)); -#define ETHER_MIN_LEN 64 -#define ETHER_MAX_LEN 1518 -#define ETHER_ADDR_LEN 6 - int dp8390_debug = 0; /* diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c index ad9e4727a31..df694fd9b03 100644 --- a/sys/dev/ic/elink3.c +++ b/sys/dev/ic/elink3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elink3.c,v 1.49 2001/05/26 06:57:19 angelos Exp $ */ +/* $OpenBSD: elink3.c,v 1.50 2001/06/23 21:54:44 fgsch Exp $ */ /* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */ /* @@ -73,10 +73,6 @@ #include <dev/ic/elink3var.h> #include <dev/ic/elink3reg.h> -#define ETHER_MIN_LEN 64 -#define ETHER_MAX_LEN 1518 -#define ETHER_ADDR_LEN 6 - /* * Structure to map media-present bits in boards to * ifmedia codes and printable media names. Used for table-driven diff --git a/sys/dev/ic/i82596var.h b/sys/dev/ic/i82596var.h index f46a6730642..00c01b098b0 100644 --- a/sys/dev/ic/i82596var.h +++ b/sys/dev/ic/i82596var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: i82596var.h,v 1.4 2001/03/23 00:16:49 mickey Exp $ */ +/* $OpenBSD: i82596var.h,v 1.5 2001/06/23 21:54:45 fgsch Exp $ */ /* $NetBSD: i82586var.h,v 1.10 1998/08/15 04:42:42 mycroft Exp $ */ /*- @@ -111,9 +111,6 @@ #define IED_CMDS 0x80 #define IED_ALL 0xff -#define ETHER_MIN_LEN 64 -#define ETHER_MAX_LEN 1518 - #define B_PER_F 3 /* recv buffers per frame */ #define IE_RBUF_SIZE 256 /* size of each receive buffer; MUST BE POWER OF TWO */ diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c index 2ac0a297b3a..478aef8597a 100644 --- a/sys/dev/ic/smc91cxx.c +++ b/sys/dev/ic/smc91cxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc91cxx.c,v 1.8 2001/02/20 19:39:36 mickey Exp $ */ +/* $OpenBSD: smc91cxx.c,v 1.9 2001/06/23 21:54:46 fgsch Exp $ */ /* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */ /*- @@ -132,8 +132,6 @@ /* XXX Hardware padding doesn't work yet(?) */ #define SMC91CXX_SW_PAD -#define ETHER_ADDR_LEN 6 - #ifdef SMC_DEBUG const char *smc91cxx_idstrs[] = { NULL, /* 0 */ @@ -181,11 +179,6 @@ int smc91cxx_ioctl __P((struct ifnet *, u_long, caddr_t)); int smc91cxx_enable __P((struct smc91cxx_softc *)); void smc91cxx_disable __P((struct smc91cxx_softc *)); -/* XXX Should be in a common header file. */ -#define ETHER_MAX_LEN 1518 -#define ETHER_MIN_LEN 64 -#define ETHER_CRC_LEN 4 - static __inline int ether_cmp __P((void *, void *)); static __inline int ether_cmp(va, vb) |