summaryrefslogtreecommitdiffstats
path: root/qemu/include/hw/pci/pci-assign.h
blob: 55f42c56faeef2373cc97a5ee9cc7d4d0b949c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 * the COPYING file in the top-level directory.
 *
 * Just split from hw/i386/kvm/pci-assign.c.
 */
#ifndef PCI_ASSIGN_H
#define PCI_ASSIGN_H

#include "hw/pci/pci.h"

//#define DEVICE_ASSIGNMENT_DEBUG

#ifdef DEVICE_ASSIGNMENT_DEBUG
#define DEBUG(fmt, ...)                                       \
    do {                                                      \
        fprintf(stderr, "%s: " fmt, __func__ , __VA_ARGS__);  \
    } while (0)
#else
#define DEBUG(fmt, ...)
#endif

void *pci_assign_dev_load_option_rom(PCIDevice *dev, struct Object *owner,
                                     int *size, unsigned int domain,
                                     unsigned int bus, unsigned int slot,
                                     unsigned int function);
#endif /* PCI_ASSIGN_H */