1 /* 2 * This program is distributed in the hope that it will be useful, 3 * but WITHOUT ANY WARRANTY; without even the implied warranty of 4 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5 * GNU General Public License for more details. 6 * 7 * You should have received a copy of the GNU General Public License 8 * along with this program; if not, write to the Free Software 9 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 10 */ 11 12 #ifndef MAC_H 13 #define MAC_H 14 15 16 #include <common.h> 17 #include <command.h> 18 19 #include "ncsi.h" 20 #include <asm/io.h> 21 22 // -------------------------------------------------------------- 23 // Define 24 // -------------------------------------------------------------- 25 #define ENABLE_DASA //[ON] 26 //#define Enable_MAC_SWRst //[off] 27 #define Enable_No_IOBoundary //[ON] 28 //#define Enable_Dual_Mode //[off] 29 30 //#define Enable_Runt 31 //#define Enable_ShowBW 32 33 #define TX_DELAY_SCALING 2 34 #define RX_DELAY_SCALING 2 35 36 //#define SelectSimpleBoundary //[off] Using in debug 37 //#define SelectSimpleData //[off] Using in debug 38 //#define SelectSimpleLength 1514 //[off] 60(0x3c) ~ 1514(0x5ea); 1512(0x5e8) 39 //#define SelectSimpleDA //[off] Using in debug 40 //#define SelectSimpleDes //[off] 41 //#define SelectLengthInc //[off] Using in debug 42 43 #define SimpleData_Fix //[ON] Using in debug 44 #define SimpleData_FixNum 12 45 #define SimpleData_FixVal00 0x00000000 //[0]no SelectSimpleDA: (60: 0412 8908)(1512: e20d e9da) 46 #define SimpleData_FixVal01 0xffffffff //[0]no SelectSimpleDA: (60: f48c f14d)(1512: af05 260c) 47 #define SimpleData_FixVal02 0x55555555 //[0]no SelectSimpleDA: (60: 5467 5ecb)(1512: d90a 5368) 48 #define SimpleData_FixVal03 0xaaaaaaaa //[0]no SelectSimpleDA: (60: a4f9 268e)(1512: 9402 9cbe) 49 #define SimpleData_FixVal04 0x5a5a5a5a //[1]no SelectSimpleDA: (60: 7f01 e22d)(1512: 4fd3 8012) 50 #define SimpleData_FixVal05 0xc3c3c3c3 //[1]no SelectSimpleDA: (60: 5916 02d5)(1512: 99f1 6127) 51 #define SimpleData_FixVal06 0x96969696 //[1]no SelectSimpleDA: (60: 0963 d516)(1512: a2f6 db95) 52 #define SimpleData_FixVal07 0xf0f0f0f0 //[1]no SelectSimpleDA: (60: dfea 4dab)(1512: 39dc f576) 53 #define SimpleData_FixVal08 0x5555aaaa //[2]no SelectSimpleDA: (60: b61b 5777)(1512: 4652 ddb0) 54 #define SimpleData_FixVal09 0xffff0000 //[2]no SelectSimpleDA: (60: 16f0 f8f1)(1512: 305d a8d4) 55 #define SimpleData_FixVal10 0x5a5aa5a5 //[2]no SelectSimpleDA: (60: 9d7d eb91)(1512: d08b 0eca) 56 #define SimpleData_FixVal11 0xc3c33c3c //[2]no SelectSimpleDA: (60: bb6a 0b69)(1512: 06a9 efff) 57 58 #define SimpleData_XORVal 0x00000000 59 //#define SimpleData_XORVal 0xffffffff 60 61 #define SelectSimpleDA_Dat0 0x67052301 62 #define SelectSimpleDA_Dat1 0xe0cda089 63 #define SelectSimpleDA_Dat2 0x98badcfe 64 65 #define SelectWOLDA_DatH 0x206a 66 #define SelectWOLDA_DatL 0x8a374d9b 67 68 /* MByte per second to move data */ 69 #define MOVE_DATA_MB_SEC 800 70 71 //--------------------------------------------------------- 72 // Frame size 73 //--------------------------------------------------------- 74 #define ENABLE_RAND_SIZE 0 75 #define RAND_SIZE_SED 0xffccd 76 #define RAND_SIZE_SIMPLE 0 77 #define RAND_SIZE_MIN 60 78 #define RAND_SIZE_MAX 1514 79 80 #define FRAME_SELH_PERD 7 81 #ifdef SelectSimpleLength 82 // #define FRAME_LENH ( SelectSimpleLength + 1 ) 83 // #define FRAME_LENL ( SelectSimpleLength ) 84 #define FRAME_LENH SelectSimpleLength 85 #define FRAME_LENL SelectSimpleLength 86 #else 87 // #define FRAME_LENH 1514 //max:1514 88 // #define FRAME_LENL 1513 //max:1514 89 #define FRAME_LENH 1514 //max:1514 90 #define FRAME_LENL 1514 //max:1514 91 #endif 92 93 #endif // MAC_H 94