|
|
1.1 root 1: /*++
2:
3: Copyright (c) 1990-1992 Microsoft Corporation
4:
5: Module Name:
6:
7: sonicdet.h
8:
9: Abstract:
10:
11: This file has processor-specific definitions.
12:
13: The overall structure is taken from the Lance driver
14: by Tony Ercolano.
15:
16: Author:
17:
18: Anthony V. Ercolano (tonye) creation-date 19-Jun-1990
19: Adam Barr (adamba) 5-Nov-1991
20:
21: Environment:
22:
23: This driver is expected at the equivalent of kernel mode.
24:
25: Architecturally, there is an assumption in this driver that we are
26: on a little endian machine.
27:
28: Revision History:
29:
30:
31: --*/
32:
33:
34: //
35: // Handy macros to read out of sonic ports.
36: //
37: // Because the use of PortShift makes the code more complicated,
38: // we make some assumptions about when it is needed. On alpha, we
39: // only support the EISA card; on MIPS, we only support the
40: // internal version unless MIPS_EISA_SONIC is defined.
41: //
42: // We define two constants, SONIC_EISA and SONIC_INTERNAL, if
43: // that particular adapter type is supported by this driver.
44: // This is to prevent unneeded code from being compiled in.
45: //
46:
47:
48: //
49: // alpha, only the EISA card is supported, the registers are always 16 bits.
50: //
51:
52: #define SONIC_WRITE_PORT(_Adapter, _Port, _Value) \
53: NdisRawWritePortUshort((_Adapter)->SonicPortAddress + (_Port * 2), (USHORT)(_Value))
54:
55: #define SONIC_READ_PORT(_Adapter, _Port, _Value) \
56: NdisRawReadPortUshort((_Adapter)->SonicPortAddress + (_Port * 2), (PUSHORT)(_Value))
57:
58:
59: #define SONIC_EISA
60: #undef SONIC_INTERNAL
61: #undef MIPS_EISA_SONIC // just in case it is defined
62:
63:
64: //
65: // The default adapter type is EISA
66: //
67:
68: #define SONIC_ADAPTER_TYPE_DEFAULT SONIC_ADAPTER_TYPE_EISA
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.