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

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/octeon/pci-octeon.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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 /*
  2  * This file is subject to the terms and conditions of the GNU General Public
  3  * License.  See the file "COPYING" in the main directory of this archive
  4  * for more details.
  5  *
  6  * Copyright (C) 2005-2009 Cavium Networks
  7  */
  8 
  9 #ifndef __PCI_OCTEON_H__
 10 #define __PCI_OCTEON_H__
 11 
 12 #include <linux/pci.h>
 13 
 14 /*
 15  * The physical memory base mapped by BAR1.  256MB at the end of the
 16  * first 4GB.
 17  */
 18 #define CVMX_PCIE_BAR1_PHYS_BASE ((1ull << 32) - (1ull << 28))
 19 #define CVMX_PCIE_BAR1_PHYS_SIZE (1ull << 28)
 20 
 21 /*
 22  * The RC base of BAR1.  gen1 has a 39-bit BAR2, gen2 has 41-bit BAR2,
 23  * place BAR1 so it is the same for both.
 24  */
 25 #define CVMX_PCIE_BAR1_RC_BASE (1ull << 41)
 26 
 27 /*
 28  * pcibios_map_irq() is defined inside pci-octeon.c. All it does is
 29  * call the Octeon specific version pointed to by this variable. This
 30  * function needs to change for PCI or PCIe based hosts.
 31  */
 32 extern int (*octeon_pcibios_map_irq)(const struct pci_dev *dev,
 33                                      u8 slot, u8 pin);
 34 
 35 /*
 36  * For PCI (not PCIe) the BAR2 base address.
 37  */
 38 #define OCTEON_BAR2_PCI_ADDRESS 0x8000000000ull
 39 
 40 /*
 41  * For PCI (not PCIe) the base of the memory mapped by BAR1
 42  */
 43 extern u64 octeon_bar1_pci_phys;
 44 
 45 /*
 46  * The following defines are used when octeon_dma_bar_type =
 47  * OCTEON_DMA_BAR_TYPE_BIG
 48  */
 49 #define OCTEON_PCI_BAR1_HOLE_BITS 5
 50 #define OCTEON_PCI_BAR1_HOLE_SIZE (1ul<<(OCTEON_PCI_BAR1_HOLE_BITS+3))
 51 
 52 enum octeon_dma_bar_type {
 53         OCTEON_DMA_BAR_TYPE_INVALID,
 54         OCTEON_DMA_BAR_TYPE_SMALL,
 55         OCTEON_DMA_BAR_TYPE_BIG,
 56         OCTEON_DMA_BAR_TYPE_PCIE,
 57         OCTEON_DMA_BAR_TYPE_PCIE2
 58 };
 59 
 60 /*
 61  * This tells the DMA mapping system in dma-octeon.c how to map PCI
 62  * DMA addresses.
 63  */
 64 extern enum octeon_dma_bar_type octeon_dma_bar_type;
 65 
 66 void octeon_pci_dma_init(void);
 67 #endif
 68 

~ [ 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