Loading...
Note: File does not exist in v5.9.
1/*
2 * linux/arch/arm/mach-shark/pci.c
3 *
4 * PCI bios-type initialisation for PCI machines
5 *
6 * Bits taken from various places.
7 */
8#include <linux/kernel.h>
9#include <linux/pci.h>
10#include <linux/init.h>
11#include <video/vga.h>
12
13#include <asm/irq.h>
14#include <asm/mach/pci.h>
15#include <asm/mach-types.h>
16
17static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
18{
19 if (dev->bus->number == 0)
20 if (dev->devfn == 0)
21 return 255;
22 else
23 return 11;
24 else
25 return 255;
26}
27
28extern void __init via82c505_preinit(void);
29
30static struct hw_pci shark_pci __initdata = {
31 .setup = via82c505_setup,
32 .map_irq = shark_map_irq,
33 .nr_controllers = 1,
34 .ops = &via82c505_ops,
35 .preinit = via82c505_preinit,
36};
37
38static int __init shark_pci_init(void)
39{
40 if (!machine_is_shark())
41 return;
42
43 pcibios_min_io = 0x6000;
44 pcibios_min_mem = 0x50000000;
45 vga_base = 0xe8000000;
46
47 pci_common_init(&shark_pci);
48
49 return 0;
50}
51
52subsys_initcall(shark_pci_init);