2022-12-01 15:11:22 +03:00
|
|
|
#ifndef HW_PCI_PCI_INTERNAL_H
|
|
|
|
#define HW_PCI_PCI_INTERNAL_H
|
|
|
|
|
|
|
|
#include "qemu/queue.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint16_t class;
|
|
|
|
const char *desc;
|
|
|
|
const char *fw_name;
|
|
|
|
uint16_t fw_ign_bits;
|
|
|
|
} pci_class_desc;
|
|
|
|
|
|
|
|
typedef QLIST_HEAD(, PCIHostState) PCIHostStateList;
|
|
|
|
|
|
|
|
extern PCIHostStateList pci_host_bridges;
|
|
|
|
|
|
|
|
const pci_class_desc *get_class_desc(int class);
|
|
|
|
PCIBus *pci_find_bus_nr(PCIBus *bus, int bus_num);
|
2022-12-01 15:11:27 +03:00
|
|
|
void pcibus_dev_print(Monitor *mon, DeviceState *dev, int indent);
|
2022-12-01 15:11:22 +03:00
|
|
|
|
2022-12-01 15:11:29 +03:00
|
|
|
int pcie_aer_parse_error_string(const char *error_name,
|
|
|
|
uint32_t *status, bool *correctable);
|
|
|
|
int pcie_aer_inject_error(PCIDevice *dev, const PCIEAERErr *err);
|
|
|
|
|
2022-12-01 15:11:22 +03:00
|
|
|
#endif
|