qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 03/11] isa: add isa_register_ioport()


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 03/11] isa: add isa_register_ioport()
Date: Thu, 11 Aug 2011 09:18:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]