summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_edreg.h
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-10-08 17:04:59 +0000
committerkato <kato@FreeBSD.org>1998-10-08 17:04:59 +0000
commit4d4145bdee56e16ff93373626bf9b4fd9bc95ff9 (patch)
treed9dea2ca0ed6ca40fd59d8e533848a904c68c649 /sys/dev/ed/if_edreg.h
parent29d7df02f8728dd4394f77fcda079f89eee96912 (diff)
downloadFreeBSD-src-4d4145bdee56e16ff93373626bf9b4fd9bc95ff9.zip
FreeBSD-src-4d4145bdee56e16ff93373626bf9b4fd9bc95ff9.tar.gz
Add SMC EtherEZ98 support to ed driver (PC-98).
Reviewed by: kato Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
Diffstat (limited to 'sys/dev/ed/if_edreg.h')
-rw-r--r--sys/dev/ed/if_edreg.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/ed/if_edreg.h b/sys/dev/ed/if_edreg.h
index a6d611c..47ddfa1 100644
--- a/sys/dev/ed/if_edreg.h
+++ b/sys/dev/ed/if_edreg.h
@@ -6,7 +6,7 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id$
+ * $Id: if_edreg.h,v 1.23 1997/02/22 09:36:21 peter Exp $
*/
/*
* National Semiconductor DS8390 NIC register definitions
@@ -786,9 +786,22 @@ struct ed_ring {
#define ED_WD_ROM_CHECKSUM_TOTAL 0xFF
#endif
+#ifdef PC98
+/*
+ * SMC EtherEZ98(SMC8498BTA)
+ */
+#define ED_WD_NIC_OFFSET 0x100 /* I/O base offset to NIC */
+#define ED_WD_ASIC_OFFSET 0 /* I/O base offset to ASIC */
+/*
+ * XXX - The I/O address range is fragmented in the EtherEZ98;
+ * this is the number of regs at iobase.
+ */
+#define ED_WD_IO_PORTS 16 /* # of i/o addresses used */
+#else
#define ED_WD_NIC_OFFSET 0x10 /* I/O base offset to NIC */
#define ED_WD_ASIC_OFFSET 0 /* I/O base offset to ASIC */
#define ED_WD_IO_PORTS 32 /* # of i/o addresses used */
+#endif /* PC98 */
#define ED_WD_PAGE_OFFSET 0 /* page offset for NIC access to mem */
OpenPOWER on IntegriCloud