diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-29 13:18:20 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-29 13:18:20 +0000 |
commit | 2e756697baa6efb267ada7ae2beb9d60e2614632 (patch) | |
tree | d34e737ac8575aaac577dc0813142aa7abe69c1d /sys/i386 | |
parent | 743bf455af516483ef5bb48de5868809dccc78d1 (diff) | |
download | FreeBSD-src-2e756697baa6efb267ada7ae2beb9d60e2614632.zip FreeBSD-src-2e756697baa6efb267ada7ae2beb9d60e2614632.tar.gz |
- Change ELINK_ID_PORT; the 3c507 likes 0x100 better.
- Add module metadata.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/elink.c | 18 | ||||
-rw-r--r-- | sys/i386/isa/elink.h | 3 |
2 files changed, 19 insertions, 2 deletions
diff --git a/sys/i386/isa/elink.c b/sys/i386/isa/elink.c index 11b107f..13eb824 100644 --- a/sys/i386/isa/elink.c +++ b/sys/i386/isa/elink.c @@ -33,7 +33,10 @@ * Common code for dealing with 3COM ethernet cards. */ -#include <sys/types.h> +#include <sys/param.h> +#include <sys/systm.h> +#include <sys/kernel.h> +#include <sys/module.h> #include <machine/cpufunc.h> @@ -53,6 +56,10 @@ elink_reset() x = 1; outb(ELINK_ID_PORT, ELINK_RESET); } + outb(ELINK_ID_PORT, 0); + outb(ELINK_ID_PORT, 0); + + return; } /* @@ -75,3 +82,12 @@ elink_idseq(u_char p) c <<= 1; } } + +static moduledata_t elink_mod = { + "elink",/* module name */ + NULL, /* event handler */ + 0 /* extra data */ +}; + +DECLARE_MODULE(elink, elink_mod, SI_SUB_PSEUDO, SI_ORDER_ANY); +MODULE_VERSION(elink, 1); diff --git a/sys/i386/isa/elink.h b/sys/i386/isa/elink.h index 44bf06e..52eb105 100644 --- a/sys/i386/isa/elink.h +++ b/sys/i386/isa/elink.h @@ -32,12 +32,13 @@ #ifdef PC98 #define ELINK_ID_PORT 0x71d0 #else -#define ELINK_ID_PORT 0x110 +#define ELINK_ID_PORT 0x100 #endif #define ELINK_RESET 0xc0 #define ELINK_507_POLY 0xe7 #define ELINK_509_POLY 0xcf +#define TLINK_619_POLY 0x63 void elink_reset(void); void elink_idseq(u_char p); |