mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
be2d877aaa
<linux/pci.h> defines struct pci_bus and struct pci_dev and includes the struct resource definition before including <asm/pci.h>. Nobody includes <asm/pci.h> directly, so they don't need their own declarations. Remove the redundant struct pci_dev, pci_bus, resource declarations. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Ingo Molnar <mingo@kernel.org> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> # CRIS Acked-by: Ralf Baechle <ralf@linux-mips.org> # MIPS
57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
/*
|
|
* linux/include/asm-xtensa/pci.h
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
*/
|
|
|
|
#ifndef _XTENSA_PCI_H
|
|
#define _XTENSA_PCI_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
/* 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
|
|
|
|
extern struct pci_controller* pcibios_alloc_controller(void);
|
|
|
|
/* Assume some values. (We should revise them, if necessary) */
|
|
|
|
#define PCIBIOS_MIN_IO 0x2000
|
|
#define PCIBIOS_MIN_MEM 0x10000000
|
|
|
|
/* Dynamic DMA mapping stuff.
|
|
* Xtensa has everything mapped statically like x86.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/scatterlist.h>
|
|
#include <linux/string.h>
|
|
#include <asm/io.h>
|
|
|
|
/* The PCI address space does equal the physical memory address space.
|
|
* The networking and block device layers use this boolean for bounce buffer
|
|
* decisions.
|
|
*/
|
|
|
|
#define PCI_DMA_BUS_IS_PHYS (1)
|
|
|
|
/* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */
|
|
#define HAVE_PCI_MMAP 1
|
|
#define arch_can_pci_mmap_io() 1
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
/* Generic PCI */
|
|
#include <asm-generic/pci.h>
|
|
|
|
#endif /* _XTENSA_PCI_H */
|