]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
pcihp: generalization of piix4 acpi
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Oct 2013 15:01:11 +0000 (18:01 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Jan 2014 11:06:49 +0000 (13:06 +0200)
commitdb4728e6fec0364b866d3106125974eedc00e091
treea3d54e073ce9821ce83a105a5930f7dc0d30b4d6
parenteb0acfdde604930688c47fe1ba99bec2bd84b7ad
pcihp: generalization of piix4 acpi

Add ACPI based PCI hotplug library with bridge hotplug
support.
Design
   - each bus gets assigned "bsel" property.
   - ACPI code writes this number
     to a new BNUM register, then uses existing
     UP/DOWN registers to probe slot status;
     to eject, write number to BNUM register,
     then slot into existing EJ.

The interface is actually backwards-compatible with
existing PIIX4 ACPI (though not migration compatible).

This is split out from PIIX4 codebase so we can
reuse it for Q35 as well.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/Makefile.objs
hw/acpi/pcihp.c [new file with mode: 0644]
include/hw/acpi/pcihp.h [new file with mode: 0644]