File:  [WindowsNT SDKs] / ntddk / src / network / sonic / i386 / sonicdet.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:31:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntddk-nov-1993, HEAD
Microsoft Windows NT Build 511 (DDK SDK) 11-01-1993

/*++

Copyright (c) 1990-1992  Microsoft Corporation

Module Name:

    sonicdet.h

Abstract:

    This file has processor-specific definitions.

    The overall structure is taken from the Lance driver
    by Tony Ercolano.

Author:

    Anthony V. Ercolano (tonye) creation-date 19-Jun-1990
    Adam Barr (adamba) 5-Nov-1991

Environment:

    This driver is expected at the equivalent of kernel mode.

    Architecturally, there is an assumption in this driver that we are
    on a little endian machine.

Revision History:


--*/


//
// Handy macros to read out of sonic ports.
//
// Because the use of PortShift makes the code more complicated,
// we make some assumptions about when it is needed. On x86, we
// only support the EISA card; on MIPS, we only support the
// internal version unless MIPS_EISA_SONIC is defined.
//
// We define two constants, SONIC_EISA and SONIC_INTERNAL, if
// that particular adapter type is supported by this driver.
// This is to prevent unneeded code from being compiled in.
//


//
// x86, only the EISA card is supported, the registers are always 16 bits.
//

#define SONIC_WRITE_PORT(_Adapter, _Port, _Value) \
    NdisRawWritePortUshort((_Adapter)->SonicPortAddress + (_Port * 2), (USHORT)(_Value))

#define SONIC_READ_PORT(_Adapter, _Port, _Value) \
    NdisRawReadPortUshort((_Adapter)->SonicPortAddress + (_Port * 2), (PUSHORT)(_Value))


#define SONIC_EISA
#undef SONIC_INTERNAL
#undef MIPS_EISA_SONIC  // just in case it is defined


//
// The default adapter type is EISA
//

#define SONIC_ADAPTER_TYPE_DEFAULT  SONIC_ADAPTER_TYPE_EISA

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.