On 08/11/2011 01:28 AM, Richard Henderson wrote:
To replace isa_init_ioport and isa_init_ioport_range
as the ISA devices are converted to the memory api.
+void isa_register_ioport(ISADevice *dev, MemoryRegion *io, uint16_t start)
+{
+ memory_region_add_subregion(isabus->address_space_io, start, io);
+ if (dev != NULL) {
+ assert(dev->nio< ARRAY_SIZE(dev->io));
+ dev->io[dev->nio++] = io;
+ isa_init_ioport_range(dev, start, io->size);
+ }
+}
memory_region_size(io);
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.