Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/acpi.h
- This file was copied to usr.sbin/bhyve/vmgenc.h.
Show All 36 Lines | |||||
#define BHYVE_ACPI_ENABLE 0xa0 | #define BHYVE_ACPI_ENABLE 0xa0 | ||||
#define BHYVE_ACPI_DISABLE 0xa1 | #define BHYVE_ACPI_DISABLE 0xa1 | ||||
#define PM1A_EVT_ADDR 0x400 | #define PM1A_EVT_ADDR 0x400 | ||||
#define PM1A_CNT_ADDR 0x404 | #define PM1A_CNT_ADDR 0x404 | ||||
#define IO_PMTMR 0x408 /* 4-byte i/o port for the timer */ | #define IO_PMTMR 0x408 /* 4-byte i/o port for the timer */ | ||||
#define IO_GPE0_BLK 0x40c /* 2x 1-byte IO port for GPE0_STS/EN */ | |||||
#define IO_GPE0_LEN 0x2 | |||||
#define IO_GPE0_STS IO_GPE0_BLK | |||||
#define IO_GPE0_EN (IO_GPE0_BLK + (IO_GPE0_LEN / 2)) | |||||
/* Allocated GPE bits. */ | |||||
#define GPE_VMGENC 0 | |||||
struct vmctx; | struct vmctx; | ||||
int acpi_build(struct vmctx *ctx, int ncpu); | int acpi_build(struct vmctx *ctx, int ncpu); | ||||
void acpi_raise_gpe(struct vmctx *ctx, unsigned bit); | |||||
void dsdt_line(const char *fmt, ...); | void dsdt_line(const char *fmt, ...); | ||||
void dsdt_fixed_ioport(uint16_t iobase, uint16_t length); | void dsdt_fixed_ioport(uint16_t iobase, uint16_t length); | ||||
void dsdt_fixed_irq(uint8_t irq); | void dsdt_fixed_irq(uint8_t irq); | ||||
void dsdt_fixed_mem32(uint32_t base, uint32_t length); | void dsdt_fixed_mem32(uint32_t base, uint32_t length); | ||||
void dsdt_indent(int levels); | void dsdt_indent(int levels); | ||||
void dsdt_unindent(int levels); | void dsdt_unindent(int levels); | ||||
void sci_init(struct vmctx *ctx); | void sci_init(struct vmctx *ctx); | ||||
#endif /* _ACPI_H_ */ | #endif /* _ACPI_H_ */ |