1 /* 2 * Copyright (c) 2008 Travis Geiselbrecht 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 #ifndef __SMC91C96_P_H 9 #define __SMC91C96_P_H 10 11 // LAN91C96 stuffs 12 13 /* registers */ 14 15 #define SMC_BSR 14 16 17 /* bank 0 */ 18 #define SMC_TCR 0 19 #define SMC_EPHSR 2 20 #define SMC_RCR 4 21 #define SMC_ECR 6 22 #define SMC_MIR 8 23 #define SMC_MCR 10 24 25 /* bank 1 */ 26 #define SMC_CR 0 27 #define SMC_BAR 2 28 #define SMC_IAR0 4 29 #define SMC_IAR1 5 30 #define SMC_IAR2 6 31 #define SMC_IAR3 7 32 #define SMC_IAR4 8 33 #define SMC_IAR5 9 34 #define SMC_GPR 10 35 #define SMC_CTR 12 36 37 /* bank 2 */ 38 #define SMC_MMUCR 0 39 #define SMC_AUTOTX 1 40 #define SMC_PNR 2 41 #define SMC_ARR 3 42 #define SMC_FIFO 4 43 #define SMC_PTR 6 44 #define SMC_DATA0 8 45 #define SMC_DATA1 10 46 #define SMC_IST 12 47 #define SMC_ACK 12 48 #define SMC_MSK 13 49 50 /* bank 3 */ 51 #define SMC_MT0 0 52 #define SMC_MT1 1 53 #define SMC_MT2 2 54 #define SMC_MT3 3 55 #define SMC_MT4 4 56 #define SMC_MT5 5 57 #define SMC_MT6 6 58 #define SMC_MT7 7 59 #define SMC_MGMT 8 60 #define SMC_REV 10 61 #define SMC_ERCV 12 62 63 64 #endif 65 66