Merge tag 'char-misc-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[linux-2.6-block.git] / arch / arm64 / include / asm / pci.h
CommitLineData
d1e6dc91
LD
1#ifndef __ASM_PCI_H
2#define __ASM_PCI_H
3#ifdef __KERNEL__
4
5#include <linux/types.h>
6#include <linux/slab.h>
7#include <linux/dma-mapping.h>
8
9#include <asm/io.h>
d1e6dc91
LD
10
11#define PCIBIOS_MIN_IO 0x1000
12#define PCIBIOS_MIN_MEM 0
13
14/*
15 * Set to 1 if the kernel should re-assign all PCI bus numbers
16 */
17#define pcibios_assign_all_busses() \
18 (pci_has_flag(PCI_REASSIGN_ALL_BUS))
19
20/*
21 * PCI address space differs from physical memory address space
22 */
23#define PCI_DMA_BUS_IS_PHYS (0)
24
25extern int isa_dma_bridge_buggy;
26
27#ifdef CONFIG_PCI
a9cb97fe
HG
28static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
29{
30 /* no legacy IRQ on arm64 */
31 return -ENODEV;
32}
33
d1e6dc91
LD
34static inline int pci_proc_domain(struct pci_bus *bus)
35{
36 return 1;
37}
38#endif /* CONFIG_PCI */
39
40#endif /* __KERNEL__ */
41#endif /* __ASM_PCI_H */