This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / mips / pci / pci-yosemite.c
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 2004 by Ralf Baechle
7  *
8  */
9 #include <linux/init.h>
10 #include <linux/kernel.h>
11 #include <linux/types.h>
12 #include <linux/pci.h>
13 #include <asm/gt64240.h>
14 #include <asm/pci_channel.h>
15
16 extern struct pci_ops titan_pci_ops;
17
18 static struct resource py_mem_resource = {
19         "Titan PCI MEM", 0xe0000000UL, 0xe3ffffffUL, IORESOURCE_MEM
20 };
21
22 static struct resource py_io_resource = {
23         "Titan IO MEM", 0x00000000UL, 0x00ffffffUL, IORESOURCE_IO,
24 };
25
26 static struct pci_controller py_controller = {
27         .pci_ops        = &titan_pci_ops,
28         .mem_resource   = &py_mem_resource,
29         .mem_offset     = 0x10000000UL,
30         .io_resource    = &py_io_resource,
31         .io_offset      = 0x00000000UL
32 };
33
34 static int __init pmc_yosemite_setup(void)
35 {
36         register_pci_controller(&py_controller);
37 }