~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/microblaze/include/asm/pci.h

Version: ~ [ linux-5.6-rc3 ] ~ [ linux-5.5.6 ] ~ [ linux-5.4.22 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.106 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.171 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.214 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.214 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.82 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * This program is free software; you can redistribute it and/or
  3  * modify it under the terms of the GNU General Public License
  4  * as published by the Free Software Foundation; either version
  5  * 2 of the License, or (at your option) any later version.
  6  *
  7  * Based on powerpc version
  8  */
  9 
 10 #ifndef __ASM_MICROBLAZE_PCI_H
 11 #define __ASM_MICROBLAZE_PCI_H
 12 #ifdef __KERNEL__
 13 
 14 #include <linux/types.h>
 15 #include <linux/slab.h>
 16 #include <linux/string.h>
 17 #include <linux/dma-mapping.h>
 18 #include <linux/pci.h>
 19 #include <linux/scatterlist.h>
 20 
 21 #include <asm/io.h>
 22 #include <asm/prom.h>
 23 #include <asm/pci-bridge.h>
 24 
 25 #define PCIBIOS_MIN_IO          0x1000
 26 #define PCIBIOS_MIN_MEM         0x10000000
 27 
 28 /* Values for the `which' argument to sys_pciconfig_iobase syscall.  */
 29 #define IOBASE_BRIDGE_NUMBER    0
 30 #define IOBASE_MEMORY           1
 31 #define IOBASE_IO               2
 32 #define IOBASE_ISA_IO           3
 33 #define IOBASE_ISA_MEM          4
 34 
 35 #define pcibios_scan_all_fns(a, b)      0
 36 
 37 /*
 38  * Set this to 1 if you want the kernel to re-assign all PCI
 39  * bus numbers (don't do that on ppc64 yet !)
 40  */
 41 #define pcibios_assign_all_busses()     0
 42 
 43 extern int pci_domain_nr(struct pci_bus *bus);
 44 
 45 /* Decide whether to display the domain number in /proc */
 46 extern int pci_proc_domain(struct pci_bus *bus);
 47 
 48 struct vm_area_struct;
 49 /* Map a range of PCI memory or I/O space for a device into user space */
 50 int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma,
 51                         enum pci_mmap_state mmap_state, int write_combine);
 52 
 53 /* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */
 54 #define HAVE_PCI_MMAP   1
 55 
 56 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val,
 57                            size_t count);
 58 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val,
 59                            size_t count);
 60 extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
 61                                       struct vm_area_struct *vma,
 62                                       enum pci_mmap_state mmap_state);
 63 
 64 #define HAVE_PCI_LEGACY 1
 65 
 66 /* The PCI address space does equal the physical memory
 67  * address space (no IOMMU).  The IDE and SCSI device layers use
 68  * this boolean for bounce buffer decisions.
 69  */
 70 #define PCI_DMA_BUS_IS_PHYS     (1)
 71 
 72 extern void pcibios_claim_one_bus(struct pci_bus *b);
 73 
 74 extern void pcibios_finish_adding_to_bus(struct pci_bus *bus);
 75 
 76 extern void pcibios_resource_survey(void);
 77 
 78 struct file;
 79 extern pgprot_t pci_phys_mem_access_prot(struct file *file,
 80                                          unsigned long pfn,
 81                                          unsigned long size,
 82                                          pgprot_t prot);
 83 
 84 #define HAVE_ARCH_PCI_RESOURCE_TO_USER
 85 extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
 86                                  const struct resource *rsrc,
 87                                  resource_size_t *start, resource_size_t *end);
 88 
 89 extern void pcibios_setup_bus_devices(struct pci_bus *bus);
 90 extern void pcibios_setup_bus_self(struct pci_bus *bus);
 91 
 92 /* This part of code was originally in xilinx-pci.h */
 93 #ifdef CONFIG_PCI_XILINX
 94 extern void __init xilinx_pci_init(void);
 95 #else
 96 static inline void __init xilinx_pci_init(void) { return; }
 97 #endif
 98 
 99 #endif  /* __KERNEL__ */
100 #endif /* __ASM_MICROBLAZE_PCI_H */
101 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp