2011-01-11 17:20:38 +01:00
|
|
|
QEMU<->ACPI BIOS PCI hotplug interface
|
2021-07-27 19:04:12 +02:00
|
|
|
======================================
|
2011-01-11 17:20:38 +01:00
|
|
|
|
|
|
|
QEMU supports PCI hotplug via ACPI, for PCI bus 0. This document
|
|
|
|
describes the interface between QEMU and the ACPI BIOS.
|
|
|
|
|
2021-07-27 19:04:12 +02:00
|
|
|
ACPI GPE block (IO ports 0xafe0-0xafe3, byte access)
|
|
|
|
----------------------------------------------------
|
2011-01-11 17:20:38 +01:00
|
|
|
|
|
|
|
Generic ACPI GPE block. Bit 1 (GPE.1) used to notify PCI hotplug/eject
|
|
|
|
event to ACPI BIOS, via SCI interrupt.
|
|
|
|
|
2021-07-27 19:04:12 +02:00
|
|
|
PCI slot injection notification pending (IO port 0xae00-0xae03, 4-byte access)
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
2011-01-11 17:20:38 +01:00
|
|
|
Slot injection notification pending. One bit per slot.
|
|
|
|
|
|
|
|
Read by ACPI BIOS GPE.1 handler to notify OS of injection
|
2012-04-05 19:07:08 +02:00
|
|
|
events. Read-only.
|
2011-01-11 17:20:38 +01:00
|
|
|
|
2021-07-27 19:04:12 +02:00
|
|
|
PCI slot removal notification (IO port 0xae04-0xae07, 4-byte access)
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
|
2011-01-11 17:20:38 +01:00
|
|
|
Slot removal notification pending. One bit per slot.
|
|
|
|
|
|
|
|
Read by ACPI BIOS GPE.1 handler to notify OS of removal
|
2012-04-05 19:07:08 +02:00
|
|
|
events. Read-only.
|
2011-01-11 17:20:38 +01:00
|
|
|
|
2021-07-27 19:04:12 +02:00
|
|
|
PCI device eject (IO port 0xae08-0xae0b, 4-byte access)
|
|
|
|
-------------------------------------------------------
|
2011-01-11 17:20:38 +01:00
|
|
|
|
2012-04-05 19:07:28 +02:00
|
|
|
Write: Used by ACPI BIOS _EJ0 method to request device removal.
|
|
|
|
One bit per slot.
|
|
|
|
|
|
|
|
Read: Hotplug features register. Used by platform to identify features
|
|
|
|
available. Current base feature set (no bits set):
|
2011-01-11 17:20:38 +01:00
|
|
|
|
2021-07-27 19:04:12 +02:00
|
|
|
- Read-only "up" register @0xae00, 4-byte access, bit per slot
|
|
|
|
- Read-only "down" register @0xae04, 4-byte access, bit per slot
|
|
|
|
- Read/write "eject" register @0xae08, 4-byte access,
|
|
|
|
write: bit per slot eject, read: hotplug feature set
|
|
|
|
- Read-only hotplug capable register @0xae0c, 4-byte access, bit per slot
|
|
|
|
|
|
|
|
PCI removability status (IO port 0xae0c-0xae0f, 4-byte access)
|
|
|
|
--------------------------------------------------------------
|
2011-01-11 17:20:38 +01:00
|
|
|
|
|
|
|
Used by ACPI BIOS _RMV method to indicate removability status to OS. One
|
2021-07-27 19:04:12 +02:00
|
|
|
bit per slot. Read-only.
|