From 23910d3f669d46073b403876e30a7314599633af Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Fri, 25 Mar 2011 19:54:41 +0900 Subject: acpi, acpi_piix: factor out GPE logic factor out ACPI GPE logic. Later it will be used by ICH9 ACPI. Signed-off-by: Isaku Yamahata Signed-off-by: Aurelien Jarno --- hw/acpi.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'hw/acpi.h') diff --git a/hw/acpi.h b/hw/acpi.h index 836459e9c1..c141e65f4f 100644 --- a/hw/acpi.h +++ b/hw/acpi.h @@ -126,4 +126,21 @@ void acpi_pm1_cnt_update(ACPIPM1CNT *pm1_cnt, bool sci_enable, bool sci_disable); void acpi_pm1_cnt_reset(ACPIPM1CNT *pm1_cnt); +/* GPE0 */ +struct ACPIGPE { + uint32_t blk; + uint8_t len; + + uint8_t *sts; + uint8_t *en; +}; +typedef struct ACPIGPE ACPIGPE; + +void acpi_gpe_init(ACPIGPE *gpe, uint8_t len); +void acpi_gpe_blk(ACPIGPE *gpe, uint32_t blk); +void acpi_gpe_reset(ACPIGPE *gpe); + +void acpi_gpe_ioport_writeb(ACPIGPE *gpe, uint32_t addr, uint32_t val); +uint32_t acpi_gpe_ioport_readb(ACPIGPE *gpe, uint32_t addr); + #endif /* !QEMU_HW_ACPI_H */ -- cgit v1.2.3