halmac_pcie_reg.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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_PCIE_REG_H__
  16. #define __HALMAC_PCIE_REG_H__
  17. /* PCIE PHY register */
  18. #define RAC_CTRL_PPR 0x00
  19. #define RAC_SET_PPR 0x20
  20. #define RAC_TRG_PPR 0x21
  21. /* PCIE CFG register */
  22. #define PCIE_L1_BACKDOOR 0x719
  23. #define PCIE_ASPM_CTRL 0x70F
  24. /* PCIE MAC register */
  25. #define LINK_CTRL2_REG_OFFSET 0xA0
  26. #define GEN2_CTRL_OFFSET 0x80C
  27. #define LINK_STATUS_REG_OFFSET 0x82
  28. #define PCIE_GEN1_SPEED 0x01
  29. #define PCIE_GEN2_SPEED 0x02
  30. #endif/* __HALMAC_PCIE_REG_H__ */