#include <linux/config.h>#include <linux/types.h>#include <linux/kernel.h>#include <linux/mm.h>#include <linux/kdev_t.h>#include <linux/major.h>#include <linux/init.h>#include <linux/swap.h>#include <linux/malloc.h>#include <linux/vmalloc.h>#include <linux/pagemap.h>#include <linux/shm.h>#include <asm/setup.h>#include <asm/machdep.h>#include <asm/page.h>#include <asm/pgtable.h>#include <asm/atarihw.h>#include <asm/atari_stram.h>#include <asm/io.h>#include <asm/semaphore.h>Include dependency graph for stram.c:

Go to the source code of this file.
Defines | |
| #define | DPRINTK(fmt, args...) |
| #define | ALIGN_IF_SWAP(x) (x) |
| #define | SWAP_NR(addr) (((unsigned long)(addr)-swap_start) >> PAGE_SHIFT) |
| #define | SWAP_ADDR(nr) ((void *)(swap_start + ((nr)<<PAGE_SHIFT))) |
| #define | N_PAGES(n) ((n) >> PAGE_SHIFT) |
| #define | MAX_STRAM_FRACTION_NOM 1 |
| #define | MAX_STRAM_FRACTION_DENOM 3 |
| #define | BLOCK_FREE 0x01 |
| #define | BLOCK_KMALLOCED 0x02 |
| #define | BLOCK_STATIC 0x04 |
| #define | BLOCK_GFP 0x08 |
| #define | BLOCK_INSWAP 0x10 |
| #define | N_STATIC_BLOCKS 20 |
Typedefs | |
| typedef stram_block | BLOCK |
Functions | |
| static int | get_gfp_order (unsigned long size) |
| static void | reserve_region (unsigned long addr, unsigned long end) |
| static BLOCK * | add_region (void *addr, unsigned long size) |
| static BLOCK * | find_region (void *addr) |
| static int | remove_region (BLOCK *block) |
| void __init | atari_stram_init (void) |
| void __init | atari_stram_reserve_pages (unsigned long start_mem) |
| void * | atari_stram_alloc (long size, unsigned long *start_mem, const char *owner) |
| void | atari_stram_free (void *addr) |
Variables | |
| static unsigned long | rsvd_stram_beg |
| static unsigned long | rsvd_stram_end |
| static unsigned long | stram_start |
| static unsigned long | stram_end |
| static int | mem_init_done = 0 |
| static int | kernel_in_stram |
| static BLOCK * | alloc_list = NULL |
| static BLOCK | static_blocks [N_STATIC_BLOCKS] |
|
|
Definition at line 129 of file stram.c. Referenced by atari_stram_alloc(), and atari_stram_init(). |
|
|
Definition at line 169 of file stram.c. Referenced by add_region(), atari_stram_init(), and remove_region(). |
|
|
Definition at line 172 of file stram.c. Referenced by atari_stram_alloc(), and atari_stram_free(). |
|
|
Definition at line 173 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_free(), and atari_stram_reserve_pages(). |
|
|
Definition at line 170 of file stram.c. Referenced by add_region(), and remove_region(). |
|
|
Definition at line 171 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_free(), and atari_stram_reserve_pages(). |
|
|
|
Definition at line 145 of file stram.c. Referenced by atari_stram_reserve_pages(). |
|
|
Definition at line 144 of file stram.c. Referenced by atari_stram_reserve_pages(). |
|
|
Definition at line 139 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_free(), atari_stram_reserve_pages(), and get_gfp_order(). |
|
|
Definition at line 182 of file stram.c. Referenced by add_region(), and atari_stram_init(). |
|
|
|
|
|
Definition at line 133 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_free(), and atari_stram_reserve_pages(). |
|
|
|
|
||||||||||||
|
Definition at line 1305 of file stram.c. References BLOCK_FREE, BLOCK_KMALLOCED, stram_block::flags, KERN_ERR, kmalloc(), long, mem_init_done, N_STATIC_BLOCKS, stram_block::next, NULL, printk, stram_block::size, and stram_block::start. Referenced by atari_stram_alloc(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 424 of file stram.c. References add_region(), addr, ALIGN_IF_SWAP, BLOCK_GFP, BLOCK_INSWAP, BLOCK_STATIC, DPRINTK, stram_block::flags, free_pages(), get_gfp_order(), KERN_ERR, kernel_in_stram, mem_init_done, N_PAGES, NULL, stram_block::owner, printk, rsvd_stram_end, stram_end, SWAP_NR, and xffffffff. Referenced by __initfunc(), acsi_init(), atari_scsi_detect(), and slm_init(). Here is the call graph for this function: ![]() |
|
|
Definition at line 512 of file stram.c. References BLOCK_GFP, BLOCK_INSWAP, BLOCK_STATIC, DPRINTK, fail, find_region(), stram_block::flags, free_pages(), get_gfp_order(), KERN_ERR, N_PAGES, stram_block::owner, printk, remove_region(), stram_block::size, stram_block::start, and SWAP_NR. Here is the call graph for this function: ![]() |
|
|
Definition at line 257 of file stram.c. References addr, ALIGN_IF_SWAP, BLOCK_FREE, stram_block::flags, i, kernel_in_stram, long, m68k_memory, m68k_num_memory, N_STATIC_BLOCKS, panic(), phys_to_virt, rsvd_stram_beg, rsvd_stram_end, stram_end, stram_start, and x800. Referenced by __initfunc(). Here is the call graph for this function: ![]() |
|
|
Definition at line 288 of file stram.c. References BLOCK_INSWAP, BLOCK_STATIC, DPRINTK, stram_block::flags, KERN_ERR, kernel_in_stram, MACH_IS_HADES, mach_max_dma_address, MAP_NR, max_mapnr, MAX_STRAM_FRACTION_DENOM, MAX_STRAM_FRACTION_NOM, mem_init_done, mem_map, N_PAGES, stram_block::next, num_physpages, p, PAGE_SHIFT, PAGE_SIZE, printk, reserve_region(), rsvd_stram_beg, rsvd_stram_end, set_bit, stram_block::start, stram_end, stram_start, and SWAP_NR. Referenced by __initfunc(). Here is the call graph for this function: ![]() |
|
|
Definition at line 1341 of file stram.c. References stram_block::next, NULL, and stram_block::start. Referenced by atari_stram_free(). |
|
|
Definition at line 1273 of file stram.c. References N_PAGES, and PAGE_SIZE. Referenced by atari_stram_alloc(), and atari_stram_free(). |
|
|
Definition at line 1356 of file stram.c. References BLOCK_FREE, BLOCK_KMALLOCED, kfree(), and stram_block::next. Referenced by atari_stram_free(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 1289 of file stram.c. References MAP_NR, mem_map, PAGE_SIZE, and set_bit. Referenced by atari_stram_reserve_pages(). |
|
|
|
|
|
Definition at line 158 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_init(), and atari_stram_reserve_pages(). |
|
|
Definition at line 155 of file stram.c. Referenced by __initfunc(), __ioremap(), add_region(), atari_stram_alloc(), atari_stram_reserve_pages(), get_pte_slow(), irq_kmalloc(), and MMU_get_page(). |
|
|
Definition at line 148 of file stram.c. Referenced by atari_stram_init(), and atari_stram_reserve_pages(). |
|
|
Definition at line 148 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_init(), and atari_stram_reserve_pages(). |
|
|
|
|
|
Definition at line 151 of file stram.c. Referenced by atari_stram_alloc(), atari_stram_init(), and atari_stram_reserve_pages(). |
|
|
Definition at line 151 of file stram.c. Referenced by atari_stram_init(), and atari_stram_reserve_pages(). |