Lines 139-153
static acpi_status acpi_ev_fixed_event_initialize(void)
Link Here
|
139 |
/* Disable the fixed event */ |
139 |
/* Disable the fixed event */ |
140 |
|
140 |
|
141 |
if (acpi_gbl_fixed_event_info[i].enable_register_id != 0xFF) { |
141 |
if (acpi_gbl_fixed_event_info[i].enable_register_id != 0xFF) { |
142 |
status = |
142 |
if (i == ACPI_EVENT_PCIE_WAKE) { |
143 |
acpi_write_bit_register(acpi_gbl_fixed_event_info |
143 |
if ((acpi_gbl_FADT.flags & ACPI_FADT_PCI_EXPRESS_WAKE)) { |
144 |
[i].enable_register_id, |
144 |
status = acpi_write_bit_register( |
145 |
(i == |
145 |
acpi_gbl_fixed_event_info[i].enable_register_id, |
146 |
ACPI_EVENT_PCIE_WAKE) ? |
146 |
ACPI_ENABLE_EVENT); |
147 |
ACPI_ENABLE_EVENT : |
147 |
|
148 |
ACPI_DISABLE_EVENT); |
148 |
if (ACPI_FAILURE(status)) { |
149 |
if (ACPI_FAILURE(status)) { |
149 |
return (status); |
150 |
return (status); |
150 |
} |
|
|
151 |
} |
152 |
} else { |
153 |
status = acpi_write_bit_register( |
154 |
acpi_gbl_fixed_event_info[i].enable_register_id, |
155 |
ACPI_DISABLE_EVENT); |
156 |
|
157 |
if (ACPI_FAILURE(status)) { |
158 |
return (status); |
159 |
} |
151 |
} |
160 |
} |
152 |
} |
161 |
} |
153 |
} |
162 |
} |
Lines 188-197
u32 acpi_ev_fixed_event_detect(void)
Link Here
|
188 |
return (int_status); |
197 |
return (int_status); |
189 |
} |
198 |
} |
190 |
|
199 |
|
191 |
if (fixed_enable & ACPI_BITMASK_PCIEXP_WAKE_DISABLE) |
200 |
|
|
|
201 |
if (acpi_gbl_FADT.flags & ACPI_FADT_PCI_EXPRESS_WAKE) { |
202 |
if (fixed_enable & ACPI_BITMASK_PCIEXP_WAKE_DISABLE) |
203 |
fixed_enable &= ~ACPI_BITMASK_PCIEXP_WAKE_DISABLE; |
204 |
else |
205 |
fixed_enable |= ACPI_BITMASK_PCIEXP_WAKE_DISABLE; |
206 |
} else |
192 |
fixed_enable &= ~ACPI_BITMASK_PCIEXP_WAKE_DISABLE; |
207 |
fixed_enable &= ~ACPI_BITMASK_PCIEXP_WAKE_DISABLE; |
193 |
else |
|
|
194 |
fixed_enable |= ACPI_BITMASK_PCIEXP_WAKE_DISABLE; |
195 |
|
208 |
|
196 |
ACPI_DEBUG_PRINT((ACPI_DB_INTERRUPTS, |
209 |
ACPI_DEBUG_PRINT((ACPI_DB_INTERRUPTS, |
197 |
"Fixed Event Block: Enable %08X Status %08X\n", |
210 |
"Fixed Event Block: Enable %08X Status %08X\n", |