diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2022-12-19 16:12:59 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2022-12-19 16:12:59 +0000 |
| commit | 33698d3abf8ce65c38bb4b12b600b130d2682c79 (patch) | |
| tree | 4381a10d01fa3bafbd38b7860b76002fd10e5842 /hw/pci/pci-internal.h | |
| parent | c15dc499cc22f4a71639e42e36051e118761c25f (diff) | |
| parent | e221cfac5935b0fea0989da9ef4ee5024777f23e (diff) | |
| download | focaccia-qemu-33698d3abf8ce65c38bb4b12b600b130d2682c79.tar.gz focaccia-qemu-33698d3abf8ce65c38bb4b12b600b130d2682c79.zip | |
Merge tag 'pull-monitor-2022-12-19' of https://repo.or.cz/qemu/armbru into staging
Monitor patches for 2022-12-19 # gpg: Signature made Mon 19 Dec 2022 15:23:44 GMT # gpg: using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653 # gpg: issuer "armbru@redhat.com" # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full] # gpg: aka "Markus Armbruster <armbru@pond.sub.org>" [full] # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653 * tag 'pull-monitor-2022-12-19' of https://repo.or.cz/qemu/armbru: pci: Reject pcie_aer_inject_error -c with symbolic error status pci: Improve do_pcie_aer_inject_error()'s error messages pci: Rename hmp_pcie_aer_inject_error()'s local variable @err pci: Inline do_pcie_aer_inject_error() into its only caller pci: Move HMP command from hw/pci/pcie_aer.c to pci-hmp-cmds.c pci: Fix silent truncation of pcie_aer_inject_error argument pci: Move pcibus_dev_print() to pci-hmp-cmds.c pci: Deduplicate get_class_desc() pci: Build hw/pci/pci-hmp-cmds.c only when CONFIG_PCI pci: Make query-pci stub consistent with the real one pci: Move HMP commands from monitor/ to new hw/pci/pci-hmp-cmds.c pci: Move QMP commands to new hw/pci/pci-qmp-cmds.c pci: Clean up a few things checkpatch.pl would flag later on Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/pci/pci-internal.h')
| -rw-r--r-- | hw/pci/pci-internal.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/hw/pci/pci-internal.h b/hw/pci/pci-internal.h new file mode 100644 index 0000000000..2ea356bdf5 --- /dev/null +++ b/hw/pci/pci-internal.h @@ -0,0 +1,25 @@ +#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); +void pcibus_dev_print(Monitor *mon, DeviceState *dev, int indent); + +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); + +#endif |