summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_snreg.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-12-22 08:44:13 +0000
committerimp <imp@FreeBSD.org>1999-12-22 08:44:13 +0000
commit1deb4623c3de9022bd6cf699897c9e32de05a868 (patch)
treea298a15acc57db5a18bec27528fafcb97faae748 /sys/dev/sn/if_snreg.h
parent5a32c01606e82ec1418332a40235386f38f204cf (diff)
downloadFreeBSD-src-1deb4623c3de9022bd6cf699897c9e32de05a868.zip
FreeBSD-src-1deb4623c3de9022bd6cf699897c9e32de05a868.tar.gz
Newbusify the driver.
Add support, kinda, for megaheartz xjack nic cards. This support works well for one machine per ethernet segment because it hard codes the MAC address. The pccardd in -current doesn't have support to parse the ethernet address from the CIS in the funky way that the megaheartz card does things (it includes it in the info tuple, as ascii, which is non-standard). I'd rather kludge this for the moment and work to read the CIS from the kernel rather than mess with pccardd. The isa attachment is untested. The pccard attachment is known to work since I'm committing over it. Card Obtained from: Chris D. Faulhaber <jedger@fxp.org>
Diffstat (limited to 'sys/dev/sn/if_snreg.h')
-rw-r--r--sys/dev/sn/if_snreg.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/dev/sn/if_snreg.h b/sys/dev/sn/if_snreg.h
index e3406c1..d8b914d 100644
--- a/sys/dev/sn/if_snreg.h
+++ b/sys/dev/sn/if_snreg.h
@@ -51,25 +51,6 @@
#ifndef _IF_SNREG_H_
#define _IF_SNREG_H_
-#include <net/if_arp.h>
-
-/*
- * Ethernet software status per interface. The first element MUST
- * be the arpcom struct since the address of the arpcom struct is
- * used as a backdoor to obtain the address of this whole structure
- * in many cases.
- */
-struct sn_softc {
- struct arpcom arpcom; /* Ethernet common part */
- short sn_io_addr; /* i/o bus address (BASE) */
- int pages_wanted; /* Size of outstanding MMU ALLOC */
- int intr_mask; /* Most recently set interrupt mask */
-#if NCARD > 0
- int gone;
-#endif /* NCARD > 0 */
-};
-
-
/*
* Wait time for memory to be free. This probably shouldn't be
* tuned that much, as waiting for this means nothing else happens
@@ -357,18 +338,6 @@ struct sn_softc {
#define CHIP_9195 5
#define CHIP_91100 7
-static const char *chip_ids[15] = {
- NULL, NULL, NULL,
- /* 3 */ "SMC91C90/91C92",
- /* 4 */ "SMC91C94",
- /* 5 */ "SMC91C95",
- NULL,
- /* 7 */ "SMC91C100",
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL
-};
-
-
/* When packets are stuffed into the card or sucked out of the card
* they are set up more or less as follows:
*
OpenPOWER on IntegriCloud