1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2020 Synopsys, Inc. and/or its affiliates.
4 * Synopsys DesignWare XLGMAC definitions.
7 #ifndef __STMMAC_DWXLGMAC2_H__
8 #define __STMMAC_DWXLGMAC2_H__
11 #define XLGMAC_CONFIG_SS GENMASK(30, 28)
12 #define XLGMAC_CONFIG_SS_SHIFT 28
13 #define XLGMAC_CONFIG_SS_40G (0x0 << XLGMAC_CONFIG_SS_SHIFT)
14 #define XLGMAC_CONFIG_SS_25G (0x1 << XLGMAC_CONFIG_SS_SHIFT)
15 #define XLGMAC_CONFIG_SS_50G (0x2 << XLGMAC_CONFIG_SS_SHIFT)
16 #define XLGMAC_CONFIG_SS_100G (0x3 << XLGMAC_CONFIG_SS_SHIFT)
17 #define XLGMAC_CONFIG_SS_10G (0x4 << XLGMAC_CONFIG_SS_SHIFT)
18 #define XLGMAC_CONFIG_SS_2500 (0x6 << XLGMAC_CONFIG_SS_SHIFT)
19 #define XLGMAC_CONFIG_SS_1000 (0x7 << XLGMAC_CONFIG_SS_SHIFT)
20 #define XLGMAC_RXQ_ENABLE_CTRL0 0x00000140
22 #endif /* __STMMAC_DWXLGMAC2_H__ */