summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/if_aereg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mac68k/dev/if_aereg.h')
-rw-r--r--sys/arch/mac68k/dev/if_aereg.h54
1 files changed, 11 insertions, 43 deletions
diff --git a/sys/arch/mac68k/dev/if_aereg.h b/sys/arch/mac68k/dev/if_aereg.h
index a63a60c8174..37aab45f81e 100644
--- a/sys/arch/mac68k/dev/if_aereg.h
+++ b/sys/arch/mac68k/dev/if_aereg.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: if_aereg.h,v 1.7 2005/03/04 00:38:37 martin Exp $ */
-/* $NetBSD: if_aereg.h,v 1.14 1997/02/24 07:34:20 scottr Exp $ */
+/* $OpenBSD: if_aereg.h,v 1.8 2007/01/22 13:17:45 martin Exp $ */
+/* $NetBSD: if_aereg.h,v 1.17 1998/08/12 07:19:09 scottr Exp $ */
/*
* National Semiconductor DS8390 NIC register definitions.
@@ -12,52 +12,16 @@
*/
/*
- * The following is a structure that we should be pulling from
- * dev/ic/dp8390reg.h, but since we have the card in x86 mode and
- * the std. include file assumes that big-endian processors will
- * have the card in m68k mode, we're hosed for the moment.
- * Fix this. -- XXX
+ * Memory offsets from slot base PA
*/
-struct ae_ring {
- u_char rsr; /* receiver status */
- u_char next_packet; /* pointer to next packet */
- u_short count; /* bytes in packet (length + 4) */
-};
-/*
- * Vendor types
- */
-#define AE_VENDOR_UNKNOWN 0xff /* Unknown network card */
-#define AE_VENDOR_APPLE 0x00 /* Apple Ethernet card */
-#define AE_VENDOR_INTERLAN 0x01 /* Interlan A310 card (GatorCard) */
-#define AE_VENDOR_DAYNA 0x02 /* DaynaPORT E/30s (and others?) */
-#define AE_VENDOR_ASANTE 0x03 /* Asante MacCon II/E */
-#define AE_VENDOR_FARALLON 0x04 /* Farallon EtherMac II-TP */
-#define AE_VENDOR_FOCUS 0x05 /* FOCUS Enhancements EtherLAN */
-#define AE_VENDOR_KINETICS 0x06 /* Kinetics EtherPort SE/30 */
-#define AE_VENDOR_CABLETRON 0x07 /* Cabletron Ethernet */
-
-/*
- * Compile-time config flags
- */
-/*
- * This sets the default for enabling/disablng the transceiver.
- */
-#define AE_FLAGS_DISABLE_TRANSCEIVER 0x0001
-
-/*
- * This disables the use of double transmit buffers.
- */
-#define AE_FLAGS_NO_DOUBLE_BUFFERING 0x0008
-
-/* */
#define GC_RESET_OFFSET 0x000c0000 /* writes here reset NIC */
#define GC_ROM_OFFSET 0x000c0000 /* address prom */
#define GC_DATA_OFFSET 0x000d0000 /* Offset to NIC memory */
#define GC_REG_OFFSET 0x000e0000 /* Offset to NIC registers */
-#define DP_ROM_OFFSET 0x000f0007 /* Offset to MAC address */
-#define DP_DATA_OFFSET 0x00000000 /* Offset to NIC memory */
-#define DP_REG_OFFSET 0x00080000 /* Offset to NIC registers */
+#define DP_ROM_OFFSET 0x000f0000
+#define DP_DATA_OFFSET 0x000d0000 /* Offset to SONIC memory */
+#define DP_REG_OFFSET 0x000e0000 /* Offset to SONIC registers */
#define AE_ROM_OFFSET 0x000f0000
#define AE_DATA_OFFSET 0x000d0000 /* Offset to NIC memory */
@@ -69,4 +33,8 @@ struct ae_ring {
#define KE_DATA_OFFSET 0x00000000 /* Offset to NIC memory */
#define KE_REG_OFFSET 0x00080003 /* Offset to NIC registers */
-#define AE_REG_SIZE 0x40 /* Size of register space */
+#define CT_ROM_OFFSET 0x00030000 /* ROM offset */
+#define CT_DATA_OFFSET 0x00000000 /* RAM offset */
+#define CT_REG_OFFSET 0x00010000 /* REG offset */
+
+#define AE_REG_SIZE 0x40 /* Size of register space */