mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
acpi: factor out common pm_update_sci() into acpi core
... and rename it into acpi_update_sci() since it changes SCI on only on PM registers status. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
e4f308bbf9
commit
0631350328
4 changed files with 32 additions and 43 deletions
|
@ -69,6 +69,12 @@
|
|||
#define ACPI_BITMASK_RT_CLOCK_ENABLE 0x0400
|
||||
#define ACPI_BITMASK_PCIEXP_WAKE_DISABLE 0x4000 /* ACPI 3.0 */
|
||||
|
||||
#define ACPI_BITMASK_PM1_COMMON_ENABLED ( \
|
||||
ACPI_BITMASK_RT_CLOCK_ENABLE | \
|
||||
ACPI_BITMASK_POWER_BUTTON_ENABLE | \
|
||||
ACPI_BITMASK_GLOBAL_LOCK_ENABLE | \
|
||||
ACPI_BITMASK_TIMER_ENABLE)
|
||||
|
||||
/* PM1x_CNT */
|
||||
#define ACPI_BITMASK_SCI_ENABLE 0x0001
|
||||
#define ACPI_BITMASK_BUS_MASTER_RLD 0x0002
|
||||
|
@ -160,6 +166,8 @@ void acpi_gpe_reset(ACPIREGS *ar);
|
|||
void acpi_gpe_ioport_writeb(ACPIREGS *ar, uint32_t addr, uint32_t val);
|
||||
uint32_t acpi_gpe_ioport_readb(ACPIREGS *ar, uint32_t addr);
|
||||
|
||||
void acpi_update_sci(ACPIREGS *acpi_regs, qemu_irq irq);
|
||||
|
||||
/* acpi.c */
|
||||
extern int acpi_enabled;
|
||||
extern char unsigned *acpi_tables;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue