if (dev->resource[PCI_ROM_RESOURCE].start) {
                pci_write_config_dword(dev, PCI_ROM_ADDRESS,
                        dev->resource[PCI_ROM_RESOURCE].start | PCI_ROM_ADDRESS_ENABLE);
-               printk(KERN_INFO "%s: ROM enabled at 0x%08lx\n",
-                       name, dev->resource[PCI_ROM_RESOURCE].start);
+               printk(KERN_INFO "%s: ROM enabled at 0x%08lx\n", name,
+                       (unsigned long)dev->resource[PCI_ROM_RESOURCE].start);
        }
  
 -      /*
 -       * software reset -  this is required because the bios
 -       * will set UDMA timing on if the hdd supports it. The
 -       * user may want to turn udma off. A bug in the pdc20262
 -       * is that it cannot handle a downgrade in timing from
 -       * UDMA to DMA. Disk accesses after issuing a set
 -       * feature command will result in errors. A software
 -       * reset leaves the timing registers intact,
 -       * but resets the drives.
 -       */
 -#if 0
 -      if ((dev->device == PCI_DEVICE_ID_PROMISE_20267) ||
 -          (dev->device == PCI_DEVICE_ID_PROMISE_20265) ||
 -          (dev->device == PCI_DEVICE_ID_PROMISE_20263) ||
 -          (dev->device == PCI_DEVICE_ID_PROMISE_20262)) {
 -              unsigned long high_16   = pci_resource_start(dev, 4);
 -              byte udma_speed_flag    = inb(high_16 + 0x001f);
 -              outb(udma_speed_flag | 0x10, high_16 + 0x001f);
 -              mdelay(100);
 -              outb(udma_speed_flag & ~0x10, high_16 + 0x001f);
 -              mdelay(2000);   /* 2 seconds ?! */
 -      }
 -
 -#endif
        return dev->irq;
  }
  
 
  extern int release_resource(struct resource *new);
  extern __deprecated_for_modules int insert_resource(struct resource *parent, struct resource *new);
  extern int allocate_resource(struct resource *root, struct resource *new,
-                            unsigned long size,
-                            unsigned long min, unsigned long max,
-                            unsigned long align,
+                            resource_size_t size, resource_size_t min,
+                            resource_size_t max, resource_size_t align,
                             void (*alignf)(void *, struct resource *,
-                                           unsigned long, unsigned long),
+                                           resource_size_t, resource_size_t),
                             void *alignf_data);
- int adjust_resource(struct resource *res, unsigned long start,
-                   unsigned long size);
+ int adjust_resource(struct resource *res, resource_size_t start,
+                   resource_size_t size);
  
 +/* get registered SYSTEM_RAM resources in specified area */
 +extern int find_next_system_ram(struct resource *res);
 +
  /* Convenience shorthand with allocation */
  #define request_region(start,n,name)  __request_region(&ioport_resource, (start), (n), (name))
  #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name))