cregit-Linux how code gets into the kernel

Release 4.14 arch/ia64/include/asm/pci.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_IA64_PCI_H

#define _ASM_IA64_PCI_H

#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/scatterlist.h>

#include <asm/io.h>
#include <asm/hw_irq.h>


struct pci_vector_struct {
	
__u16 segment;	/* PCI Segment number */
	
__u16 bus;	/* PCI Bus number */
	
__u32 pci_id;	/* ACPI split 16 bits device, 16 bits function (see section 6.1.1) */
	
__u8 pin;	/* PCI PIN (0 = A, 1 = B, 2 = C, 3 = D) */
	
__u32 irq;	/* IRQ assigned */
};

/*
 * Can be used to override the logic in pci_scan_bus for skipping already-configured bus
 * numbers - to be used for buggy BIOSes or architectures with incomplete PCI setup by the
 * loader.
 */

#define pcibios_assign_all_busses()     0


#define PCIBIOS_MIN_IO		0x1000

#define PCIBIOS_MIN_MEM		0x10000000

void pcibios_config_init(void);

struct pci_dev;

/*
 * PCI_DMA_BUS_IS_PHYS should be set to 1 if there is _necessarily_ a direct
 * correspondence between device bus addresses and CPU physical addresses.
 * Platforms with a hardware I/O MMU _must_ turn this off to suppress the
 * bounce buffer handling code in the block and network device layers.
 * Platforms with separate bus address spaces _must_ turn this off and provide
 * a device DMA mapping implementation that takes care of the necessary
 * address translation.
 *
 * For now, the ia64 platforms which may have separate/multiple bus address
 * spaces all have I/O MMUs which support the merging of physically
 * discontiguous buffers, so we can use that as the sole factor to determine
 * the setting of PCI_DMA_BUS_IS_PHYS.
 */
extern unsigned long ia64_max_iommu_merge_mask;

#define PCI_DMA_BUS_IS_PHYS	(ia64_max_iommu_merge_mask == ~0UL)


#define HAVE_PCI_MMAP

#define ARCH_GENERIC_PCI_MMAP_RESOURCE

#define arch_can_pci_mmap_wc()	1


#define HAVE_PCI_LEGACY
extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
				      struct vm_area_struct *vma,
				      enum pci_mmap_state mmap_state);


#define pci_get_legacy_mem platform_pci_get_legacy_mem

#define pci_legacy_read platform_pci_legacy_read

#define pci_legacy_write platform_pci_legacy_write


struct pci_controller {
	
struct acpi_device *companion;
	
void *iommu;
	
int segment;
	
int node;		/* nearest node with memory or NUMA_NO_NODE for global allocation */

	
void *platform_data;
};



#define PCI_CONTROLLER(busdev) ((struct pci_controller *) busdev->sysdata)

#define pci_domain_nr(busdev)    (PCI_CONTROLLER(busdev)->segment)

extern struct pci_ops pci_root_ops;


static inline int pci_proc_domain(struct pci_bus *bus) { return (pci_domain_nr(bus) != 0); }

Contributors

PersonTokensPropCommitsCommitProp
Matthew Wilcox22100.00%2100.00%
Total22100.00%2100.00%

#define HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) { return channel ? isa_irq_to_vector(15) : isa_irq_to_vector(14); }

Contributors

PersonTokensPropCommitsCommitProp
Bartlomiej Zolnierkiewicz2278.57%150.00%
Yanmin Zhang621.43%150.00%
Total28100.00%2100.00%

#ifdef CONFIG_INTEL_IOMMU extern void pci_iommu_alloc(void); #endif #endif /* _ASM_IA64_PCI_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)3815.45%27.41%
Jesse Barnes3112.60%13.70%
Alex Williamson2710.98%13.70%
David Howells2510.16%13.70%
Bartlomiej Zolnierkiewicz2510.16%13.70%
Matthew Wilcox249.76%414.81%
David Mosberger-Tang218.54%311.11%
Fenghua Yu114.47%13.70%
Yanmin Zhang93.66%13.70%
Patrick Gefre93.66%27.41%
David Woodhouse83.25%27.41%
Linus Torvalds41.63%13.70%
Christoph Lameter31.22%13.70%
Rafael J. Wysocki31.22%13.70%
Benjamin Herrenschmidt31.22%13.70%
Christoph Hellwig20.81%13.70%
Björn Helgaas10.41%13.70%
Suresh B. Siddha10.41%13.70%
Greg Kroah-Hartman10.41%13.70%
Total246100.00%27100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.