pci-internal.h 614 B

123456789101112131415161718192021222324
  1. #ifndef HW_PCI_PCI_INTERNAL_H
  2. #define HW_PCI_PCI_INTERNAL_H
  3. #include "qemu/queue.h"
  4. typedef struct {
  5. uint16_t class;
  6. const char *desc;
  7. const char *fw_name;
  8. uint16_t fw_ign_bits;
  9. } pci_class_desc;
  10. typedef QLIST_HEAD(, PCIHostState) PCIHostStateList;
  11. extern PCIHostStateList pci_host_bridges;
  12. const pci_class_desc *get_class_desc(int class);
  13. PCIBus *pci_find_bus_nr(PCIBus *bus, int bus_num);
  14. void pcibus_dev_print(Monitor *mon, DeviceState *dev, int indent);
  15. int pcie_aer_parse_error_string(const char *error_name,
  16. uint32_t *status, bool *correctable);
  17. #endif