amd76xrom.c (bf61c8840efe60fd8f91446860b63338fb424158) | amd76xrom.c (01d0afddf37cbb4da8581d6dc9bfa5b63bae3390) |
---|---|
1/* 2 * amd76xrom.c 3 * 4 * Normal mappings of chips in physical memory 5 */ 6 7#include <linux/module.h> 8#include <linux/types.h> --- 124 unchanged lines hidden (view full) --- 133 else { 134 window->phys = 0xffff0000; /* 64KiB */ 135 } 136 window->size = 0xffffffffUL - window->phys + 1UL; 137 138 /* 139 * Try to reserve the window mem region. If this fails then 140 * it is likely due to a fragment of the window being | 1/* 2 * amd76xrom.c 3 * 4 * Normal mappings of chips in physical memory 5 */ 6 7#include <linux/module.h> 8#include <linux/types.h> --- 124 unchanged lines hidden (view full) --- 133 else { 134 window->phys = 0xffff0000; /* 64KiB */ 135 } 136 window->size = 0xffffffffUL - window->phys + 1UL; 137 138 /* 139 * Try to reserve the window mem region. If this fails then 140 * it is likely due to a fragment of the window being |
141 * "reseved" by the BIOS. In the case that the | 141 * "reserved" by the BIOS. In the case that the |
142 * request_mem_region() fails then once the rom size is 143 * discovered we will try to reserve the unreserved fragment. 144 */ 145 window->rsrc.name = MOD_NAME; 146 window->rsrc.start = window->phys; 147 window->rsrc.end = window->phys + window->size - 1; 148 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; 149 if (request_resource(&iomem_resource, &window->rsrc)) { --- 200 unchanged lines hidden --- | 142 * request_mem_region() fails then once the rom size is 143 * discovered we will try to reserve the unreserved fragment. 144 */ 145 window->rsrc.name = MOD_NAME; 146 window->rsrc.start = window->phys; 147 window->rsrc.end = window->phys + window->size - 1; 148 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; 149 if (request_resource(&iomem_resource, &window->rsrc)) { --- 200 unchanged lines hidden --- |