1 #ifndef _GMACSL_LOC_H
2 #define _GMACSL_LOC_H
3 /*****************************************************************************************
4 * FILE PURPOSE: Local definitions for the cpgmac sliver
5 *****************************************************************************************
6 * FILE NAME: gmacsl_loc.h
7 *
8 * DESCRIPTION: Defines the peripheral registers used to configure the cpgmac sliver
9 *
10 ******************************************************************************************/
12 /* Register offsets */
13 #define CPGMACSL_REG_ID 0x00
14 #define CPGMACSL_REG_CTL 0x04
15 #define CPGMACSL_REG_STATUS 0x08
16 #define CPGMACSL_REG_RESET 0x0c
17 #define CPGMACSL_REG_MAXLEN 0x10
18 #define CPGMACSL_REG_BOFF 0x14
19 #define CPGMACSL_REG_RX_PAUSE 0x18
20 #define CPGMACSL_REG_TX_PAURSE 0x1c
21 #define CPGMACSL_REG_EM_CTL 0x20
22 #define CPGMACSL_REG_PRI 0x24
25 /* Soft reset register values */
26 #define CPGMAC_REG_RESET_VAL_RESET_MASK (1 << 0)
27 #define CPGMAC_REG_RESET_VAL_RESET (1 << 0)
29 /* Maxlen register values */
30 #define CPGMAC_REG_MAXLEN_LEN 0x3fff
35 #endif /* _GMACSL_LOC_H */