blob: 0baf210069013c82666359ec522317ca070ce5c1 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001/*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#ifndef __SMC91C96_P_H
24#define __SMC91C96_P_H
25
26// LAN91C96 stuffs
27
28/* registers */
29
30#define SMC_BSR 14
31
32/* bank 0 */
33#define SMC_TCR 0
34#define SMC_EPHSR 2
35#define SMC_RCR 4
36#define SMC_ECR 6
37#define SMC_MIR 8
38#define SMC_MCR 10
39
40/* bank 1 */
41#define SMC_CR 0
42#define SMC_BAR 2
43#define SMC_IAR0 4
44#define SMC_IAR1 5
45#define SMC_IAR2 6
46#define SMC_IAR3 7
47#define SMC_IAR4 8
48#define SMC_IAR5 9
49#define SMC_GPR 10
50#define SMC_CTR 12
51
52/* bank 2 */
53#define SMC_MMUCR 0
54#define SMC_AUTOTX 1
55#define SMC_PNR 2
56#define SMC_ARR 3
57#define SMC_FIFO 4
58#define SMC_PTR 6
59#define SMC_DATA0 8
60#define SMC_DATA1 10
61#define SMC_IST 12
62#define SMC_ACK 12
63#define SMC_MSK 13
64
65/* bank 3 */
66#define SMC_MT0 0
67#define SMC_MT1 1
68#define SMC_MT2 2
69#define SMC_MT3 3
70#define SMC_MT4 4
71#define SMC_MT5 5
72#define SMC_MT6 6
73#define SMC_MT7 7
74#define SMC_MGMT 8
75#define SMC_REV 10
76#define SMC_ERCV 12
77
78
79#endif
80