esb2rom.c (bf61c8840efe60fd8f91446860b63338fb424158) | esb2rom.c (01d0afddf37cbb4da8581d6dc9bfa5b63bae3390) |
---|---|
1/* 2 * esb2rom.c 3 * 4 * Normal mappings of flash chips in physical memory 5 * through the Intel ESB2 Southbridge. 6 * 7 * This was derived from ichxrom.c in May 2006 by 8 * Lew Glendenning <lglendenning@lnxi.com> --- 220 unchanged lines hidden (view full) --- 229 */ 230 printk(KERN_ERR MOD_NAME ": firmware access control, I can't enable writes\n"); 231 goto out; 232 } 233 pci_write_config_byte(pdev, BIOS_CNTL, byte | BIOS_WRITE_ENABLE); 234 235 /* 236 * Try to reserve the window mem region. If this fails then | 1/* 2 * esb2rom.c 3 * 4 * Normal mappings of flash chips in physical memory 5 * through the Intel ESB2 Southbridge. 6 * 7 * This was derived from ichxrom.c in May 2006 by 8 * Lew Glendenning <lglendenning@lnxi.com> --- 220 unchanged lines hidden (view full) --- 229 */ 230 printk(KERN_ERR MOD_NAME ": firmware access control, I can't enable writes\n"); 231 goto out; 232 } 233 pci_write_config_byte(pdev, BIOS_CNTL, byte | BIOS_WRITE_ENABLE); 234 235 /* 236 * Try to reserve the window mem region. If this fails then |
237 * it is likely due to the window being "reseved" by the BIOS. | 237 * it is likely due to the window being "reserved" by the BIOS. |
238 */ 239 window->rsrc.name = MOD_NAME; 240 window->rsrc.start = window->phys; 241 window->rsrc.end = window->phys + window->size - 1; 242 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; 243 if (request_resource(&iomem_resource, &window->rsrc)) { 244 window->rsrc.parent = NULL; 245 printk(KERN_DEBUG MOD_NAME ": " --- 207 unchanged lines hidden --- | 238 */ 239 window->rsrc.name = MOD_NAME; 240 window->rsrc.start = window->phys; 241 window->rsrc.end = window->phys + window->size - 1; 242 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; 243 if (request_resource(&iomem_resource, &window->rsrc)) { 244 window->rsrc.parent = NULL; 245 printk(KERN_DEBUG MOD_NAME ": " --- 207 unchanged lines hidden --- |