• Home
  • Raw
  • Download

Lines Matching +full:ram +full:- +full:code

2  * Functions for ST-RAM allocations
4 * Copyright 1994-97 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
36 * The ST-RAM allocator allocates memory from a pool of reserved ST-RAM of
37 * configurable size, set aside on ST-RAM init.
38 * As long as this pool is not exhausted, allocation of real ST-RAM can be
42 /* set if kernel is in ST-RAM */
46 .name = "ST-RAM Pool"
74 * determine whether kernel code resides in ST-RAM in atari_stram_init()
75 * (then ST-RAM is the first memory block at virtual 0x0) in atari_stram_init()
85 /* Should never come here! (There is always ST-Ram!) */ in atari_stram_init()
86 panic("atari_stram_init: no ST-RAM found!"); in atari_stram_init()
92 * ST-RAM management, if the kernel resides in ST-RAM.
97 pr_debug("atari_stram pool: kernel in ST-RAM, using alloc_bootmem!\n"); in atari_stram_reserve_pages()
99 stram_pool.end = stram_pool.start + pool_size - 1; in atari_stram_reserve_pages()
112 * ST-RAM management, if the kernel does not reside in ST-RAM.
118 * Skip page 0, as the fhe first 2 KiB are supervisor-only! in atari_stram_map_pages()
120 pr_debug("atari_stram pool: kernel not in ST-RAM, using ioremap!\n"); in atari_stram_map_pages()
122 stram_pool.end = stram_pool.start + pool_size - 1; in atari_stram_map_pages()
125 resource_size(&stram_pool)) - stram_pool.start; in atari_stram_map_pages()
145 return (unsigned long)(virt - stram_virt_offset); in atari_stram_to_phys()
164 res->name = owner; in atari_stram_alloc()
175 return atari_stram_to_virt(res->start); in atari_stram_alloc()