summary refs log tree commit diff stats
path: root/hw/pci/pci-internal.h
blob: 3199615e50f35a1c67404768bd5bfebffc24b4bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);

#endif