X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fau1000%2Fpatches%2F015-pci-resource.patch;h=7b0bc896b3703d8cde05b41e7549dfbd456742de;hb=0815eadff633cb2d84084a9e52da7b10fec3264f;hp=ddbb7ed8a8676d9c44b3897ecbb4e05d5eae8cdd;hpb=17c7b6c3fdc48301e50d22cc6138ede16bd1be24;p=openwrt-10.03%2F.git diff --git a/target/linux/au1000/patches/015-pci-resource.patch b/target/linux/au1000/patches/015-pci-resource.patch index ddbb7ed8a..7b0bc896b 100644 --- a/target/linux/au1000/patches/015-pci-resource.patch +++ b/target/linux/au1000/patches/015-pci-resource.patch @@ -1,14 +1,22 @@ ---- linux-2.6.22.1.orig/include/asm-mips/mach-au1x00/au1000.h 2007-07-24 18:44:21.598778839 +0200 -+++ linux-2.6.22.1/include/asm-mips/mach-au1x00/au1000.h 2007-07-24 22:08:49.761901610 +0200 -@@ -1680,9 +1680,9 @@ - #define PCI_LAST_DEVFN (19<<3) +--- a/arch/mips/au1000/common/pci.c ++++ b/arch/mips/au1000/common/pci.c +@@ -39,15 +39,15 @@ - #define IOPORT_RESOURCE_START 0x00001000 /* skip legacy probing */ --#define IOPORT_RESOURCE_END 0xffffffff -+#define IOPORT_RESOURCE_END 0xfffffffffULL - #define IOMEM_RESOURCE_START 0x10000000 --#define IOMEM_RESOURCE_END 0xffffffff -+#define IOMEM_RESOURCE_END 0xfffffffffULL + /* TBD */ + static struct resource pci_io_resource = { +- .start = PCI_IO_START, +- .end = PCI_IO_END, ++ .start = (resource_size_t)PCI_IO_START, ++ .end = (resource_size_t)PCI_IO_END, + .name = "PCI IO space", + .flags = IORESOURCE_IO + }; - /* - * Borrowed from the PPC arch: + static struct resource pci_mem_resource = { +- .start = PCI_MEM_START, +- .end = PCI_MEM_END, ++ .start = (resource_size_t)PCI_MEM_START, ++ .end = (resource_size_t)PCI_MEM_END, + .name = "PCI memory space", + .flags = IORESOURCE_MEM + };