1 /****************************************************************************** 2 * 3 * Copyright(c) 2016 - 2019 Realtek Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 ******************************************************************************/ 15 16 #ifndef HALMAC_INTF_PHY_CMD 17 #define HALMAC_INTF_PHY_CMD 18 19 /* Cut mask */ 20 enum halmac_intf_phy_cut { 21 HALMAC_INTF_PHY_CUT_TESTCHIP = BIT(0), 22 HALMAC_INTF_PHY_CUT_A = BIT(1), 23 HALMAC_INTF_PHY_CUT_B = BIT(2), 24 HALMAC_INTF_PHY_CUT_C = BIT(3), 25 HALMAC_INTF_PHY_CUT_D = BIT(4), 26 HALMAC_INTF_PHY_CUT_E = BIT(5), 27 HALMAC_INTF_PHY_CUT_F = BIT(6), 28 HALMAC_INTF_PHY_CUT_G = BIT(7), 29 HALMAC_INTF_PHY_CUT_ALL = 0x7FFF, 30 }; 31 32 /* IP selection */ 33 enum halmac_ip_sel { 34 HALMAC_IP_INTF_PHY = 0, 35 HALMAC_IP_SEL_MAC = 1, 36 HALMAC_IP_PCIE_DBI = 2, 37 HALMAC_IP_SEL_UNDEFINE = 0x7FFF, 38 }; 39 40 /* Platform mask */ 41 enum halmac_intf_phy_platform { 42 HALMAC_INTF_PHY_PLATFORM_ALL = BIT(0), 43 HALMAC_INTF_PHY_PLATFORM_ASUS = BIT(1), 44 HALMAC_INTF_PHY_PLATFORM_LENOVO_V540 = BIT(2), 45 HALMAC_INTF_PHY_PLATFORM_DHC = BIT(3), 46 HALMAC_INTF_PHY_PLATFORM_FOR_ALL = 0x7FFF, 47 }; 48 49 #endif 50