Home
last modified time | relevance | path

Searched refs:PCIDevice (Results 1 – 25 of 182) sorted by relevance

12345678

/openbmc/qemu/include/hw/pci/
H A Dmsix.h8 void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg);
9 MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector);
10 int msix_init(PCIDevice *dev, uint32_t nentries,
15 int msix_init_exclusive_bar(PCIDevice *dev, uint32_t nentries,
18 void msix_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len);
20 void msix_uninit(PCIDevice *dev, MemoryRegion *table_bar,
22 void msix_uninit_exclusive_bar(PCIDevice *dev);
24 unsigned int msix_nr_vectors_allocated(const PCIDevice *dev);
26 void msix_save(PCIDevice *dev, QEMUFile *f);
27 void msix_load(PCIDevice *dev, QEMUFile *f);
[all …]
H A Dpcie_sriov.h20 PCIDevice **vf; /* Pointer to an array of num_vfs VF devices */
25 PCIDevice *pf; /* Pointer back to owner physical function */
29 bool pcie_sriov_pf_init(PCIDevice *dev, uint16_t offset,
34 void pcie_sriov_pf_exit(PCIDevice *dev);
37 void pcie_sriov_pf_init_vf_bar(PCIDevice *dev, int region_num,
53 int16_t pcie_sriov_pf_init_from_user_created_vfs(PCIDevice *dev,
57 bool pcie_sriov_register_device(PCIDevice *dev, Error **errp);
58 void pcie_sriov_unregister_device(PCIDevice *dev);
71 void pcie_sriov_pf_add_sup_pgsize(PCIDevice *dev, uint16_t opt_sup_pgsize);
74 void pcie_sriov_config_write(PCIDevice *dev, uint32_t address,
[all …]
H A Dmsi.h33 void msi_set_message(PCIDevice *dev, MSIMessage msg);
34 MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector);
35 bool msi_enabled(const PCIDevice *dev);
36 void msi_set_enabled(PCIDevice *dev);
37 int msi_init(struct PCIDevice *dev, uint8_t offset,
40 void msi_uninit(struct PCIDevice *dev);
41 void msi_reset(PCIDevice *dev);
42 bool msi_is_masked(const PCIDevice *dev, unsigned int vector);
43 void msi_notify(PCIDevice *dev, unsigned int vector);
44 void msi_send_message(PCIDevice *dev, MSIMessage msg);
[all …]
H A Dpcie_aer.h89 int pcie_aer_init(PCIDevice *dev, uint8_t cap_ver, uint16_t offset,
91 void pcie_aer_exit(PCIDevice *dev);
92 void pcie_aer_write_config(PCIDevice *dev,
96 void pcie_aer_root_set_vector(PCIDevice *dev, unsigned int vector);
97 void pcie_aer_root_init(PCIDevice *dev);
98 void pcie_aer_root_reset(PCIDevice *dev);
99 void pcie_aer_root_write_config(PCIDevice *dev,
103 int pcie_aer_inject_error(PCIDevice *dev, const PCIEAERErr *err);
H A Dshpc.h39 void shpc_reset(PCIDevice *d);
40 int shpc_bar_size(PCIDevice *dev);
41 int shpc_init(PCIDevice *dev, PCIBus *sec_bus, MemoryRegion *bar,
43 void shpc_cleanup(PCIDevice *dev, MemoryRegion *bar);
44 void shpc_free(PCIDevice *dev);
45 void shpc_cap_write_config(PCIDevice *d, uint32_t addr, uint32_t val, int len);
60 static inline bool shpc_present(const PCIDevice *dev) in shpc_present()
H A Dpcie_port.h41 void pcie_port_init_reg(PCIDevice *d);
43 PCIDevice *pcie_find_port_by_pn(PCIBus *bus, uint8_t pn);
44 PCIDevice *pcie_find_port_first(PCIBus *bus);
88 uint8_t (*aer_vector)(const PCIDevice *dev);
89 int (*interrupts_init)(PCIDevice *dev, Error **errp);
90 void (*interrupts_uninit)(PCIDevice *dev);
H A Dslotid_cap.h5 int slotid_cap_init(PCIDevice *dev, int nslots,
9 void slotid_cap_cleanup(PCIDevice *dev);
/openbmc/qemu/hw/pci/
H A Dpci-stub.c47 MSIMessage pci_get_msi_message(PCIDevice *dev, int vector) in pci_get_msi_message()
52 uint16_t pci_requester_id(PCIDevice *dev) in pci_requester_id()
58 bool msi_enabled(const PCIDevice *dev) in msi_enabled()
63 void msi_notify(PCIDevice *dev, unsigned int vector) in msi_notify()
69 bool msi_is_masked(const PCIDevice *dev, unsigned vector) in msi_is_masked()
74 MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector) in msi_get_message()
79 int msix_enabled(PCIDevice *dev) in msix_enabled()
84 bool msix_is_masked(PCIDevice *dev, unsigned vector) in msix_is_masked()
89 MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector) in msix_get_message()
H A Dmsix.c37 static MSIMessage msix_prepare_message(PCIDevice *dev, unsigned vector) in msix_prepare_message()
47 MSIMessage msix_get_message(PCIDevice *dev, unsigned vector) in msix_get_message()
56 void msix_set_message(PCIDevice *dev, int vector, struct MSIMessage msg) in msix_set_message()
70 static uint8_t *msix_pending_byte(PCIDevice *dev, int vector) in msix_pending_byte()
75 int msix_is_pending(PCIDevice *dev, unsigned int vector) in msix_is_pending()
80 void msix_set_pending(PCIDevice *dev, unsigned int vector) in msix_set_pending()
85 void msix_clr_pending(PCIDevice *dev, int vector) in msix_clr_pending()
90 static bool msix_vector_masked(PCIDevice *dev, unsigned int vector, bool fmask) in msix_vector_masked()
103 bool msix_is_masked(PCIDevice *dev, unsigned int vector) in msix_is_masked()
108 static void msix_fire_vector_notifier(PCIDevice *dev, in msix_fire_vector_notifier()
[all …]
H A Dpcie_sriov.c24 static void unparent_vfs(PCIDevice *dev, uint16_t total_vfs) in unparent_vfs()
27 PCIDevice *vf = dev->exp.sriov_pf.vf[i]; in unparent_vfs()
35 static void register_vfs(PCIDevice *dev) in register_vfs()
53 static void unregister_vfs(PCIDevice *dev) in unregister_vfs()
67 static void consume_config(PCIDevice *dev) in consume_config()
88 static bool pcie_sriov_pf_init_common(PCIDevice *dev, uint16_t offset, in pcie_sriov_pf_init_common()
152 bool pcie_sriov_pf_init(PCIDevice *dev, uint16_t offset, in pcie_sriov_pf_init()
171 dev->exp.sriov_pf.vf = g_new(PCIDevice *, total_vfs); in pcie_sriov_pf_init()
174 PCIDevice *vf = pci_new(devfn, vfname); in pcie_sriov_pf_init()
196 void pcie_sriov_pf_exit(PCIDevice *dev) in pcie_sriov_pf_exit()
[all …]
H A Dmsi.c93 static inline uint8_t msi_flags_off(const PCIDevice* dev) in msi_flags_off()
98 static inline uint8_t msi_address_lo_off(const PCIDevice* dev) in msi_address_lo_off()
103 static inline uint8_t msi_address_hi_off(const PCIDevice* dev) in msi_address_hi_off()
108 static inline uint8_t msi_data_off(const PCIDevice* dev, bool msi64bit) in msi_data_off()
113 static inline uint8_t msi_mask_off(const PCIDevice* dev, bool msi64bit) in msi_mask_off()
118 static inline uint8_t msi_pending_off(const PCIDevice* dev, bool msi64bit) in msi_pending_off()
127 void msi_set_message(PCIDevice *dev, MSIMessage msg) in msi_set_message()
140 static MSIMessage msi_prepare_message(PCIDevice *dev, unsigned int vector) in msi_prepare_message()
165 MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector) in msi_get_message()
170 bool msi_enabled(const PCIDevice *dev) in msi_enabled()
[all …]
H A Dpci_bridge.c48 int pci_bridge_ssvid_init(PCIDevice *dev, uint8_t offset, in pci_bridge_ssvid_init()
66 PCIDevice *pci_bridge_get_device(PCIBus *bus) in pci_bridge_get_device()
77 static uint32_t pci_config_get_io_base(const PCIDevice *d, in pci_config_get_io_base()
89 static pcibus_t pci_config_get_memory_base(const PCIDevice *d, uint32_t base) in pci_config_get_memory_base()
95 static pcibus_t pci_config_get_pref_base(const PCIDevice *d, in pci_config_get_pref_base()
110 pcibus_t pci_bridge_get_base(const PCIDevice *bridge, uint8_t type) in pci_bridge_get_base()
129 pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type) in pci_bridge_get_limit()
154 PCIDevice *bridge_dev = PCI_DEVICE(bridge); in pci_bridge_init_alias()
168 PCIDevice *pd = PCI_DEVICE(br); in pci_bridge_init_vga_aliases()
190 PCIDevice *pd = PCI_DEVICE(br); in pci_bridge_region_init()
[all …]
H A Dpcie_aer.c97 int pcie_aer_init(PCIDevice *dev, uint8_t cap_ver, uint16_t offset, in pcie_aer_init()
169 void pcie_aer_exit(PCIDevice *dev) in pcie_aer_exit()
174 static void pcie_aer_update_uncor_status(PCIDevice *dev) in pcie_aer_update_uncor_status()
196 pcie_aer_msg_alldev(PCIDevice *dev, const PCIEAERMsg *msg) in pcie_aer_msg_alldev()
243 static bool pcie_aer_msg_vbridge(PCIDevice *dev, const PCIEAERMsg *msg) in pcie_aer_msg_vbridge()
259 void pcie_aer_root_set_vector(PCIDevice *dev, unsigned int vector) in pcie_aer_root_set_vector()
269 static unsigned int pcie_aer_root_get_vector(PCIDevice *dev) in pcie_aer_root_get_vector()
292 static void pcie_aer_root_notify(PCIDevice *dev) in pcie_aer_root_notify()
308 static void pcie_aer_msg_root_port(PCIDevice *dev, const PCIEAERMsg *msg) in pcie_aer_msg_root_port()
384 static void pcie_aer_msg(PCIDevice *dev, const PCIEAERMsg *msg) in pcie_aer_msg()
[all …]
H A Dshpc.c172 static void shpc_interrupt_update(PCIDevice *d) in shpc_interrupt_update()
215 void shpc_reset(PCIDevice *d) in shpc_reset()
280 PCIDevice *affected_dev = shpc->sec_bus->devices[devfn]; in shpc_free_devices_in_slot()
295 static void shpc_slot_command(PCIDevice *d, uint8_t target, in shpc_slot_command()
364 static void shpc_command(PCIDevice *d) in shpc_command()
442 static void shpc_write(PCIDevice *d, unsigned addr, uint64_t val, int l) in shpc_write()
466 static uint64_t shpc_read(PCIDevice *d, unsigned addr, int l) in shpc_read()
485 static uint8_t shpc_cap_dword(PCIDevice *d) in shpc_cap_dword()
491 static void shpc_cap_update_dword(PCIDevice *d) in shpc_cap_update_dword()
499 static int shpc_cap_add_config(PCIDevice *d, Error **errp) in shpc_cap_add_config()
[all …]
H A Dpcie_port.c27 void pcie_port_init_reg(PCIDevice *d) in pcie_port_init_reg()
128 PCIDevice *pcie_find_port_by_pn(PCIBus *bus, uint8_t pn) in pcie_find_port_by_pn()
133 PCIDevice *d = bus->devices[devfn]; in pcie_find_port_by_pn()
154 PCIDevice *pcie_find_port_first(PCIBus *bus) in pcie_find_port_first()
159 PCIDevice *d = bus->devices[devfn]; in pcie_find_port_first()
179 PCIDevice *d = bus->devices[devfn]; in pcie_count_ds_ports()
/openbmc/qemu/hw/net/
H A Dvmware_utils.h29 vmw_shmem_read(PCIDevice *d, hwaddr addr, void *buf, int len) in vmw_shmem_read()
36 vmw_shmem_write(PCIDevice *d, hwaddr addr, void *buf, int len) in vmw_shmem_write()
43 vmw_shmem_rw(PCIDevice *d, hwaddr addr, void *buf, int len, int is_write) in vmw_shmem_rw()
55 vmw_shmem_set(PCIDevice *d, hwaddr addr, uint8_t val, int len) in vmw_shmem_set()
66 vmw_shmem_ld8(PCIDevice *d, hwaddr addr) in vmw_shmem_ld8()
75 vmw_shmem_st8(PCIDevice *d, hwaddr addr, uint8_t value) in vmw_shmem_st8()
82 vmw_shmem_ld16(PCIDevice *d, hwaddr addr) in vmw_shmem_ld16()
92 vmw_shmem_st16(PCIDevice *d, hwaddr addr, uint16_t value) in vmw_shmem_st16()
100 vmw_shmem_ld32(PCIDevice *d, hwaddr addr) in vmw_shmem_ld32()
110 vmw_shmem_st32(PCIDevice *d, hwaddr addr, uint32_t value) in vmw_shmem_st32()
[all …]
H A Digbvf.c56 PCIDevice parent_obj;
202 static void igbvf_write_config(PCIDevice *dev, uint32_t addr, uint32_t val, in igbvf_write_config()
215 PCIDevice *vf = PCI_DEVICE(opaque); in igbvf_mmio_read()
216 PCIDevice *pf = pcie_sriov_get_pf(vf); in igbvf_mmio_read()
225 PCIDevice *vf = PCI_DEVICE(opaque); in igbvf_mmio_write()
226 PCIDevice *pf = pcie_sriov_get_pf(vf); in igbvf_mmio_write()
244 static void igbvf_pci_realize(PCIDevice *dev, Error **errp) in igbvf_pci_realize()
289 PCIDevice *vf = PCI_DEVICE(obj); in igbvf_qdev_reset_hold()
294 static void igbvf_pci_uninit(PCIDevice *dev) in igbvf_pci_uninit()
/openbmc/qemu/hw/pci-bridge/
H A Dpci_bridge_dev.c56 static void pci_bridge_dev_realize(PCIDevice *dev, Error **errp) in pci_bridge_dev_realize()
128 static void pci_bridge_dev_exitfn(PCIDevice *dev) in pci_bridge_dev_exitfn()
149 static void pci_bridge_dev_write_config(PCIDevice *d, in pci_bridge_dev_write_config()
163 PCIDevice *dev = PCI_DEVICE(qdev); in qdev_pci_bridge_dev_reset()
193 PCIDevice *dev = opaque; in pci_device_shpc_present()
203 SHPC_VMSTATE(shpc, PCIDevice, pci_device_shpc_present),
211 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in pci_bridge_dev_plug_cb()
224 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in pci_bridge_dev_unplug_cb()
233 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in pci_bridge_dev_unplug_request_cb()
H A Dpcie_root_port.c21 static void rp_aer_vector_update(PCIDevice *d) in rp_aer_vector_update()
30 static void rp_write_config(PCIDevice *d, uint32_t address, in rp_write_config()
48 PCIDevice *d = PCI_DEVICE(obj); in rp_reset_hold()
62 static void rp_realize(PCIDevice *d, Error **errp) in rp_realize()
137 static void rp_exit(PCIDevice *d) in rp_exit()
152 DEFINE_PROP_BIT(COMPAT_PROP_PCP, PCIDevice, cap_present,
/openbmc/qemu/hw/ide/
H A Dcmd646.c55 static void cmd646_update_irq(PCIDevice *pd);
57 static void cmd646_update_dma_interrupts(PCIDevice *pd) in cmd646_update_dma_interrupts()
73 static void cmd646_update_udma_interrupts(PCIDevice *pd) in cmd646_update_udma_interrupts()
93 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_read()
130 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_write()
183 static void cmd646_update_irq(PCIDevice *pd) in cmd646_update_irq()
198 PCIDevice *pd = PCI_DEVICE(d); in cmd646_set_irq()
221 static uint32_t cmd646_pci_config_read(PCIDevice *d, in cmd646_pci_config_read()
227 static void cmd646_pci_config_write(PCIDevice *d, uint32_t addr, uint32_t val, in cmd646_pci_config_write()
250 static void pci_cmd646_ide_realize(PCIDevice *dev, Error **errp) in pci_cmd646_ide_realize()
[all …]
/openbmc/qemu/include/hw/remote/
H A Diohub.h27 PCIDevice d;
35 int remote_iohub_map_irq(PCIDevice *pci_dev, int intx);
37 void process_set_irqfd_msg(PCIDevice *pci_dev, MPQemuMsg *msg);
/openbmc/qemu/hw/usb/
H A Dhcd-uhci-pci.h
H A Dhcd-uhci.h46 PCIDevice dev;
86 void (*realize)(PCIDevice *dev, Error **errp);
92 void usb_uhci_common_realize(PCIDevice *dev, Error **errp);
/openbmc/qemu/ui/
H A Dutil.c31 static bool append_pci_address(char *buf, size_t buf_size, const PCIDevice *pci) in append_pci_address()
57 PCIDevice *pci = (PCIDevice *) object_dynamic_cast(OBJECT(dev), in qemu_console_fill_device_address()
/openbmc/qemu/hw/remote/
H A Dmessage.c23 static void process_config_write(QIOChannel *ioc, PCIDevice *dev,
25 static void process_config_read(QIOChannel *ioc, PCIDevice *dev,
29 static void process_device_reset_msg(QIOChannel *ioc, PCIDevice *dev,
35 PCIDevice *pci_dev = NULL; in mpqemu_remote_msg_loop_co()
93 static void process_config_write(QIOChannel *ioc, PCIDevice *dev, in process_config_write()
117 static void process_config_read(QIOChannel *ioc, PCIDevice *dev, in process_config_read()
215 static void process_device_reset_msg(QIOChannel *ioc, PCIDevice *dev, in process_device_reset_msg()

12345678