OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [arm/] [mach-shark/] [pci.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
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
 
12
#include <asm/irq.h>
13
#include <asm/mach/pci.h>
14
 
15
static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
16
{
17
        if (dev->bus->number == 0)
18
                if (dev->devfn == 0) return 255;
19
                else return 11;
20
        else return 6;
21
}
22
 
23
struct hw_pci shark_pci __initdata = {
24
        .init           = via82c505_init,
25
        .swizzle        = no_swizzle,
26
        .map_irq        = shark_map_irq,
27
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.