This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / mips / pci / pci-sb1250.c
index b32343e..8c7c385 100644 (file)
@@ -1,6 +1,5 @@
 /*
  * Copyright (C) 2001,2002,2003 Broadcom Corporation
- * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -37,9 +36,9 @@
 #include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/console.h>
-#include <linux/tty.h>
 
 #include <asm/io.h>
+#include <asm/pci_channel.h>
 
 #include <asm/sibyte/sb1250_defs.h>
 #include <asm/sibyte/sb1250_regs.h>
@@ -90,12 +89,6 @@ int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
        return dev->irq;
 }
 
-/* Do platform specific device initialization at pci_enable_device() time */
-int pcibios_plat_dev_init(struct pci_dev *dev)
-{
-       return 0;
-}
-
 /*
  * Some checks before doing config cycles:
  * In PCI Device Mode, hide everything on bus 0 except the LDT host
@@ -188,22 +181,22 @@ struct pci_ops sb1250_pci_ops = {
 
 static struct resource sb1250_mem_resource = {
        .name   = "SB1250 PCI MEM",
-       .start  = 0x40000000UL,
-       .end    = 0x5fffffffUL,
+       .start  = 0x14000000UL,
+       .end    = 0x17ffffffUL,
        .flags  = IORESOURCE_MEM,
 };
                                                                                 
 static struct resource sb1250_io_resource = {
-       .name   = "SB1250 PCI I/O",
-       .start  = 0x00000000UL,
-       .end    = 0x01ffffffUL,
+       .name   = "SB1250 IO MEM",
+       .start  = 0x14000000UL,
+       .end    = 0x17ffffffUL,
        .flags  = IORESOURCE_IO,
 };
 
 struct pci_controller sb1250_controller = {
        .pci_ops        = &sb1250_pci_ops,
        .mem_resource   = &sb1250_mem_resource,
-       .io_resource    = &sb1250_io_resource,
+       .io_resource    = &sb1250_io_resource
 };
 
 static int __init sb1250_pcibios_init(void)
@@ -215,8 +208,8 @@ static int __init sb1250_pcibios_init(void)
        /* CFE will assign PCI resources */
        pci_probe_only = 1;
 
-       /* Set I/O resource limits.  */
-       ioport_resource.end = 0x01ffffff;       /* 32MB accessible by sb1250 */
+       /* set resource limit to avoid errors */
+       ioport_resource.end = 0x0000ffff;       /* 32MB reserved by sb1250 */
        iomem_resource.end = 0xffffffff;        /* no HT support yet */
 
        cfg_space =