20 static const u32 divil_msr_reg[6] = {
26 static const u32 soft_bar_flag[6] = {
31 static const u32 sb_msr_reg[6] = {
36 static const u32 bar_space_range[6] = {
41 static const int bar_space_len[6] = {
52 static void divil_lbar_enable(
void)
71 static void divil_lbar_disable(
void)
93 lo |= soft_bar_flag[
n];
95 }
else if (value & 0x01) {
98 lo &= bar_space_range[
n];
99 _wrmsr(divil_msr_reg[n], hi, lo);
102 hi = ((value & 0x000ffffc) << 12) |
103 ((bar_space_len[
n] - 4) << 12) | 0x01;
104 lo = ((value & 0x000ffffc) << 12) | 0x01;
105 _wrmsr(sb_msr_reg[n], hi, lo);
119 if (lo & soft_bar_flag[n]) {
121 lo &= ~soft_bar_flag[
n];
124 _rdmsr(divil_msr_reg[n], &hi, &lo);
125 conf_data = lo & bar_space_range[
n];
147 divil_lbar_disable();
151 temp = lo & 0x0000ffff;
265 conf_data = lo & 0x000000ff;