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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef __ALPHA_PCI_H
  3 #define __ALPHA_PCI_H
  4 
  5 #ifdef __KERNEL__
  6 
  7 #include <linux/spinlock.h>
  8 #include <linux/dma-mapping.h>
  9 #include <linux/scatterlist.h>
 10 #include <asm/machvec.h>
 11 
 12 /*
 13  * The following structure is used to manage multiple PCI busses.
 14  */
 15 
 16 struct pci_iommu_arena;
 17 struct page;
 18 
 19 /* A controller.  Used to manage multiple PCI busses.  */
 20 
 21 struct pci_controller {
 22         struct pci_controller *next;
 23         struct pci_bus *bus;
 24         struct resource *io_space;
 25         struct resource *mem_space;
 26 
 27         /* The following are for reporting to userland.  The invariant is
 28            that if we report a BWX-capable dense memory, we do not report
 29            a sparse memory at all, even if it exists.  */
 30         unsigned long sparse_mem_base;
 31         unsigned long dense_mem_base;
 32         unsigned long sparse_io_base;
 33         unsigned long dense_io_base;
 34 
 35         /* This one's for the kernel only.  It's in KSEG somewhere.  */
 36         unsigned long config_space_base;
 37 
 38         unsigned int index;
 39         /* For compatibility with current (as of July 2003) pciutils
 40            and XFree86. Eventually will be removed. */
 41         unsigned int need_domain_info;
 42 
 43         struct pci_iommu_arena *sg_pci;
 44         struct pci_iommu_arena *sg_isa;
 45 
 46         void *sysdata;
 47 };
 48 
 49 /* Override the logic in pci_scan_bus for skipping already-configured
 50    bus numbers.  */
 51 
 52 #define pcibios_assign_all_busses()     1
 53 
 54 #define PCIBIOS_MIN_IO          alpha_mv.min_io_address
 55 #define PCIBIOS_MIN_MEM         alpha_mv.min_mem_address
 56 
 57 /* IOMMU controls.  */
 58 
 59 #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index
 60 
 61 static inline int pci_proc_domain(struct pci_bus *bus)
 62 {
 63         struct pci_controller *hose = bus->sysdata;
 64         return hose->need_domain_info;
 65 }
 66 
 67 #endif /* __KERNEL__ */
 68 
 69 /* Values for the `which' argument to sys_pciconfig_iobase.  */
 70 #define IOBASE_HOSE             0
 71 #define IOBASE_SPARSE_MEM       1
 72 #define IOBASE_DENSE_MEM        2
 73 #define IOBASE_SPARSE_IO        3
 74 #define IOBASE_DENSE_IO         4
 75 #define IOBASE_ROOT_BUS         5
 76 #define IOBASE_FROM_HOSE        0x10000
 77 
 78 extern struct pci_dev *isa_bridge;
 79 
 80 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val,
 81                            size_t count);
 82 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val,
 83                             size_t count);
 84 extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
 85                                       struct vm_area_struct *vma,
 86                                       enum pci_mmap_state mmap_state);
 87 extern void pci_adjust_legacy_attr(struct pci_bus *bus,
 88                                    enum pci_mmap_state mmap_type);
 89 #define HAVE_PCI_LEGACY 1
 90 
 91 #endif /* __ALPHA_PCI_H */
 92 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php