acpi: refactor pxb crs computation
commit2df5a7b52f2b1923f59f47da4ac2fc5501b4bd3c
authorMarcel Apfelbaum <marcel@redhat.com>
Sun, 17 Jul 2016 16:53:12 +0000 (17 19:53 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Jul 2016 21:07:09 +0000 (29 00:07 +0300)
treee43fb8f3530e3a770933381e3b3a924fc2e1bdd2
parentc99cb18eeb8bca145ee260a507ccce6775a6d260
acpi: refactor pxb crs computation

Instead of always passing both IO and MEM ranges when
computing CRS ranges, define a new CrsRangeSet structure
that include them both.

This is done before introducing a third type of range,
64-bit MEM, so it will be easier to pass them all around.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c