10 #include <linux/types.h>
11 #include <linux/kernel.h>
15 #include <linux/slab.h>
16 #include <linux/string.h>
17 #include <linux/module.h>
19 #include <asm/atomic.h>
26 static struct resource chipram_res = {
79 pr_debug(
"amiga_chip_alloc_res: allocate %lu bytes\n", size);
83 pr_err(
"amiga_chip_alloc_res: allocate_resource() failed %d!\n",
89 pr_debug(
"amiga_chip_alloc_res: returning %pR\n", res);
101 pr_err(
"amiga_chip_free: trying to free nonexistent region at "
106 size = resource_size(res);
107 pr_debug(
"amiga_chip_free: free %lu bytes at %p\n", size, ptr);
119 pr_debug(
"amiga_chip_avail : %lu bytes\n", n);