]> git.proxmox.com Git - mirror_qemu.git/blame - hw/pci/pci-internal.h
hw/pci/aer: Make PCIE AER error injection facility available for other emulation...
[mirror_qemu.git] / hw / pci / pci-internal.h
CommitLineData
987b73b3
MA
1#ifndef HW_PCI_PCI_INTERNAL_H
2#define HW_PCI_PCI_INTERNAL_H
3
4#include "qemu/queue.h"
5
6typedef struct {
7 uint16_t class;
8 const char *desc;
9 const char *fw_name;
10 uint16_t fw_ign_bits;
11} pci_class_desc;
12
13typedef QLIST_HEAD(, PCIHostState) PCIHostStateList;
14
15extern PCIHostStateList pci_host_bridges;
16
17const pci_class_desc *get_class_desc(int class);
18PCIBus *pci_find_bus_nr(PCIBus *bus, int bus_num);
0bcaaff8 19void pcibus_dev_print(Monitor *mon, DeviceState *dev, int indent);
987b73b3 20
d0e67298
MA
21int pcie_aer_parse_error_string(const char *error_name,
22 uint32_t *status, bool *correctable);
d0e67298 23
987b73b3 24#endif