Home | History | Annotate | Line # | Download | only in dev
if_aereg.h revision 1.9
      1  1.9  briggs /*	$NetBSD: if_aereg.h,v 1.9 1995/04/21 02:47:55 briggs Exp $	*/
      2  1.3     cgd 
      3  1.1  briggs /*
      4  1.6  briggs  * National Semiconductor DS8390 NIC register definitions.
      5  1.4  briggs  *
      6  1.6  briggs  * Copyright (C) 1993, David Greenman.  This software may be used, modified,
      7  1.6  briggs  * copied, distributed, and sold, in both source and binary form provided that
      8  1.6  briggs  * the above copyright and these terms are retained.  Under no circumstances is
      9  1.6  briggs  * the author responsible for the proper functioning of this software, nor does
     10  1.6  briggs  * the author assume any responsibility for damages incurred with its use.
     11  1.1  briggs  */
     12  1.8  briggs 
     13  1.8  briggs /*
     14  1.8  briggs  * The following is a structure that we should be pulling from
     15  1.8  briggs  * dev/ic/dp8390.h, but since we have the card in x86 mode and
     16  1.8  briggs  * the std. include file assumes that big-endian processors will
     17  1.8  briggs  * have the card in m68k mode, we're hosed for the moment.
     18  1.8  briggs  * Fix this.  --  XXX
     19  1.8  briggs  */
     20  1.9  briggs struct ae_ring {
     21  1.9  briggs 	u_char  rsr;		/* receiver status */
     22  1.9  briggs 	u_char  next_packet;	/* pointer to next packet */
     23  1.9  briggs 	u_short count;		/* bytes in packet (length + 4) */
     24  1.8  briggs };
     25  1.1  briggs /*
     26  1.1  briggs  * Vendor types
     27  1.1  briggs  */
     28  1.6  briggs #define AE_VENDOR_UNKNOWN	0xFF	/* Unknown network card */
     29  1.6  briggs #define AE_VENDOR_APPLE		0x00	/* Apple Ethernet card */
     30  1.6  briggs #define AE_VENDOR_INTERLAN	0x01	/* Interlan A310 card (GatorCard) */
     31  1.6  briggs #define AE_VENDOR_DAYNA		0x02	/* DaynaPORT E/30s (and others?) */
     32  1.6  briggs #define AE_VENDOR_ASANTE	0x03	/* Asante MacCon II/E */
     33  1.1  briggs 
     34  1.1  briggs /*
     35  1.1  briggs  * Compile-time config flags
     36  1.1  briggs  */
     37  1.1  briggs /*
     38  1.6  briggs  * This sets the default for enabling/disablng the tranceiver.
     39  1.1  briggs  */
     40  1.6  briggs #define AE_FLAGS_DISABLE_TRANCEIVER	0x0001
     41  1.1  briggs 
     42  1.1  briggs /*
     43  1.1  briggs  * This disables the use of double transmit buffers.
     44  1.1  briggs  */
     45  1.6  briggs #define AE_FLAGS_NO_DOUBLE_BUFFERING	0x0008
     46  1.1  briggs 
     47  1.1  briggs /* */
     48  1.9  briggs #define	GC_RESET_OFFSET		0x000c0000	/* writes here reset NIC */
     49  1.9  briggs #define	GC_ROM_OFFSET		0x000c0000	/* address prom */
     50  1.9  briggs #define GC_DATA_OFFSET		0x000d0000	/* Offset to NIC memory */
     51  1.9  briggs #define GC_NIC_OFFSET		0x000e0000	/* Offset to NIC registers */
     52  1.2  briggs 
     53  1.2  briggs #define DP_ROM_OFFSET		0x000f0000
     54  1.9  briggs #define DP_DATA_OFFSET		0x000d0000	/* Offset to SONIC memory */
     55  1.9  briggs #define DP_NIC_OFFSET		0x000e0000	/* Offset to SONIC registers */
     56  1.1  briggs 
     57  1.1  briggs #define AE_ROM_OFFSET		0x000f0000
     58  1.9  briggs #define AE_DATA_OFFSET		0x000d0000	/* Offset to NIC memory */
     59  1.9  briggs #define AE_NIC_OFFSET		0x000e0000	/* Offset to NIC registers */
     60