1
2
3
4
5
6
7#ifndef __ASM_MICROBLAZE_PCI_H
8#define __ASM_MICROBLAZE_PCI_H
9#ifdef __KERNEL__
10
11#include <linux/types.h>
12#include <linux/slab.h>
13#include <linux/string.h>
14#include <linux/dma-mapping.h>
15#include <linux/pci.h>
16#include <linux/scatterlist.h>
17
18#include <asm/io.h>
19#include <asm/pci-bridge.h>
20
21#define PCIBIOS_MIN_IO 0x1000
22#define PCIBIOS_MIN_MEM 0x10000000
23
24
25#define IOBASE_BRIDGE_NUMBER 0
26#define IOBASE_MEMORY 1
27#define IOBASE_IO 2
28#define IOBASE_ISA_IO 3
29#define IOBASE_ISA_MEM 4
30
31#define pcibios_scan_all_fns(a, b) 0
32
33
34
35
36
37#define pcibios_assign_all_busses() 0
38
39extern int pci_domain_nr(struct pci_bus *bus);
40
41
42extern int pci_proc_domain(struct pci_bus *bus);
43
44struct vm_area_struct;
45
46
47#define HAVE_PCI_MMAP 1
48#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
49#define arch_can_pci_mmap_io() 1
50
51extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val,
52 size_t count);
53extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val,
54 size_t count);
55extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
56 struct vm_area_struct *vma,
57 enum pci_mmap_state mmap_state);
58
59#define HAVE_PCI_LEGACY 1
60
61extern void pcibios_resource_survey(void);
62
63struct file;
64extern pgprot_t pci_phys_mem_access_prot(struct file *file,
65 unsigned long pfn,
66 unsigned long size,
67 pgprot_t prot);
68
69
70#ifdef CONFIG_PCI_XILINX
71extern void __init xilinx_pci_init(void);
72#else
73static inline void __init xilinx_pci_init(void) { return; }
74#endif
75
76#endif
77#endif
78