Lines Matching +full:ast2500 +full:- +full:mac

1 /* SPDX-License-Identifier: GPL-2.0+ */
11 #include "mac.h"
13 //---------------------------------------------------------
15 //---------------------------------------------------------
33 //---------------------------------------------------------
35 //---------------------------------------------------------
69 //---------------------------------------------------------
71 //---------------------------------------------------------
88 /* MAC information */
90 /* old interface - deprecated */
118 //---------------------------------------------------------
120 //---------------------------------------------------------
121 #define ZeroCopy_OFFSET (( eng->run.tm_tx_only ) ? 0 : 2)
123 // --------------------------------- DRAM_MapAdr = tdes_base
125 // ------------------------- DRAM_MapAdr + 0x040000 = rdes_base
127 // -------------------------
129 // -------------------------
131 // --------------------------------- DRAM_MapAdr + 0x100000 = DMA_BASE --------------------…
134 // ( Tx/Rx ) ------------------------- / --------------------…
137 // ------------------------- --------------------…
140 // -------------------------
143 // -------------------------
146 // -------------------------
149 // -------------------------
152 // -------------------------
155 // ---------------------------------
162 #define TDES_IniVal (0xb0000000 + eng->dat.FRAME_LEN_Cur)
169 #define AT_MEMRW_BUF(x) ((x) - ASPEED_DRAM_BASE)
172 //---------------------------------------------------------
174 //---------------------------------------------------------
175 #define Err_Flag_MACMode ( 1 << 0 ) // MAC interface mode mismatch
197 #define Err_Flag_MHCLK_Ratio ( 1 << 22 ) // Error setting of MAC AHB bus…
200 …lag_RxErFloatting ( 1 << 1 ) // NCSI RXER pin may be floatting to the MAC
219 #define NCSI_Flag_Enable_Set_MAC_Address ( 1 << 3 ) // Time out when Enable Set MAC
231 //---------------------------------------------------------
233 //---------------------------------------------------------
242 #define DMA_BufSize (((((p_eng->dat.Des_Num + 15) * DMA_PakSize) >> 2) << 2))
245 (4 + ((((p_eng->dat.Des_Num + 15) * DMA_PakSize) >> 2) << 2))
247 #define DMA_BufNum (DMA_BUF_SIZE / (p_eng->dat.DMABuf_Size))
251 (DMA_BASE + ((((x) % p_eng->dat.DMABuf_Num)) * p_eng->dat.DMABuf_Size))
256 #define PktByteSize ( ( ( ( ZeroCopy_OFFSET + eng->dat.FRAME_LEN_Cur -
258 //---------------------------------------------------------
260 //---------------------------------------------------------
281 //---------------------------------------------------------
283 //---------------------------------------------------------
291 //---------------------------------------------------------
293 //---------------------------------------------------------
331 //---------------------------------------------------------
333 //---------------------------------------------------------
334 //NC-SI Command Packet
339 uint16_t EtherType; // DMTF NC-SI, it should be 0x88F8
340 //NC-SI Control Packet
342 …unsigned char Header_Revision; // For NC-SI 1.0 spec, this field has to set 0x…
363 //NC-SI Response Packet
367 uint16_t EtherType; //DMTF NC-SI
368 //NC-SI Control Packet
370 unsigned char Header_Revision; //For NC-SI 1.0 spec, this field has to set 0x01
424 uint8_t ast2500; member
495 uint32_t timeout_th; /* time out threshold (varies with run-speed) */
812 // For mac.c
822 …const uint8_t IOValue_Array_A0[16] = {8,1, 10,3, 12,5, 14,7, 0,9, 2,11, 4,13, 6,15}; // AST2300-A0