mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 05:56:38 +07:00
f85f19de90
* 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: PCI: remove printks about disabled bridge windows PCI: fold pci_calc_resource_flags() into decode_bar() PCI: treat mem BAR type "11" (reserved) as 32-bit, not 64-bit, BAR PCI: correct pcie_set_readrq write size PCI: pciehp: change wait time for valid configuration access x86/PCI: Preserve existing pci=bfsort whitelist for Dell systems PCI: ARI is a PCIe v2 feature x86/PCI: quirks: Use pci_dev->revision PCI: Make the struct pci_dev * argument of pci_fixup_irqs const. PCI hotplug: cpqphp: use pci_dev->vendor PCI hotplug: cpqphp: use pci_dev->subsystem_{vendor|device} x86/PCI: config space accessor functions should not ignore the segment argument PCI: Assign values to 'pci_obff_signal_type' enumeration constants x86/PCI: reduce severity of host bridge window conflict warnings PCI: enumerate the PCI device only removed out PCI hieratchy of OS when re-scanning PCI PCI: PCIe AER: add aer_recover_queue x86/PCI: select direct access mode for mmconfig option PCI hotplug: Rename is_ejectable which also exists in dock.c
54 lines
996 B
C
54 lines
996 B
C
/*
|
|
* linux/arch/arm/mach-shark/pci.c
|
|
*
|
|
* PCI bios-type initialisation for PCI machines
|
|
*
|
|
* Bits taken from various places.
|
|
*/
|
|
#include <linux/kernel.h>
|
|
#include <linux/pci.h>
|
|
#include <linux/init.h>
|
|
#include <video/vga.h>
|
|
|
|
#include <asm/irq.h>
|
|
#include <asm/mach/pci.h>
|
|
#include <asm/mach-types.h>
|
|
|
|
static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
|
|
{
|
|
if (dev->bus->number == 0)
|
|
if (dev->devfn == 0)
|
|
return 255;
|
|
else
|
|
return 11;
|
|
else
|
|
return 255;
|
|
}
|
|
|
|
extern void __init via82c505_preinit(void);
|
|
|
|
static struct hw_pci shark_pci __initdata = {
|
|
.setup = via82c505_setup,
|
|
.swizzle = pci_std_swizzle,
|
|
.map_irq = shark_map_irq,
|
|
.nr_controllers = 1,
|
|
.scan = via82c505_scan_bus,
|
|
.preinit = via82c505_preinit,
|
|
};
|
|
|
|
static int __init shark_pci_init(void)
|
|
{
|
|
if (!machine_is_shark())
|
|
return;
|
|
|
|
pcibios_min_io = 0x6000;
|
|
pcibios_min_mem = 0x50000000;
|
|
vga_base = 0xe8000000;
|
|
|
|
pci_common_init(&shark_pci);
|
|
|
|
return 0;
|
|
}
|
|
|
|
subsys_initcall(shark_pci_init);
|