search for: old_portio

Displaying 4 results from an estimated 4 matches for "old_portio".

2013 Jan 15
1
[PATCH 2/3] xen_platform: Do not use old_portio-style callbacks
...eak; default: break; } } -static MemoryRegionPortio xen_pci_portio[] = { - { 0, 0x100, 1, .read = xen_platform_ioport_readb, }, - { 0, 0x100, 1, .write = xen_platform_ioport_writeb, }, - PORTIO_END_OF_LIST() -}; - static const MemoryRegionOps xen_pci_io_ops = { - .old_portio = xen_pci_portio, + .read = xen_platform_ioport_readb, + .write = xen_platform_ioport_writeb, + .impl.min_access_size = 1, + .impl.max_access_size = 1, }; static void platform_ioport_bar_setup(PCIXenPlatformState *d) -- 1.7.10.4
2012 Oct 08
21
[PATCH 00/14] Remove old_portio users for memory region PIO mapping
...how real hardware works and it limits us in the ability to spawn eventfd''s on PIO ports which doesn''t work with this approach. Instead, let''s model it more easily. Let''s just map the PIO memory region into MMIO space. For this to work, we need to get rid of all old_portio struct users, as they break with this approach. This is what this patch set does. It also converts the e500 machines and sPAPR to the new memory region model. Alex Alexander Graf (14): ac97: convert PIO to new memory api read/write virtio-pci: convert PIO to new memory api read/write es137...
2012 Mar 19
1
[PATCHv2] virtio-pci: add MMIO property
...+} + +static uint32_t virtio_pci_config_mmio_readl(void *opaque, target_phys_addr_t addr) +{ + VirtIOPCIProxy *proxy = opaque; + uint32_t val = virtio_pci_config_readl(opaque, addr & proxy->bar0_mask); + return val; +} + static const MemoryRegionOps virtio_pci_config_ops = { .old_portio = virtio_portio, + .old_mmio = { + .read = { + virtio_pci_config_mmio_readb, + virtio_pci_config_mmio_readw, + virtio_pci_config_mmio_readl, + }, + .write = { + virtio_pci_config_mmio_writeb, + virtio_pci_config_mmio_wri...
2012 Mar 19
1
[PATCHv2] virtio-pci: add MMIO property
...+} + +static uint32_t virtio_pci_config_mmio_readl(void *opaque, target_phys_addr_t addr) +{ + VirtIOPCIProxy *proxy = opaque; + uint32_t val = virtio_pci_config_readl(opaque, addr & proxy->bar0_mask); + return val; +} + static const MemoryRegionOps virtio_pci_config_ops = { .old_portio = virtio_portio, + .old_mmio = { + .read = { + virtio_pci_config_mmio_readb, + virtio_pci_config_mmio_readw, + virtio_pci_config_mmio_readl, + }, + .write = { + virtio_pci_config_mmio_writeb, + virtio_pci_config_mmio_wri...