1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | /* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************/ /* * mcf8390.h -- NS8390 support for ColdFire eval boards. * * (C) Copyright 1999-2000, Greg Ungerer (gerg@snapgear.com) * (C) Copyright 2000, Lineo (www.lineo.com) * (C) Copyright 2001, SnapGear (www.snapgear.com) * * 19990409 David W. Miller Converted from m5206ne.h for 5307 eval board * * Hacked support for m5206e Cadre III evaluation board * Fred Stevens (fred.stevens@pemstar.com) 13 April 1999 */ /****************************************************************************/ #ifndef mcf8390_h #define mcf8390_h /****************************************************************************/ /* * Support for NE2000 clones devices in ColdFire based boards. * Not all boards address these parts the same way, some use a * direct addressing method, others use a side-band address space * to access odd address registers, some require byte swapping * others do not. */ #define BSWAP(w) (((w) << 8) | ((w) >> 8)) #define RSWAP(w) (w) /* * Define the basic hardware resources of NE2000 boards. */ #if defined([31mCONFIG_ARN5206[0m) #define NE2000_ADDR 0x40000300 #define NE2000_ODDOFFSET 0x00010000 #define NE2000_ADDRSIZE 0x00020000 #define NE2000_IRQ_VECTOR 0xf0 #define NE2000_IRQ_PRIORITY 2 #define NE2000_IRQ_LEVEL 4 #define NE2000_BYTE volatile unsigned short #endif #if defined([31mCONFIG_M5206eC3[0m) #define NE2000_ADDR 0x40000300 #define NE2000_ODDOFFSET 0x00010000 #define NE2000_ADDRSIZE 0x00020000 #define NE2000_IRQ_VECTOR 0x1c #define NE2000_IRQ_PRIORITY 2 #define NE2000_IRQ_LEVEL 4 #define NE2000_BYTE volatile unsigned short #endif #if defined([31mCONFIG_M5206e[0m) && defined([31mCONFIG_NETtel[0m) #define NE2000_ADDR 0x30000300 #define NE2000_ADDRSIZE 0x00001000 #define NE2000_IRQ_VECTOR 25 #define NE2000_IRQ_PRIORITY 1 #define NE2000_IRQ_LEVEL 3 #define NE2000_BYTE volatile unsigned char #endif #if defined([31mCONFIG_M5307C3[0m) #define NE2000_ADDR 0x40000300 #define NE2000_ODDOFFSET 0x00010000 #define NE2000_ADDRSIZE 0x00020000 #define NE2000_IRQ_VECTOR 0x1b #define NE2000_BYTE volatile unsigned short #endif #if defined([31mCONFIG_M5272[0m) && defined([31mCONFIG_NETtel[0m) #define NE2000_ADDR 0x30600300 #define NE2000_ODDOFFSET 0x00008000 #define NE2000_ADDRSIZE 0x00010000 #define NE2000_IRQ_VECTOR 67 #undef BSWAP #define BSWAP(w) (w) #define NE2000_BYTE volatile unsigned short #undef RSWAP #define RSWAP(w) (((w) << 8) | ((w) >> 8)) #endif #if defined([31mCONFIG_M5307[0m) && defined([31mCONFIG_NETtel[0m) #define NE2000_ADDR0 0x30600300 #define NE2000_ADDR1 0x30800300 #define NE2000_ODDOFFSET 0x00008000 #define NE2000_ADDRSIZE 0x00010000 #define NE2000_IRQ_VECTOR0 27 #define NE2000_IRQ_VECTOR1 29 #undef BSWAP #define BSWAP(w) (w) #define NE2000_BYTE volatile unsigned short #undef RSWAP #define RSWAP(w) (((w) << 8) | ((w) >> 8)) #endif #if defined([31mCONFIG_M5307[0m) && defined([31mCONFIG_SECUREEDGEMP3[0m) #define NE2000_ADDR 0x30600300 #define NE2000_ODDOFFSET 0x00008000 #define NE2000_ADDRSIZE 0x00010000 #define NE2000_IRQ_VECTOR 27 #undef BSWAP #define BSWAP(w) (w) #define NE2000_BYTE volatile unsigned short #undef RSWAP #define RSWAP(w) (((w) << 8) | ((w) >> 8)) #endif #if defined([31mCONFIG_ARN5307[0m) #define NE2000_ADDR 0xfe600300 #define NE2000_ODDOFFSET 0x00010000 #define NE2000_ADDRSIZE 0x00020000 #define NE2000_IRQ_VECTOR 0x1b #define NE2000_IRQ_PRIORITY 2 #define NE2000_IRQ_LEVEL 3 #define NE2000_BYTE volatile unsigned short #endif #if defined([31mCONFIG_M5407C3[0m) #define NE2000_ADDR 0x40000300 #define NE2000_ODDOFFSET 0x00010000 #define NE2000_ADDRSIZE 0x00020000 #define NE2000_IRQ_VECTOR 0x1b #define NE2000_BYTE volatile unsigned short #endif /****************************************************************************/ #endif /* mcf8390_h */ |