summaryrefslogtreecommitdiff
path: root/xen/include/asm-x86/device.h
blob: f2acc7effd296ee8e923d889605733c3e3c40587 (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
#ifndef __ASM_X86_DEVICE_H
#define __ASM_X86_DEVICE_H

#include <xen/pci.h>

/*
 * x86 only supports PCI. Therefore it's possible to directly use
 * pci_dev to avoid adding new field.
 */

typedef struct pci_dev device_t;

#define dev_is_pci(dev) ((void)(dev), 1)
#define pci_to_dev(pci) (pci)

#endif /* __ASM_X86_DEVICE_H */

/*
 * Local variables:
 * mode: C
 * c-file-style: "BSD"
 * c-basic-offset: 4
 * indent-tabs-mode: nil
 * End:
 */