Revision e927d487 hw/pci.h

b/hw/pci.h
214 214

  
215 215
typedef void (*pci_set_irq_fn)(void *opaque, int irq_num, int level);
216 216
typedef int (*pci_map_irq_fn)(PCIDevice *pci_dev, int irq_num);
217
typedef int (*pci_hotplug_fn)(DeviceState *qdev, PCIDevice *pci_dev, int state);
217

  
218
typedef enum {
219
    PCI_HOTPLUG_DISABLED,
220
    PCI_HOTPLUG_ENABLED,
221
    PCI_COLDPLUG_ENABLED,
222
} PCIHotplugState;
223

  
224
typedef int (*pci_hotplug_fn)(DeviceState *qdev, PCIDevice *pci_dev,
225
                              PCIHotplugState state);
218 226
void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent,
219 227
                         const char *name, int devfn_min);
220 228
PCIBus *pci_bus_new(DeviceState *parent, const char *name, int devfn_min);

Also available in: Unified diff