* Isolan AT 4141-0 Ethernet driver header file
* Copyright (C) 1993, Paul Richards. This software may be used, modified,
* copied, distributed, and sold, in both source and binary form provided
* that the above copyright and these terms are retained. Under no
* circumstances is the author responsible for the proper functioning
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
* $Id: if_isreg.h,v 1.3 1993/10/24 04:27:00 paul Exp $
* Initialize multicast address hashing registers to accept
* all multicasts (only used when in promiscuous mode)
#define MULTI_INIT_ADDR 0xff
#define MULTI_INIT_ADDR 0
/* Declarations specific to this driver */
#define PCnet_ISA_MASK 0x0
/* Control and status register 0 flags */
/* Coontrol and status register 3 flags */
/* Initialisation block (must be on word boundary) */
u_short mode
; /* Mode register */
u_char padr
[6]; /* Ethernet address */
u_char ladrf
[8]; /* Logical address filter (multicast) */
u_short rdra
; /* Low order pointer to receive ring */
u_short rlen
; /* High order pointer and no. rings */
u_short tdra
; /* Low order pointer to transmit ring */
u_short tlen
; /* High order pointer and no rings */
#define PROM 0x8000 /* Promiscuous */
#define INTL 0x0040 /* Internal loopback */
#define DRTY 0x0020 /* Disable retry */
#define COLL 0x0010 /* Force collision */
#define DTCR 0x0008 /* Disable transmit crc */
#define LOOP 0x0004 /* Loop back */
#define DTX 0x0002 /* Disable transmitter */
#define DRX 0x0001 /* Disable receiver */
/* Message descriptor structure */
/* Receive ring status flags */
#define OWN 0x8000 /* Owner bit, 0=host, 1=Lance */
#define MDERR 0x4000 /* Error */
#define FRAM 0x2000 /* Framing error error */
#define OFLO 0x1000 /* Silo overflow */
#define CRC 0x0800 /* CRC error */
#define RBUFF 0x0400 /* Buffer error */
#define STP 0x0200 /* Start of packet */
#define ENP 0x0100 /* End of packet */
/* Transmit ring flags */
#define MORE 0x1000 /* More than 1 retry */
#define ONE 0x0800 /* One retry */
#define DEF 0x0400 /* Deferred transmit */
#define TBUFF 0x8000 /* Buffer error */
#define UFLO 0x4000 /* Silo underflow */
#define LCOL 0x1000 /* Late collision */
#define LCAR 0x0800 /* Loss of carrier */
#define RTRY 0x0400 /* Tried 16 times */