Home
last modified time | relevance | path

Searched refs:pci (Results 1 – 25 of 166) sorted by relevance

1234567

/qemu/hw/scsi/
H A Desp-pci.c112 esp_pci_update_irq(pci); in esp_irq_handler()
117 ESPState *s = &pci->esp; in esp_pci_handle_idle()
132 ESPState *s = &pci->esp; in esp_pci_handle_abort()
146 pci->dma_regs[DMA_WBC] = pci->dma_regs[DMA_STC]; in esp_pci_handle_start()
147 pci->dma_regs[DMA_WAC] = pci->dma_regs[DMA_SPA]; in esp_pci_handle_start()
148 pci->dma_regs[DMA_WMAC] = pci->dma_regs[DMA_SMDLA]; in esp_pci_handle_start()
255 pci->sbac = val; in esp_pci_io_write()
277 ret = pci->sbac; in esp_pci_io_read()
404 s->dma_opaque = pci; in esp_pci_scsi_realize()
406 memory_region_init_io(&pci->io, OBJECT(pci), &esp_pci_io_ops, pci, in esp_pci_scsi_realize()
[all …]
/qemu/hw/pci-host/
H A Dmv64361.c136 MV64361PCIState pci[2]; member
252 p = &s->pci[0]; in set_mem_windows()
261 p = &s->pci[0]; in set_mem_windows()
270 p = &s->pci[0]; in set_mem_windows()
279 p = &s->pci[0]; in set_mem_windows()
876 DeviceState *pci = DEVICE(&s->pci[i]); in mv64361_realize() local
897 s->pci[0].io_size = 0xff; in mv64361_reset()
907 s->pci[1].io_size = 0xff; in mv64361_reset()
918 s->pci[i].remap[j] = s->pci[i].mem_base[j] << 16; in mv64361_reset()
921 s->pci[0].remap[1] = 0; in mv64361_reset()
[all …]
H A Dppc4xx_pci.c110 pci->pmm[0].la = value; in ppc4xx_pci_reg_write4()
113 pci->pmm[0].ma = value; in ppc4xx_pci_reg_write4()
123 pci->pmm[1].la = value; in ppc4xx_pci_reg_write4()
126 pci->pmm[1].ma = value; in ppc4xx_pci_reg_write4()
136 pci->pmm[2].la = value; in ppc4xx_pci_reg_write4()
139 pci->pmm[2].ma = value; in ppc4xx_pci_reg_write4()
149 pci->ptm[0].ms = value; in ppc4xx_pci_reg_write4()
152 pci->ptm[0].la = value; in ppc4xx_pci_reg_write4()
155 pci->ptm[1].ms = value; in ppc4xx_pci_reg_write4()
248 memset(pci->pmm, 0, sizeof(pci->pmm)); in ppc4xx_pci_reset()
[all …]
H A Dppce500.c131 PPCE500PCIState *pci = opaque; in pci_reg_read4() local
185 value = pci->gasket_time; in pci_reg_read4()
206 MemoryRegion *bm = &pci->bm; in e500_update_piw()
253 memory_region_init_alias(mem, OBJECT(pci), name, &pci->busmem, tar, in e500_update_pow()
265 PPCE500PCIState *pci = opaque; in pci_reg_write4() local
283 e500_update_pow(pci, idx); in pci_reg_write4()
287 e500_update_pow(pci, idx); in pci_reg_write4()
291 e500_update_pow(pci, idx); in pci_reg_write4()
295 e500_update_pow(pci, idx); in pci_reg_write4()
309 e500_update_piw(pci, idx); in pci_reg_write4()
[all …]
H A Ddesignware.c461 destination = &host->pci.memory; in designware_pcie_root_realize()
521 qemu_set_irq(host->pci.irqs[irq_num], level); in designware_pcie_set_irq()
622 PCIHostState *pci = PCI_HOST_BRIDGE(opaque); in designware_pcie_host_mmio_read() local
634 PCIHostState *pci = PCI_HOST_BRIDGE(opaque); in designware_pcie_host_mmio_write() local
665 return &s->pci.address_space; in designware_pcie_host_set_iommu()
674 PCIHostState *pci = PCI_HOST_BRIDGE(dev); in designware_pcie_host_realize() local
680 sysbus_init_irq(sbd, &s->pci.irqs[i]); in designware_pcie_host_realize()
691 memory_region_init(&s->pci.memory, OBJECT(s), in designware_pcie_host_realize()
695 pci->bus = pci_register_root_bus(dev, "pcie", in designware_pcie_host_realize()
700 &s->pci.io, in designware_pcie_host_realize()
[all …]
/qemu/hw/char/
H A Dserial-pci-multi.c59 s = pci->state + i; in multi_serial_pci_exit()
62 g_free(pci->name[i]); in multi_serial_pci_exit()
64 qemu_free_irqs(pci->irqs, pci->ports); in multi_serial_pci_exit()
72 pci->level[n] = level; in multi_serial_irq_mux()
74 if (pci->level[i]) { in multi_serial_irq_mux()
101 pci->dev.config[PCI_CLASS_PROG] = pci->prog_if; in multi_serial_pci_realize()
103 memory_region_init(&pci->iobar, OBJECT(pci), "multiserial", 8 * nports); in multi_serial_pci_realize()
104 pci_register_bar(&pci->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &pci->iobar); in multi_serial_pci_realize()
105 pci->irqs = qemu_allocate_irqs(multi_serial_irq_mux, pci, nports); in multi_serial_pci_realize()
108 s = pci->state + i; in multi_serial_pci_realize()
[all …]
H A Dserial-pci.c49 PCISerialState *pci = DO_UPCAST(PCISerialState, dev, dev); in OBJECT_DECLARE_SIMPLE_TYPE() local
50 SerialState *s = &pci->state; in OBJECT_DECLARE_SIMPLE_TYPE()
56 pci->dev.config[PCI_CLASS_PROG] = pci->prog_if; in OBJECT_DECLARE_SIMPLE_TYPE()
57 pci->dev.config[PCI_INTERRUPT_PIN] = 0x01; in OBJECT_DECLARE_SIMPLE_TYPE()
58 s->irq = pci_allocate_irq(&pci->dev); in OBJECT_DECLARE_SIMPLE_TYPE()
60 memory_region_init_io(&s->io, OBJECT(pci), &serial_io_ops, s, "serial", 8); in OBJECT_DECLARE_SIMPLE_TYPE()
61 pci_register_bar(&pci->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io); in OBJECT_DECLARE_SIMPLE_TYPE()
66 PCISerialState *pci = DO_UPCAST(PCISerialState, dev, dev); in serial_pci_exit() local
67 SerialState *s = &pci->state; in serial_pci_exit()
/qemu/hw/virtio/
H A Dmeson.build3 system_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('virtio-pci.c'))
33 if_true: files('vhost-user-gpio-pci.c'))
35 if_true: files('vhost-user-i2c-pci.c'))
37 if_true: files('vhost-user-rng-pci.c'))
39 if_true: files('vhost-user-snd-pci.c'))
41 if_true: files('vhost-user-input-pci.c'))
66 virtio_pci_ss.add(when: 'CONFIG_VHOST_SCSI', if_true: files('vhost-scsi-pci.c'))
72 virtio_pci_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng-pci.c'))
74 virtio_pci_ss.add(when: 'CONFIG_VIRTIO_9P', if_true: files('virtio-9p-pci.c'))
76 virtio_pci_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio-blk-pci.c'))
[all …]
/qemu/ui/
H A Dutil.c31 static bool append_pci_address(char *buf, size_t buf_size, const PCIDevice *pci) in append_pci_address() argument
33 PCIBus *bus = pci_get_bus(pci); in append_pci_address()
44 PCI_SLOT(pci->devfn), PCI_FUNC(pci->devfn)); in append_pci_address()
57 PCIDevice *pci = (PCIDevice *) object_dynamic_cast(OBJECT(dev), in qemu_console_fill_device_address() local
60 if (pci == NULL) { in qemu_console_fill_device_address()
67 if (!append_pci_address(device_address, size, pci)) { in qemu_console_fill_device_address()
/qemu/docs/
H A Dmultiseat.txt30 -device pci-bridge,addr=12.0,chassis_nr=2,id=head.2 \
36 This places a pci bridge in slot 12, connects a display adapter and
47 -device pci-bridge,addr=12.0,chassis_nr=2,id=head.2 \
49 -device virtio-keyboard-pci,bus=head.2,addr=03.0,display=video.2 \
50 -device virtio-tablet-pci,bus=head.2,addr=03.0,display=video.2
99 Good. Now lets tell the system that the pci bridge and all devices
112 seat-pci-pci-0000_00_12_0
116 You can use "loginctl seat-status seat-pci-pci-0000_00_12_0" to list
123 guest side with pci-bridge-seat
126 QEMU version 2.4 and newer has a new pci-bridge-seat device which
[all …]
H A Digd-assign.txt1 Intel Graphics Device (IGD) assignment with vfio-pci
4 IGD has two different modes for assignment using vfio-pci:
18 theoretically has no device specific handling dependencies on vfio-pci or
35 ISA/LPC bridge device (vfio-pci-igd-lpc-bridge) on the root bus at
48 the driver_override option can be used to ensure that only vfio-pci can bind
53 blacklisting i915 or using pci-stub/vfio-pci to take ownership of IGD as a
81 "-nodefaults", along with adding the device using vfio-pci:
83 -device vfio-pci,host=00:02.0,id=hostdev0,bus=pci.0,addr=0x2
91 An experimental vfio-pci option also exists to enable OpRegion, and thus
93 "x-igd-opregion=on" to the vfio-pci device options for the IGD device. As
[all …]
H A Dqemupciserial.inf4 ; just an inf file to tell windows which pci id the serial pci card
8 ; Installing the driver: Go to device manager. You should find a "pci
14 ; This file covers all options: pci-serial, pci-serial-2x, pci-serial-4x
H A Dpci_expander_bridge.txt10 on bus 0 (pci.0).
26 -device pxb,id=bridge1,bus=pci.0,numa_node=1,bus_nr=4 -netdev user,id=nd -device e1000,bus=bridge1,…
27 -device pxb,id=bridge2,bus=pci.0,numa_node=0,bus_nr=8 -device e1000,bus=bridge2,addr=0x3
28 -device pxb,id=bridge3,bus=pci.0,bus_nr=40 -drive if=none,id=drive0,file=[img] -device virtio-blk-p…
38 Please observe that we specified the bus "pci.0" for the second and third pxb.
/qemu/docs/devel/
H A Dqgraph.rst169 # src='pci-bus'
191 'i440FX-pcihost' -> 'pci-bus-pc' -> 'pci-bus' -> 'virtio-net-pci' ->
230 pci-bus-pc --produces--> pci-bus``.
239 ``sdhci-pci --consumes--> pci-bus``
397 * pci-bus-pc [--produces--> pci-bus (in pci.h)] */
508 * sdhci-pci --consumes--> pci-bus */
511 qos_node_consumes("sdhci-pci", "pci-bus", &opts);
520 sdhci-pci --consumes--> pci-bus <--produces--+
536 sdhci-pci <--consumed by-- pci-bus <--produces--+
586 sdhci-pci --consumes--> pci-bus <--produces--+
[all …]
H A Dvfio-iommufd.rst26 | pci | | platform | | ap | | ccw |
95 named iommufd which allows to pass an iommufd object. Take ``vfio-pci``
101 -device vfio-pci,host=0000:02:00.0,iommufd=iommufd0
110 -device vfio-pci,iommufd=iommufd0,fd=23
114 If no ``iommufd`` object is passed to the ``vfio-pci`` device, iommufd
120 -device vfio-pci,host=0000:02:00.0
140 -device vfio-pci,host=0000:02:00.0,iommufd=iommufd0,enable-migration=on
156 ``vfio-pci`` device checks sysfsdev property to decide if backend is a mdev.
163 …qemu-system-x86_64: -device vfio-pci,iommufd=iommufd0,x-balloon-allowed=on,fd=9: vfio VFIO_FD9: x-…
/qemu/docs/specs/
H A Dstandard-vga.rst5 Exists in two variants, for isa and pci.
10 picks isa for -M isapc, otherwise pci
12 pci variant
16 legacy-free pci variant
22 Applies to the pci variant only for obvious reasons.
48 Doesn't apply to the legacy-free pci variant, use the MMIO bar instead.
66 The pci variant used to mirror the framebuffer bar here, QEMU 0.14+
73 Likewise applies to the pci variant only for obvious reasons.
87 The pci revision is 2 (or greater) when these registers are present.
H A Dpci-ids.rst14 The 1000 -> 10ff device ID range is used as follows for virtio-pci devices.
66 PCI serial port (16550A) adapter (:doc:`pci-serial`)
68 PCI Dual-port 16550A adapter (:doc:`pci-serial`)
70 PCI Quad-port 16550A adapter (:doc:`pci-serial`)
72 PCI test device (:doc:`pci-testdev`)
92 PCI PVPanic device (``-device pvpanic-pci``)
H A Dindex.rst11 pci-ids
12 pci-serial
13 pci-testdev
/qemu/hw/pci/
H A Dmeson.build5 'pci.c',
8 'pci-hmp-cmds.c',
9 'pci-qmp-cmds.c',
22 system_ss.add(when: 'CONFIG_PCI', if_false: files('pci-stub.c'))
/qemu/hw/usb/
H A Dhcd-xhci-nec.c51 XHCIPciState *pci = XHCI_PCI(obj); in nec_xhci_instance_init() local
54 pci->xhci.flags = nec->flags; in nec_xhci_instance_init()
55 pci->xhci.numintrs = nec->intrs; in nec_xhci_instance_init()
56 pci->xhci.numslots = nec->slots; in nec_xhci_instance_init()
/qemu/tests/qtest/libqos/
H A Dmeson.build7 'pci.c',
17 'pci-spapr.c',
20 'pci-pc.c',
42 'virtio-pci.c',
43 'virtio-pci-modern.c',
/qemu/hw/xtensa/
H A Dvirt.c60 PCIHostState *pci; in create_pcie() local
103 pci = PCI_HOST_BRIDGE(dev); in create_pcie()
104 if (pci->bus) { in create_pcie()
105 pci_init_nic_devices(pci->bus, mc->default_nic); in create_pcie()
/qemu/hw/isa/
H A Di82378.c63 static void i82378_realize(PCIDevice *pci, Error **errp) in i82378_realize() argument
65 DeviceState *dev = DEVICE(pci); in i82378_realize()
72 pci_conf = pci->config; in i82378_realize()
81 pci_address_space_io(pci), errp); in i82378_realize()
/qemu/hw/ppc/
H A De500.c391 char *pci; in ppce500_load_device_tree() local
610 pci = g_strdup_printf("/pci@%llx", in ppce500_load_device_tree()
612 qemu_fdt_add_subnode(fdt, pci); in ppce500_load_device_tree()
613 qemu_fdt_setprop_cell(fdt, pci, "cell-index", 0); in ppce500_load_device_tree()
623 qemu_fdt_setprop_cells(fdt, pci, "interrupts", 24, 2); in ppce500_load_device_tree()
624 qemu_fdt_setprop_cells(fdt, pci, "bus-range", 0, 255); in ppce500_load_device_tree()
628 qemu_fdt_setprop_cell(fdt, pci, "fsl,msi", msi_ph); in ppce500_load_device_tree()
630 qemu_fdt_setprop_cells(fdt, pci, "reg", in ppce500_load_device_tree()
636 qemu_fdt_setprop_cell(fdt, pci, "#size-cells", 2); in ppce500_load_device_tree()
637 qemu_fdt_setprop_cell(fdt, pci, "#address-cells", 3); in ppce500_load_device_tree()
[all …]
/qemu/hw/display/
H A Dmeson.build19 system_ss.add(when: 'CONFIG_VGA_PCI', if_true: files('vga-pci.c'))
99 if_true: [files('virtio-gpu-pci.c'), pixman])
101 if_true: files('vhost-user-gpu-pci.c'))
102 hw_display_modules += {'virtio-gpu-pci': virtio_gpu_pci_ss}
107 if_true: [files('virtio-gpu-pci-gl.c'), pixman])
108 hw_display_modules += {'virtio-gpu-pci-gl': virtio_gpu_pci_gl_ss}
113 if_true: [files('virtio-gpu-pci-rutabaga.c'), pixman])
114 hw_display_modules += {'virtio-gpu-pci-rutabaga': virtio_gpu_pci_rutabaga_ss}

1234567