Go to the documentation of this file.
15 #ifndef _ASM_TILE_PCI_H
16 #define _ASM_TILE_PCI_H
19 #include <linux/pci.h>
55 #define TILE_NUM_PCIE 2
62 #define PCI_DMA_BUS_IS_PHYS 1
80 #define PCIE_HOST_BAR0_SIZE HPAGE_SIZE
81 #define PCIE_HOST_BAR0_START HPAGE_MASK
87 #define PCIE_HOST_REGS_SIZE PAGE_SIZE
94 #define MEM_MAP_INTR_REGIONS_BASE (HPAGE_MASK - HPAGE_SIZE)
99 #define MEM_MAP_INTR_REGION_SIZE (1 << TRIO_MAP_MEM_LIM__ADDR_SHIFT)
104 #define TILE_PCI_BAR_WINDOW_TOP (1ULL << 32)
109 #define TILE_PCI_BAR_WINDOW_SIZE (1 << 30)
116 #define TILE_PCI_MAX_DIRECT_DMA_ADDRESS \
117 (TILE_PCI_BAR_WINDOW_TOP - TILE_PCI_BAR_WINDOW_SIZE - 1)
128 #define TILE_PCI_MEM_MAP_BASE_OFFSET (1ULL << CHIP_PA_WIDTH())
134 #define TILE_PCI_MEM_START (1ULL << CHIP_PA_WIDTH())
159 char mem_space_name[32];
168 int irq_intx_table[4];
184 #define PCI_DMA_BUS_IS_PHYS 0
193 #define pci_domain_nr(bus) (((struct pci_controller *)(bus)->sysdata)->index)
213 #define PCIBIOS_MIN_MEM 0
214 #define PCIBIOS_MIN_IO 0
217 #define cpumask_of_pcibus(bus) cpu_online_mask