/openbmc/qemu/include/hw/pci/ |
H A D | pcie.h | 92 void pcie_cap_exit(PCIDevice *dev); 94 void pcie_cap_v1_exit(PCIDevice *dev); 100 void pcie_cap_deverr_init(PCIDevice *dev); 103 void pcie_cap_lnkctl_init(PCIDevice *dev); 107 void pcie_cap_slot_reset(PCIDevice *dev); 116 void pcie_cap_root_init(PCIDevice *dev); 117 void pcie_cap_root_reset(PCIDevice *dev); 119 void pcie_cap_flr_init(PCIDevice *dev); 124 void pcie_cap_arifwd_init(PCIDevice *dev); 130 void pcie_add_capability(PCIDevice *dev, [all …]
|
H A D | msix.h | 10 int msix_init(PCIDevice *dev, unsigned short nentries, 22 void msix_uninit_exclusive_bar(PCIDevice *dev); 26 void msix_save(PCIDevice *dev, QEMUFile *f); 27 void msix_load(PCIDevice *dev, QEMUFile *f); 29 int msix_enabled(PCIDevice *dev); 30 int msix_present(PCIDevice *dev); 34 void msix_clr_pending(PCIDevice *dev, int vector); 38 void msix_unuse_all_vectors(PCIDevice *dev); 43 void msix_reset(PCIDevice *dev); 45 int msix_set_vector_notifiers(PCIDevice *dev, [all …]
|
H A D | pcie_sriov.h | 26 PCIDevice *pf; /* Pointer back to owner physical function */ 30 void 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, 41 void pcie_sriov_vf_register_bar(PCIDevice *dev, int region_num, 58 void pcie_sriov_config_write(PCIDevice *dev, uint32_t address, 62 void pcie_sriov_pf_disable_vfs(PCIDevice *dev); 65 uint16_t pcie_sriov_vf_number(PCIDevice *dev); 71 PCIDevice *pcie_sriov_get_pf(PCIDevice *dev); 77 PCIDevice *pcie_sriov_get_vf_at_index(PCIDevice *dev, int n); [all …]
|
H A D | msi.h | 33 void msi_set_message(PCIDevice *dev, MSIMessage msg); 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); 46 unsigned int msi_nr_vectors_allocated(const PCIDevice *dev); [all …]
|
H A D | pci.h | 238 void pci_unregister_vga(PCIDevice *pci_dev); 250 uint32_t pci_default_read_config(PCIDevice *d, 252 void pci_default_write_config(PCIDevice *d, 255 int pci_device_load(PCIDevice *s, QEMUFile *f); 263 int pci_bar(PCIDevice *d, int reg); 315 void pci_device_reset(PCIDevice *dev); 321 PCIDevice *pci_vga_init(PCIBus *bus); 348 PCIDevice *pci_get_function_0(PCIDevice *pci_dev); 358 const char *pci_root_bus_path(PCIDevice *dev); 364 void pci_device_deassert_intx(PCIDevice *dev); [all …]
|
H A D | pci_device.h | 9 DECLARE_OBJ_CHECKERS(PCIDevice, PCIDeviceClass, 27 void (*realize)(PCIDevice *dev, Error **errp); 51 PCIDevice *dev; 56 struct PCIDevice { struct 165 static inline int pci_intx(PCIDevice *pci_dev) in pci_intx() argument 170 static inline int pci_is_cxl(const PCIDevice *d) in pci_is_cxl() 175 static inline int pci_is_express(const PCIDevice *d) in pci_is_express() 193 static inline int pci_is_vf(const PCIDevice *d) in pci_is_vf() 198 static inline uint32_t pci_config_size(const PCIDevice *d) in pci_config_size() 203 static inline uint16_t pci_get_bdf(PCIDevice *dev) in pci_get_bdf() [all …]
|
H A D | pcie_aer.h | 89 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 D | pci_bridge.h | 60 PCIDevice parent_obj; 92 PCIDevice parent_obj; 120 int pci_bridge_ssvid_init(PCIDevice *dev, uint8_t offset, 124 PCIDevice *pci_bridge_get_device(PCIBus *bus); 127 pcibus_t pci_bridge_get_base(const PCIDevice *bridge, uint8_t type); 128 pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type); 131 void pci_bridge_write_config(PCIDevice *d, 133 void pci_bridge_disable_base_limit(PCIDevice *dev); 136 void pci_bridge_initfn(PCIDevice *pci_dev, const char *typename); 137 void pci_bridge_exitfn(PCIDevice *pci_dev); [all …]
|
H A D | shpc.h | 39 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 D | pcie_port.h | 41 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); 89 uint8_t (*aer_vector)(const PCIDevice *dev); 90 int (*interrupts_init)(PCIDevice *dev, Error **errp); 91 void (*interrupts_uninit)(PCIDevice *dev);
|
/openbmc/qemu/hw/pci/ |
H A D | pci-stub.c | 47 MSIMessage pci_get_msi_message(PCIDevice *dev, int vector) in pci_get_msi_message() 53 uint16_t pci_requester_id(PCIDevice *dev) in pci_requester_id() 60 bool msi_enabled(const PCIDevice *dev) in msi_enabled() 65 void msi_notify(PCIDevice *dev, unsigned int vector) in msi_notify() 71 bool msi_is_masked(const PCIDevice *dev, unsigned vector) in msi_is_masked() 76 MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector) in msi_get_message() 81 int msix_enabled(PCIDevice *dev) in msix_enabled() 86 bool msix_is_masked(PCIDevice *dev, unsigned vector) in msix_is_masked() 91 MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector) in msix_get_message()
|
H A D | msix.c | 84 void msix_clr_pending(PCIDevice *dev, int vector) in msix_clr_pending() 168 static bool msix_masked(PCIDevice *dev) in msix_masked() 214 PCIDevice *dev = opaque; in msix_table_mmio_read() 223 PCIDevice *dev = opaque; in msix_table_mmio_write() 250 PCIDevice *dev = opaque; in msix_pba_mmio_read() 478 void msix_save(PCIDevice *dev, QEMUFile *f) in msix_save() 491 void msix_load(PCIDevice *dev, QEMUFile *f) in msix_load() 511 int msix_present(PCIDevice *dev) in msix_present() 517 int msix_enabled(PCIDevice *dev) in msix_enabled() 545 void msix_reset(PCIDevice *dev) in msix_reset() [all …]
|
H A D | pci.c | 631 PCIDevice *s = container_of(pv, PCIDevice, config); in get_pci_config_device() 685 PCIDevice *s = container_of(pv, PCIDevice, irq_state); in get_pci_irq_state() 708 PCIDevice *s = container_of(pv, PCIDevice, irq_state); in put_pci_irq_state() 1136 static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, in do_pci_register_device() 1799 PCIDevice *d; in pci_for_each_device_under_bus_reverse() 1823 PCIDevice *d; in pci_for_each_device_under_bus() 2057 PCIDevice *pci_dev = (PCIDevice *)qdev; in pci_qdev_realize() 2518 PCIDevice *d = (PCIDevice *)dev; in pci_dev_fw_name() 2546 PCIDevice *d = (PCIDevice *)dev; in pcibus_get_fw_dev_path() 2560 PCIDevice *d = container_of(dev, PCIDevice, qdev); in pcibus_get_dev_path() [all …]
|
H A D | pcie.c | 259 void pcie_cap_exit(PCIDevice *dev) in pcie_cap_exit() 264 void pcie_cap_v1_exit(PCIDevice *dev) in pcie_cap_v1_exit() 302 void pcie_cap_deverr_init(PCIDevice *dev) in pcie_cap_deverr_init() 323 void pcie_cap_lnkctl_init(PCIDevice *dev) in pcie_cap_lnkctl_init() 471 PCIDevice *pci_dev = PCI_DEVICE(dev); in pcie_cap_slot_plug_cb() 679 void pcie_cap_slot_reset(PCIDevice *dev) in pcie_cap_slot_reset() 820 PCIDevice *dev = opaque; in pcie_cap_slot_post_load() 832 void pcie_cap_root_init(PCIDevice *dev) in pcie_cap_root_init() 839 void pcie_cap_root_reset(PCIDevice *dev) in pcie_cap_root_reset() 845 void pcie_cap_flr_init(PCIDevice *dev) in pcie_cap_flr_init() [all …]
|
H A D | pcie_sriov.c | 23 static PCIDevice *register_vf(PCIDevice *pf, int devfn, 25 static void unregister_vfs(PCIDevice *dev); 74 void pcie_sriov_pf_exit(PCIDevice *dev) in pcie_sriov_pf_exit() 144 static PCIDevice *register_vf(PCIDevice *pf, int devfn, const char *name, in register_vf() 147 PCIDevice *dev = pci_new(devfn, name); in register_vf() 166 static void register_vfs(PCIDevice *dev) in register_vfs() 196 static void unregister_vfs(PCIDevice *dev) in unregister_vfs() 281 uint16_t pcie_sriov_vf_number(PCIDevice *dev) in pcie_sriov_vf_number() 287 PCIDevice *pcie_sriov_get_pf(PCIDevice *dev) in pcie_sriov_get_pf() 292 PCIDevice *pcie_sriov_get_vf_at_index(PCIDevice *dev, int n) in pcie_sriov_get_vf_at_index() [all …]
|
H A D | msi.c | 92 static inline uint8_t msi_flags_off(const PCIDevice* dev) in msi_flags_off() 97 static inline uint8_t msi_address_lo_off(const PCIDevice* dev) in msi_address_lo_off() 102 static inline uint8_t msi_address_hi_off(const PCIDevice* dev) in msi_address_hi_off() 126 void msi_set_message(PCIDevice *dev, MSIMessage msg) in msi_set_message() 169 bool msi_enabled(const PCIDevice *dev) in msi_enabled() 192 int msi_init(struct PCIDevice *dev, uint8_t offset, in msi_init() 256 void msi_uninit(struct PCIDevice *dev) in msi_uninit() 273 void msi_reset(PCIDevice *dev) in msi_reset() 352 void msi_notify(PCIDevice *dev, unsigned int vector) in msi_notify() 377 void msi_send_message(PCIDevice *dev, MSIMessage msg) in msi_send_message() [all …]
|
H A D | pci_bridge.c | 48 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() 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() 219 PCIDevice *pd = PCI_DEVICE(br); in pci_bridge_region_del() 252 void pci_bridge_write_config(PCIDevice *d, in pci_bridge_write_config() 282 void pci_bridge_disable_base_limit(PCIDevice *dev) in pci_bridge_disable_base_limit() 305 PCIDevice *dev = PCI_DEVICE(qdev); in pci_bridge_reset() [all …]
|
H A D | shpc.c | 143 static void shpc_interrupt_update(PCIDevice *d) in shpc_interrupt_update() 186 void shpc_reset(PCIDevice *d) in shpc_reset() 318 static void shpc_command(PCIDevice *d) in shpc_command() 439 static uint8_t shpc_cap_dword(PCIDevice *d) in shpc_cap_dword() 445 static void shpc_cap_update_dword(PCIDevice *d) in shpc_cap_update_dword() 520 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in shpc_device_plug_cb() 673 int shpc_bar_size(PCIDevice *d) in shpc_bar_size() 678 void shpc_cleanup(PCIDevice *d, MemoryRegion *bar) in shpc_cleanup() 686 void shpc_free(PCIDevice *d) in shpc_free() 719 PCIDevice *d = container_of(pv, PCIDevice, shpc); in shpc_save() [all …]
|
H A D | pcie_aer.c | 169 void pcie_aer_exit(PCIDevice *dev) in pcie_aer_exit() 292 static void pcie_aer_root_notify(PCIDevice *dev) in pcie_aer_root_notify() 463 static void pcie_aer_clear_log(PCIDevice *dev) in pcie_aer_clear_log() 474 static void pcie_aer_clear_error(PCIDevice *dev) in pcie_aer_clear_error() 526 PCIDevice *dev; 541 PCIDevice *dev = inj->dev; in pcie_aer_inject_cor_error() 581 PCIDevice *dev = inj->dev; in pcie_aer_inject_uncor_error() 718 void pcie_aer_write_config(PCIDevice *dev, in pcie_aer_write_config() 744 void pcie_aer_root_init(PCIDevice *dev) in pcie_aer_root_init() 759 void pcie_aer_root_reset(PCIDevice *dev) in pcie_aer_root_reset() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | vmware_utils.h | 29 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() 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() 118 vmw_shmem_ld64(PCIDevice *d, hwaddr addr) in vmw_shmem_ld64() [all …]
|
H A D | igbvf.c | 56 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() 287 PCIDevice *vf = PCI_DEVICE(obj); in igbvf_qdev_reset_hold() 292 static void igbvf_pci_uninit(PCIDevice *dev) in igbvf_pci_uninit()
|
/openbmc/qemu/hw/ide/ |
H A D | cmd646.c | 54 static void cmd646_update_irq(PCIDevice *pd); 56 static void cmd646_update_dma_interrupts(PCIDevice *pd) in cmd646_update_dma_interrupts() 72 static void cmd646_update_udma_interrupts(PCIDevice *pd) in cmd646_update_udma_interrupts() 92 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_read() 129 PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev); in bmdma_write() 182 static void cmd646_update_irq(PCIDevice *pd) in cmd646_update_irq() 197 PCIDevice *pd = PCI_DEVICE(d); in cmd646_set_irq() 220 static uint32_t cmd646_pci_config_read(PCIDevice *d, in cmd646_pci_config_read() 226 static void cmd646_pci_config_write(PCIDevice *d, uint32_t addr, uint32_t val, in cmd646_pci_config_write() 249 static void pci_cmd646_ide_realize(PCIDevice *dev, Error **errp) in pci_cmd646_ide_realize() [all …]
|
/openbmc/qemu/hw/pci-bridge/ |
H A D | pci_bridge_dev.c | 56 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() 194 PCIDevice *dev = opaque; in pci_device_shpc_present() 204 SHPC_VMSTATE(shpc, PCIDevice, pci_device_shpc_present), 212 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in pci_bridge_dev_plug_cb() 225 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in pci_bridge_dev_unplug_cb() 234 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev); in pci_bridge_dev_unplug_request_cb()
|
H A D | pcie_root_port.c | 21 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/include/hw/remote/ |
H A D | iohub.h | 27 PCIDevice d; 35 int remote_iohub_map_irq(PCIDevice *pci_dev, int intx); 37 void process_set_irqfd_msg(PCIDevice *pci_dev, MPQemuMsg *msg);
|