diff options
author | Alan Korr <alkorr@rockbox.org> | 2002-04-21 12:21:14 +0000 |
---|---|---|
committer | Alan Korr <alkorr@rockbox.org> | 2002-04-21 12:21:14 +0000 |
commit | b7cf0602fd08f6a367d42f0b6adadb8322b3d35d (patch) | |
tree | abbfb87b615f4c01a5f56eedacd75acbd2e52b87 /firmware/test/memory/functions.h | |
parent | 257d17da6d64d2e265df3c80192a01f47e1dd2b7 (diff) | |
download | rockbox-b7cf0602fd08f6a367d42f0b6adadb8322b3d35d.tar.gz rockbox-b7cf0602fd08f6a367d42f0b6adadb8322b3d35d.zip |
removing all that stuff permanently.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@159 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/memory/functions.h')
-rw-r--r-- | firmware/test/memory/functions.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/firmware/test/memory/functions.h b/firmware/test/memory/functions.h deleted file mode 100644 index c856a934cf..0000000000 --- a/firmware/test/memory/functions.h +++ /dev/null | |||
@@ -1,94 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Alan Korr | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef __LIBRARY_MEMORY_H__ | ||
20 | # error "This header file must be included ONLY from memory.h." | ||
21 | #endif | ||
22 | # ifndef __LIBRARY_MEMORY_FUNCTIONS_H__ | ||
23 | # define __LIBRARY_MEMORY_FUNCTIONS_H__ | ||
24 | |||
25 | ///////////////////////////////////////////////////////////////////// | ||
26 | // MEMORY : | ||
27 | /////////// | ||
28 | |||
29 | extern void memory_copy (void *target,void const *source,unsigned int count); | ||
30 | extern void memory_set (void *target,int byte,unsigned int count); | ||
31 | |||
32 | ///////////////////////////////////////////////////////////////////// | ||
33 | // MEMORY PAGE : | ||
34 | //////////////// | ||
35 | // | ||
36 | // - memory_allocate_page : allocate a page | ||
37 | // - memory_release_page : release a page | ||
38 | // | ||
39 | |||
40 | extern int memory_release_page (void *address); | ||
41 | extern void *memory_allocate_page (int order); | ||
42 | extern void memory_setup (void); | ||
43 | |||
44 | // | ||
45 | ///////////////////////////////////////////////////////////////////// | ||
46 | |||
47 | ///////////////////////////////////////////////////////////////////// | ||
48 | // MEMORY SLAB : | ||
49 | //////////////// | ||
50 | // | ||
51 | // - memory_grow_cache : allocate a new slab for a cache | ||
52 | // - memory_shrink_cache : release free slabs from a cache | ||
53 | // - memory_create_cache : create a new cache of size-fixed blocks | ||
54 | // - memory_destroy_cache : destroy the cache and release all the slabs | ||
55 | // - memory_cache_allocate : allocate a block from the cache | ||
56 | // - memory_cache_release : release a block in the cache | ||
57 | // | ||
58 | |||
59 | extern struct memory_slab *memory_grow_cache (struct memory_cache *cache); | ||
60 | extern int memory_shrink_cache (struct memory_cache *cache,int all); | ||
61 | extern struct memory_cache *memory_create_cache (unsigned int size,int align,int flags); | ||
62 | extern int memory_destroy_cache (struct memory_cache *cache); | ||
63 | extern void *memory_cache_allocate (struct memory_cache *cache); | ||
64 | extern int memory_cache_release (struct memory_cache *cache,void *address); | ||
65 | |||
66 | // | ||
67 | ///////////////////////////////////////////////////////////////////// | ||
68 | |||
69 | /////////////////////////////////////////////////////////////////////////////// | ||
70 | // MEMORY BLOCK : | ||
71 | ///////////////// | ||
72 | // | ||
73 | // - memory_allocate_small_block : allocate a small block (no page) | ||
74 | // - memory_release_small_block : release a small block (no page) | ||
75 | // - memory_allocate_block : allocate a block (or a page) | ||
76 | // - memory_release_block : release a block (or a page) | ||
77 | // | ||
78 | |||
79 | extern void *memory_allocate_small_block (int order); | ||
80 | extern int memory_release_small_block (int order,void *address); | ||
81 | extern void *memory_allocate_block (unsigned int size); | ||
82 | extern int memory_release_block (void *address); | ||
83 | |||
84 | // | ||
85 | ///////////////////////////////////////////////////////////////////// | ||
86 | |||
87 | |||
88 | |||
89 | # ifdef TEST | ||
90 | void memory_spy_page (void *address); | ||
91 | void memory_dump (int order); | ||
92 | void memory_check (int order); | ||
93 | # endif | ||
94 | #endif | ||