halmac_intf_phy_cmd.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2018 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. #ifndef HALMAC_INTF_PHY_CMD
  16. #define HALMAC_INTF_PHY_CMD
  17. /* Cut mask */
  18. enum halmac_intf_phy_cut {
  19. HALMAC_INTF_PHY_CUT_TESTCHIP = BIT(0),
  20. HALMAC_INTF_PHY_CUT_A = BIT(1),
  21. HALMAC_INTF_PHY_CUT_B = BIT(2),
  22. HALMAC_INTF_PHY_CUT_C = BIT(3),
  23. HALMAC_INTF_PHY_CUT_D = BIT(4),
  24. HALMAC_INTF_PHY_CUT_E = BIT(5),
  25. HALMAC_INTF_PHY_CUT_F = BIT(6),
  26. HALMAC_INTF_PHY_CUT_G = BIT(7),
  27. HALMAC_INTF_PHY_CUT_ALL = 0x7FFF,
  28. };
  29. /* IP selection */
  30. enum halmac_ip_sel {
  31. HALMAC_IP_INTF_PHY = 0,
  32. HALMAC_IP_SEL_MAC = 1,
  33. HALMAC_IP_PCIE_DBI = 2,
  34. HALMAC_IP_SEL_UNDEFINE = 0x7FFF,
  35. };
  36. /* Platform mask */
  37. enum halmac_intf_phy_platform {
  38. HALMAC_INTF_PHY_PLATFORM_ALL = 0x7FFF,
  39. };
  40. #endif