initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / mips / pci / pci-yosemite.c
blobc1151f43c9af7e8e0cbdea147adbef592918d79c
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.
6 * Copyright (C) 2004 by Ralf Baechle
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>
16 extern struct pci_ops titan_pci_ops;
18 static struct resource py_mem_resource = {
19 "Titan PCI MEM", 0xe0000000UL, 0xe3ffffffUL, IORESOURCE_MEM
22 static struct resource py_io_resource = {
23 "Titan IO MEM", 0x00000000UL, 0x00ffffffUL, IORESOURCE_IO,
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
34 static int __init pmc_yosemite_setup(void)
36 register_pci_controller(&py_controller);