resource: arm arch updates for u64 resource
PATCH 4/5 resource: arm arch updates for u64 resource
ARM arch changes for converting resources to u64 from unsigned long.
Signed-off-by Dave Jiang <[email protected]>
arch/arm/kernel/bios32.c +3 -3
@@ -304,7 +304,7 @@static void __devinit pdev_fixup_device_resources (struct pci_sys_data *root,struct pci_dev *dev) { -unsigned long offset; +u64 offset;int i;for (i =0 ; i <PCI_NUM_RESOURCES ; i++) {
@@ -619,9 +619,9 @@* which might be mirrored at 0x0100-0x03ff.. */ void pcibios_align_resource (void *data,struct resource *res, -unsigned long size,unsigned long align) +u64 size,u64 align) { -unsigned long start = res->start; +u64 start = res->start;if (res->flags &IORESOURCE_IO && start &0x300 ) start = (start +0x3ff ) & ~0x3ff ;
arch/arm/kernel/setup.c +35 -6
53 lines not on this page · raw message
include/asm-arm/mach/pci.h +1 -1
@@ -28,7 +28,7 @@struct pci_sys_data {struct list_head node;int busnr;/* primary bus number */ -unsigned long mem_offset;/* bus->cpu memory mapping offset */ +u64 mem_offset;/* bus->cpu memory mapping offset */ unsigned long io_offset;/* bus->cpu IO mapping offset */ struct pci_bus *bus;/* PCI bus */ struct resource *resource[3 ];/* Primary PCI bus resources */