1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright (C) ASPEED Technology Inc. 4 */ 5 6 #ifndef MAC_H 7 #define MAC_H 8 9 10 #include <common.h> 11 #include <command.h> 12 13 #include "ncsi.h" 14 #include <asm/io.h> 15 16 // -------------------------------------------------------------- 17 // Define 18 // -------------------------------------------------------------- 19 //#define Enable_MAC_SWRst //[off] 20 #define Enable_No_IOBoundary //[ON] 21 //#define Enable_Dual_Mode //[off] 22 23 //#define Enable_Runt 24 //#define Enable_ShowBW 25 26 #define TX_DELAY_SCALING 2 27 #define RX_DELAY_SCALING 2 28 29 //#define SelectSimpleBoundary //[off] Using in debug 30 //#define SelectSimpleData //[off] Using in debug 31 //#define SelectSimpleLength 1514 //[off] 60(0x3c) ~ 1514(0x5ea); 1512(0x5e8) 32 //#define SelectSimpleDA //[off] Using in debug 33 //#define SelectSimpleDes //[off] 34 //#define SelectLengthInc //[off] Using in debug 35 36 #define SimpleData_Fix //[ON] Using in debug 37 #define SimpleData_FixNum 12 38 #define SimpleData_FixVal00 0x00000000 //[0]no SelectSimpleDA: (60: 0412 8908)(1512: e20d e9da) 39 #define SimpleData_FixVal01 0xffffffff //[0]no SelectSimpleDA: (60: f48c f14d)(1512: af05 260c) 40 #define SimpleData_FixVal02 0x55555555 //[0]no SelectSimpleDA: (60: 5467 5ecb)(1512: d90a 5368) 41 #define SimpleData_FixVal03 0xaaaaaaaa //[0]no SelectSimpleDA: (60: a4f9 268e)(1512: 9402 9cbe) 42 #define SimpleData_FixVal04 0x5a5a5a5a //[1]no SelectSimpleDA: (60: 7f01 e22d)(1512: 4fd3 8012) 43 #define SimpleData_FixVal05 0xc3c3c3c3 //[1]no SelectSimpleDA: (60: 5916 02d5)(1512: 99f1 6127) 44 #define SimpleData_FixVal06 0x96969696 //[1]no SelectSimpleDA: (60: 0963 d516)(1512: a2f6 db95) 45 #define SimpleData_FixVal07 0xf0f0f0f0 //[1]no SelectSimpleDA: (60: dfea 4dab)(1512: 39dc f576) 46 #define SimpleData_FixVal08 0x5555aaaa //[2]no SelectSimpleDA: (60: b61b 5777)(1512: 4652 ddb0) 47 #define SimpleData_FixVal09 0xffff0000 //[2]no SelectSimpleDA: (60: 16f0 f8f1)(1512: 305d a8d4) 48 #define SimpleData_FixVal10 0x5a5aa5a5 //[2]no SelectSimpleDA: (60: 9d7d eb91)(1512: d08b 0eca) 49 #define SimpleData_FixVal11 0xc3c33c3c //[2]no SelectSimpleDA: (60: bb6a 0b69)(1512: 06a9 efff) 50 51 #define SimpleData_XORVal 0x00000000 52 //#define SimpleData_XORVal 0xffffffff 53 54 #define SelectSimpleDA_Dat0 0x67052301 55 #define SelectSimpleDA_Dat1 0xe0cda089 56 #define SelectSimpleDA_Dat2 0x98badcfe 57 58 #define SelectWOLDA_DatH 0x206a 59 #define SelectWOLDA_DatL 0x8a374d9b 60 61 /* MByte per second to move data */ 62 #define MOVE_DATA_MB_SEC 800 63 64 //--------------------------------------------------------- 65 // Frame size 66 //--------------------------------------------------------- 67 #define ENABLE_RAND_SIZE 0 68 #define RAND_SIZE_SED 0xffccd 69 #define RAND_SIZE_SIMPLE 0 70 #define RAND_SIZE_MIN 60 71 #define RAND_SIZE_MAX 1514 72 73 #define FRAME_SELH_PERD 7 74 #ifdef SelectSimpleLength 75 // #define FRAME_LENH ( SelectSimpleLength + 1 ) 76 // #define FRAME_LENL ( SelectSimpleLength ) 77 #define FRAME_LENH SelectSimpleLength 78 #define FRAME_LENL SelectSimpleLength 79 #else 80 // #define FRAME_LENH 1514 //max:1514 81 // #define FRAME_LENL 1513 //max:1514 82 #define FRAME_LENH 1514 //max:1514 83 #define FRAME_LENL 1514 //max:1514 84 #endif 85 86 #endif // MAC_H 87