1 /******************************************************************************
3 * Copyright(c) 2016 - 2018 Realtek Corporation. All rights reserved.
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.
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
14 ******************************************************************************/
16 #include "../../halmac_type.h"
17 #if HALMAC_USB_SUPPORT
18 #include "halmac_usb_8821c.h"
20 #if HALMAC_PCIE_SUPPORT
21 #include "halmac_pcie_8821c.h"
25 * ============ip sel item list============
27 * USB2 : usb2 phy, 1byte value
28 * USB3 : usb3 phy, 2byte value
29 * PCIE1 : pcie gen1 mdio, 2byte value
30 * PCIE2 : pcie gen2 mdio, 2byte value
32 * USB2, USB3, PCIE1, PCIE2 : mac ip, 1byte value
35 * PCIE1, PCIE2 : pcie dbi, 1byte value
38 #if HALMAC_8821C_SUPPORT
40 struct halmac_intf_phy_para usb2_phy_param_8821c[] = {
41 /* {offset, value, ip sel, cut mask, platform mask} */
44 HALMAC_INTF_PHY_CUT_ALL,
45 HALMAC_INTF_PHY_PLATFORM_ALL},
48 struct halmac_intf_phy_para usb3_phy_param_8821c[] = {
49 /* {offset, value, cut mask, platform mask} */
52 HALMAC_INTF_PHY_CUT_ALL,
53 HALMAC_INTF_PHY_PLATFORM_ALL},
56 struct halmac_intf_phy_para pcie_gen1_phy_param_8821c[] = {
57 /* {offset, value, ip sel, cut mask, platform mask} */
60 HALMAC_INTF_PHY_CUT_ALL,
61 HALMAC_INTF_PHY_PLATFORM_ALL},
64 HALMAC_INTF_PHY_CUT_ALL,
65 HALMAC_INTF_PHY_PLATFORM_ALL},
68 struct halmac_intf_phy_para pcie_gen2_phy_param_8821c[] = {
69 /* {offset, value, ip sel, cut mask, platform mask} */
72 HALMAC_INTF_PHY_CUT_ALL,
73 HALMAC_INTF_PHY_PLATFORM_ALL},
76 #endif /* HALMAC_8821C_SUPPORT */