Lines Matching +full:no +full:- +full:pc +full:- +full:write

18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
30 * qemu-system-x86_64 -device pc-testdev -serial stdio \
31 * -device isa-debug-exit,iobase=0xf4,iosize=0x4 \
32 * -kernel /home/lmr/Code/virt-test.git/kvm/unittests/msr.flat
35 * https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
58 #define TYPE_TESTDEV "pc-testdev"
77 .write = test_irq_line_write,
89 uint32_t mask = ((uint32_t)-1 >> (32 - bits)) << start_bit; in test_ioport_write()
90 dev->ioport_data &= ~mask; in test_ioport_write()
91 dev->ioport_data |= data << start_bit; in test_ioport_write()
99 uint32_t mask = ((uint32_t)-1 >> (32 - bits)) << start_bit; in test_ioport_read()
100 return (dev->ioport_data & mask) >> start_bit; in test_ioport_read()
105 .write = test_ioport_write,
111 .write = test_ioport_write,
141 .write = test_flush_page_write,
151 memcpy(&ret, &dev->iomem_buf[addr], len); in test_iomem_read()
160 memcpy(&dev->iomem_buf[addr], &val, len); in test_iomem_write()
161 dev->iomem_buf[addr] = val; in test_iomem_write()
166 .write = test_iomem_write,
177 memory_region_init_io(&dev->ioport, OBJECT(dev), &test_ioport_ops, dev, in testdev_realizefn()
178 "pc-testdev-ioport", 4); in testdev_realizefn()
179 memory_region_init_io(&dev->ioport_byte, OBJECT(dev), in testdev_realizefn()
181 "pc-testdev-ioport-byte", 4); in testdev_realizefn()
182 memory_region_init_io(&dev->flush, OBJECT(dev), &test_flush_ops, dev, in testdev_realizefn()
183 "pc-testdev-flush-page", 4); in testdev_realizefn()
184 memory_region_init_io(&dev->irq, OBJECT(dev), &test_irq_ops, dev, in testdev_realizefn()
185 "pc-testdev-irq-line", 24); in testdev_realizefn()
186 memory_region_init_io(&dev->iomem, OBJECT(dev), &test_iomem_ops, dev, in testdev_realizefn()
187 "pc-testdev-iomem", IOMEM_LEN); in testdev_realizefn()
189 memory_region_add_subregion(io, 0xe0, &dev->ioport); in testdev_realizefn()
190 memory_region_add_subregion(io, 0xe4, &dev->flush); in testdev_realizefn()
191 memory_region_add_subregion(io, 0xe8, &dev->ioport_byte); in testdev_realizefn()
192 memory_region_add_subregion(io, 0x2000, &dev->irq); in testdev_realizefn()
193 memory_region_add_subregion(mem, 0xff000000, &dev->iomem); in testdev_realizefn()
200 set_bit(DEVICE_CATEGORY_MISC, dc->categories); in testdev_class_init()
201 dc->realize = testdev_realizefn; in testdev_class_init()