ichxrom.c (bf61c8840efe60fd8f91446860b63338fb424158) | ichxrom.c (01d0afddf37cbb4da8581d6dc9bfa5b63bae3390) |
---|---|
1/* 2 * ichxrom.c 3 * 4 * Normal mappings of chips in physical memory 5 */ 6 7#include <linux/module.h> 8#include <linux/types.h> --- 153 unchanged lines hidden (view full) --- 162 */ 163 printk(KERN_ERR MOD_NAME ": firmware access control, I can't enable writes\n"); 164 goto out; 165 } 166 pci_write_config_word(pdev, BIOS_CNTL, word | 1); 167 168 /* 169 * Try to reserve the window mem region. If this fails then | 1/* 2 * ichxrom.c 3 * 4 * Normal mappings of chips in physical memory 5 */ 6 7#include <linux/module.h> 8#include <linux/types.h> --- 153 unchanged lines hidden (view full) --- 162 */ 163 printk(KERN_ERR MOD_NAME ": firmware access control, I can't enable writes\n"); 164 goto out; 165 } 166 pci_write_config_word(pdev, BIOS_CNTL, word | 1); 167 168 /* 169 * Try to reserve the window mem region. If this fails then |
170 * it is likely due to the window being "reseved" by the BIOS. | 170 * it is likely due to the window being "reserved" by the BIOS. |
171 */ 172 window->rsrc.name = MOD_NAME; 173 window->rsrc.start = window->phys; 174 window->rsrc.end = window->phys + window->size - 1; 175 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; 176 if (request_resource(&iomem_resource, &window->rsrc)) { 177 window->rsrc.parent = NULL; 178 printk(KERN_DEBUG MOD_NAME ": " --- 202 unchanged lines hidden --- | 171 */ 172 window->rsrc.name = MOD_NAME; 173 window->rsrc.start = window->phys; 174 window->rsrc.end = window->phys + window->size - 1; 175 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; 176 if (request_resource(&iomem_resource, &window->rsrc)) { 177 window->rsrc.parent = NULL; 178 printk(KERN_DEBUG MOD_NAME ": " --- 202 unchanged lines hidden --- |