ichxrom.c (b74b953b998bcc2db91b694446f3a2619ec32de6) ichxrom.c (f9a5279c70af10e967872e922b91310a91f87b05)
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>

--- 161 unchanged lines hidden (view full) ---

170 * it is likely due to the window being "reseved" 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;
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>

--- 161 unchanged lines hidden (view full) ---

170 * it is likely due to the window being "reseved" 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
179 ": %s(): Unable to register resource"
180 " 0x%.16llx-0x%.16llx - kernel bug?\n",
181 __func__,
182 (unsigned long long)window->rsrc.start,
183 (unsigned long long)window->rsrc.end);
178 printk(KERN_DEBUG MOD_NAME ": "
179 "%s(): Unable to register resource %pR - kernel bug?\n",
180 __func__, &window->rsrc);
184 }
185
186 /* Map the firmware hub into my address space. */
187 window->virt = ioremap_nocache(window->phys, window->size);
188 if (!window->virt) {
189 printk(KERN_ERR MOD_NAME ": ioremap(%08lx, %08lx) failed\n",
190 window->phys, window->size);
191 goto out;

--- 192 unchanged lines hidden ---
181 }
182
183 /* Map the firmware hub into my address space. */
184 window->virt = ioremap_nocache(window->phys, window->size);
185 if (!window->virt) {
186 printk(KERN_ERR MOD_NAME ": ioremap(%08lx, %08lx) failed\n",
187 window->phys, window->size);
188 goto out;

--- 192 unchanged lines hidden ---