44 #define CPUID_PROCESSOR_SIGNATURE 1
45 #define CPUID_XFAM 0x0ff00000
46 #define CPUID_XFAM_K8 0
47 #define CPUID_XMOD 0x000f0000
48 #define CPUID_XMOD_REV_MASK 0x000c0000
49 #define CPUID_XFAM_10H 0x00100000
50 #define CPUID_USE_XFAM_XMOD 0x00000f00
51 #define CPUID_GET_MAX_CAPABILITIES 0x80000000
52 #define CPUID_FREQ_VOLT_CAPABILITIES 0x80000007
53 #define P_STATE_TRANSITION_CAPABLE 6
60 #define MSR_FIDVID_CTL 0xc0010041
61 #define MSR_FIDVID_STATUS 0xc0010042
64 #define MSR_C_LO_INIT_FID_VID 0x00010000
65 #define MSR_C_LO_NEW_VID 0x00003f00
66 #define MSR_C_LO_NEW_FID 0x0000003f
67 #define MSR_C_LO_VID_SHIFT 8
70 #define MSR_C_HI_STP_GNT_TO 0x000fffff
73 #define MSR_S_LO_CHANGE_PENDING 0x80000000
74 #define MSR_S_LO_MAX_RAMP_VID 0x3f000000
75 #define MSR_S_LO_MAX_FID 0x003f0000
76 #define MSR_S_LO_START_FID 0x00003f00
77 #define MSR_S_LO_CURRENT_FID 0x0000003f
80 #define MSR_S_HI_MIN_WORKING_VID 0x3f000000
81 #define MSR_S_HI_MAX_WORKING_VID 0x003f0000
82 #define MSR_S_HI_START_VID 0x00003f00
83 #define MSR_S_HI_CURRENT_VID 0x0000003f
84 #define MSR_C_HI_STP_GNT_BENIGN 0x00000001
100 #define LO_FID_TABLE_TOP 7
101 #define HI_FID_TABLE_BOTTOM 8
103 #define LO_VCOFREQ_TABLE_TOP 1400
104 #define HI_VCOFREQ_TABLE_BOTTOM 1600
106 #define MIN_FREQ_RESOLUTION 200
109 #define LEAST_VID 0x3e
112 #define MAX_FREQ 5000
114 #define INVALID_FID_MASK 0xffffffc0
115 #define INVALID_VID_MASK 0xffffffc0
119 #define STOP_GRANT_5NS 1
121 #define PLL_LOCK_CONVERSION (1000/5)
123 #define MAXIMUM_VID_STEPS 1
124 #define VST_UNITS_20US 20
133 #define EXT_TYPE_SHIFT 27
134 #define PLL_L_SHIFT 20
140 #define EXT_TYPE_MASK 1
141 #define PLL_L_MASK 0x7f
143 #define VST_MASK 0x7f
144 #define VID_MASK 0x1f
145 #define FID_MASK 0x1f
146 #define EXT_VID_MASK 0x3f
147 #define EXT_FID_MASK 0x3f
158 #define PSB_ID_STRING "AMDK7PNOW!"
159 #define PSB_ID_STRING_LEN 10
161 #define PSB_VERSION_1_4 0x14