From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/ntos/ndis/dc21x4/d21x4hrd.h | 828 ++++++++++++++++++++++++++++++++++++ 1 file changed, 828 insertions(+) create mode 100644 private/ntos/ndis/dc21x4/d21x4hrd.h (limited to 'private/ntos/ndis/dc21x4/d21x4hrd.h') diff --git a/private/ntos/ndis/dc21x4/d21x4hrd.h b/private/ntos/ndis/dc21x4/d21x4hrd.h new file mode 100644 index 000000000..35fdba3fc --- /dev/null +++ b/private/ntos/ndis/dc21x4/d21x4hrd.h @@ -0,0 +1,828 @@ +/* + * file: d21x4hrd.h + * + * Copyright (C) 1992-1995 by + * Digital Equipment Corporation, Maynard, Massachusetts. + * All rights reserved. + * + * This software is furnished under a license and may be used and copied + * only in accordance of the terms of such license and with the + * inclusion of the above copyright notice. This software or any other + * copies thereof may not be provided or otherwise made available to any + * other person. No title to and ownership of the software is hereby + * transferred. + * + * The information in this software is subject to change without notice + * and should not be construed as a commitment by digital equipment + * corporation. + * + * Digital assumes no responsibility for the use or reliability of its + * software on equipment which is not supplied by digital. + * + * + * Abstract: This file contains the hardware related definitions for the + * DEC's DC21X4 NDIS 4.0 miniport driver + * + * Author: Philippe Klein + * + * Revision History: + * + * phk 28-Aug-1994 Initial entry + * + * +-*/ + + + + + + + + + + +// Adapter ID & revisions + +#define DC21040_CFID 0x00021011 +#define DC21040_REV1 0x00 +#define DC21040_REV2_0 0x20 +#define DC21040_REV2_2 0x22 + + +#define DC21041_CFID 0x00141011 +#define DC21041_REV1_0 0x10 +#define DC21041_REV1_1 0x11 +#define DC21041_REV2_0 0x20 + +#define DC21140_CFID 0x00091011 +#define DC21140_REV1_1 0x11 +#define DC21140_REV1_2 0x12 +#define DC21140_REV2_0 0x20 +#define DC21140_REV2_1 0x21 +#define DC21140_REV2_2 0x22 + +#define DC21142_CFID 0x00191011 +#define DC21142_REV1 0x10 +#define DC21142_REV1_0 0x10 +#define DC21142_REV1_1 0x11 + + +typedef enum _CFID_INDEX { + DefaultCfidIndex, + DC21040CfidIndex, + DC21041CfidIndex, + DC21140CfidIndex, + MAX_CFIDS +} CFID_INDEX; + + +#define DE425_COMPRESSED_ID 0x5042A310 //"DEC4250" +#define DC21X4_INTERRUPT_LEVEL_SENSITIVE 0 +#define DC21X4_INTERRUPT_LATCHED 1 + +// Media types + +typedef enum _MEDIA_TYPE { + Medium10BaseT, + Medium10Base2, + Medium10Base5, + Medium100BaseTx, + Medium10BaseTFd, + Medium100BaseTxFd, + Medium100BaseT4, + Medium100BaseFx, + Medium100BaseFxFd, + MAX_MEDIA_TABLE +} MEDIA_TYPE; + +#define Medium10Base2_5 0xff + + +// PHY Media + +typedef enum _PHY_MEDIA_TYPE { + MediumMii10BaseT=MAX_MEDIA_TABLE, + MediumMii10BaseTFd, + MediumMii10Base2, + MediumMii10Base5, + MediumMii100BaseTx, + MediumMii100BaseTxFd, + MediumMii100BaseT4, + MediumMii100BaseFx, + MediumMii100BaseFxFd, + MAX_PHY_MEDIA +} PHY_MEDIA_TYPE; + + +#define MEDIA_MASK 0x00ff +#define CONTROL_MASK 0xFF00 + +// Media modes + +#define MEDIA_NWAY 0x0100 +#define MEDIA_FULL_DUPLEX 0x0200 +#define MEDIA_LINK_DISABLE 0x0400 +#define MEDIA_AUTOSENSE 0x0800 + +#define MediaAutoSense (MEDIA_AUTOSENSE | MEDIA_NWAY) +#define MediaAutoSenseNoNway (MEDIA_AUTOSENSE) + +#define Medium10BaseTNway (Medium10BaseT | MEDIA_NWAY) +#define Medium10BaseTFullDuplex (Medium10BaseTFd | MEDIA_FULL_DUPLEX) +#define Medium10BaseTLinkDisable (Medium10BaseT | MEDIA_LINK_DISABLE) + +#define Medium100BaseTxFullDuplex (Medium100BaseTxFd | MEDIA_FULL_DUPLEX) + + +#define MediumMii10BaseTFullDuplex (MediumMii10BaseTFd | MEDIA_FULL_DUPLEX) +#define MediumMii100BaseTxFullDuplex (MediumMii100BaseTxFd | MEDIA_FULL_DUPLEX) +#define MediaMiiAutoSense (MediumMii10BaseT | MEDIA_AUTOSENSE) + + +// Media Capable mask + +#define MEDIUM_10BT (1<