]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0079.git/blob - EC_Master_SysBios_Am572x/Workspace/SYSBIOS_AM57xx/emllICSS/icssPrivate.h
EC-Mater + TTS (PDK1.0.6 PSDK3.3.0.4)
[apps/tidep0079.git] / EC_Master_SysBios_Am572x / Workspace / SYSBIOS_AM57xx / emllICSS / icssPrivate.h
1 /*-----------------------------------------------------------------------------
2  * icssPrivate.h            Header file
3  * Copyright                acontis technologies GmbH, Weingarten, Germany
4  * Response                 Kai Olbrich
5  * Description              Register Description for Texas Instruments CPSW
6  *---------------------------------------------------------------------------*/
8 #ifndef INC_ICSSPRIVATE_H
9 #define INC_ICSSPRIVATE_H
11 //
12 // Common defines
13 //
15 //PC-- from CPSWPrivate.h
16 #define BUFFER_MAGIC_RX        0xBEEFBABE
17 #define BUFFER_MAGIC_TX        0xDEADBEEF
18 #define ICSS_RXDESCNT          MAX_NUM_BUF                    // Receive descriptor buffer count (!!must be power of 2, max 256!!)
19 #define ICSS_RXBUFLEN          BUF_SIZE                   // RX buffer length (!!should be power of 2!!)
20 #define ICSS_TXDESCNT          MAX_NUM_BUF                    // Transmit descriptor buffer count (!!must be power of 2, max 256!!)
21 #define ICSS_TXBUFLEN          BUF_SIZE                   // TX buffer length (!!should be power of 2!!)
23 typedef struct _ICSS_SLIVER_REGS
24 {
25   volatile EC_T_DWORD   SL_IDVER;                               // 0x00 CPGMAC_SL ID/Version
26   volatile EC_T_DWORD   SL_MacControl;                  // 0x04 CPGMAC_SL Mac Control
27   volatile EC_T_DWORD   SL_MacStatus;                   // 0x08 CPGMAC_SL Mac Status
28   volatile EC_T_DWORD   SL_Soft_Reset;                  // 0x0c CPGMAC_SL Soft Reset
29   volatile EC_T_DWORD   SL_Rx_Maxlen;                   // 0x10 CPGMAC_SL Receive Maximum Length
30   volatile EC_T_DWORD   SL_BoffTest;                    // 0x14 CPGMAC_SL Backoff Test Register
31   volatile EC_T_DWORD   SL_Rx_Pause;                    // 0x18 CPGMAC_SL Receive Pause Timer Register
32   volatile EC_T_DWORD   SL_Tx_Pause;                    // 0x1c CPGMAC_SL Transmit Pause Timer Register
33   volatile EC_T_DWORD   SL_EMControl;                   // 0x20 CPGMAC_SL Emulation Control
34   volatile EC_T_DWORD   SL_Rx_Pri_Map;          // 0x24 CPGMAC_SL Rx Pkt Pri to Header Pri Mapping
35 } ICSS_SLIVER_REGS, *PICSS_SLIVER_REGS;
37 typedef struct _ICSS_SLAVE_REGS
38 {
39   volatile EC_T_DWORD   Max_Blks;                       // CPSW_3G Port Maximum FIFO blocks Register
40   volatile EC_T_DWORD   BLK_CNT;                           // CPSW_3G Port FIFO Block Usage Count (read only)
41   volatile EC_T_DWORD   Tx_In_Ctl;                      // CPSW_3G Port Transmit FIFO Control
42   volatile EC_T_DWORD   Port_VLAN;                      // CPSW_3G Port VLAN Register
43   volatile EC_T_DWORD   Tx_Pri_Map;                     // CPSW_3G Port Tx Header Pri to Switch Pri Mapping Register
44   volatile EC_T_DWORD   TS_CTL;                         // CPSW_3G Port Time Sync Control Register
45   volatile EC_T_DWORD   TS_SEQ_LTYPE;           // CPSW_3G Port Time Sync LTYPE (and SEQ_ID_OFFSET)
46   volatile EC_T_DWORD   TS_VLAN;                           // CPSW_3G Port Time Sync VLAN2 and VLAN2 Register
47   volatile EC_T_DWORD   SL_SA_LO;                       // CPSW_3G CPGMAC_SL Source Address Low Register
48   volatile EC_T_DWORD   SL_SA_HI;                       // CPSW_3G CPGMAC_SL Source Address High Register
49   volatile EC_T_DWORD   Send_Percent;           // CPSW_3G Port Transmit Queue Send Percentages
50 } ICSS_SLAVE_REGS, *PICSS_SLAVE_REGS;
53 #endif /* INC_ICSSPRIVATE_H */