summaryrefslogtreecommitdiffstats
path: root/hw/isa.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-08-15 11:59:09 -0700
committerAvi Kivity <avi@redhat.com>2011-10-10 15:29:28 +0200
commitebf47c24b01857d8b49a892b853bdd13b8e3eb5e (patch)
treeb1e2b8738c3e5076fddaaae5d1d1ae5c7ac86c14 /hw/isa.h
parentfebbd7c29a726f8e249aa421b429b3a575d70f38 (diff)
downloadhqemu-ebf47c24b01857d8b49a892b853bdd13b8e3eb5e.zip
hqemu-ebf47c24b01857d8b49a892b853bdd13b8e3eb5e.tar.gz
isa: Tidy support code for isabus_get_fw_dev_path
The only user of ISADevice.ioports is isabus_get_fw_dev_path, and it only looks at the first entry of the array. Which suggests that this entire array+sort operation can be replaced by a simple minimum. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/isa.h')
-rw-r--r--hw/isa.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/isa.h b/hw/isa.h
index 432d17a..c5c2618 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -13,12 +13,9 @@ typedef struct ISADeviceInfo ISADeviceInfo;
struct ISADevice {
DeviceState qdev;
- MemoryRegion *io[32];
uint32_t isairq[2];
- uint16_t ioports[32];
int nirqs;
- int nioports;
- int nio;
+ int ioport_id;
};
typedef int (*isa_qdev_initfn)(ISADevice *dev);
OpenPOWER on IntegriCloud