blob: 55f42c56faeef2373cc97a5ee9cc7d4d0b949c32 [file] [log] [blame]
Tiejun Chenbcd74612015-07-15 13:37:44 +08001/*
2 * This work is licensed under the terms of the GNU GPL, version 2. See
3 * the COPYING file in the top-level directory.
4 *
5 * Just split from hw/i386/kvm/pci-assign.c.
6 */
7#ifndef PCI_ASSIGN_H
8#define PCI_ASSIGN_H
9
10#include "hw/pci/pci.h"
11
12//#define DEVICE_ASSIGNMENT_DEBUG
13
14#ifdef DEVICE_ASSIGNMENT_DEBUG
15#define DEBUG(fmt, ...) \
16 do { \
17 fprintf(stderr, "%s: " fmt, __func__ , __VA_ARGS__); \
18 } while (0)
19#else
20#define DEBUG(fmt, ...)
21#endif
22
23void *pci_assign_dev_load_option_rom(PCIDevice *dev, struct Object *owner,
24 int *size, unsigned int domain,
25 unsigned int bus, unsigned int slot,
26 unsigned int function);
27#endif /* PCI_ASSIGN_H */