amd76x_pm.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* 
  2.  * Begin 765/766
  3.  */
  4. /* C2/C3/POS options in C3A50, page 63 in AMD-766 doc */
  5. #define ZZ_CACHE_EN 1
  6. #define DCSTOP_EN (1 << 1)
  7. #define STPCLK_EN (1 << 2)
  8. #define CPUSTP_EN (1 << 3)
  9. #define PCISTP_EN (1 << 4)
  10. #define CPUSLP_EN (1 << 5)
  11. #define SUSPND_EN (1 << 6)
  12. #define CPURST_EN (1 << 7)
  13. #define C2_REGS 0
  14. #define C3_REGS 8
  15. #define POS_REGS 16
  16. /*
  17.  * End 765/766
  18.  */
  19. /*
  20.  * Begin 768
  21.  */
  22. /* C2/C3 options in DevB:3x4F, page 100 in AMD-768 doc */
  23. #define C2EN 1
  24. #define C3EN (1 << 1)
  25. #define ZZ_C3EN (1 << 2)
  26. #define CSLP_C3EN (1 << 3)
  27. #define CSTP_C3EN (1 << 4)
  28. /* POS options in DevB:3x50, page 101 in AMD-768 doc */
  29. #define POSEN 1
  30. #define CSTP (1 << 2)
  31. #define PSTP (1 << 3)
  32. #define ASTP (1 << 4)
  33. #define DCSTP (1 << 5)
  34. #define CSLP (1 << 6)
  35. #define SUSP (1 << 8)
  36. #define MSRSM (1 << 14)
  37. #define PITRSM (1 << 15)
  38. /* NTH options DevB:3x40, pg 93 of 768 doc */
  39. #define NTPER(x) (x << 3)
  40. #define THMINEN(x) (x << 4)
  41. /*
  42.  * End 768
  43.  */
  44. /* NTH activate. PM10, pg 110 of 768 doc, pg 70 of 766 doc */
  45. #define NTH_RATIO(x) (x << 1)
  46. #define NTH_EN (1 << 4)
  47. /* Sleep state. PM04, pg 109 of 768 doc, pg 69 of 766 doc */
  48. #define SLP_EN (1 << 13)
  49. #define SLP_TYP(x) (x << 10)
  50. #define LAZY_IDLE_DELAY 800 /* 0: Best savings,  3000: More responsive */