diff options
Diffstat (limited to 'firmware/test/memory/memory-slab.h')
-rw-r--r-- | firmware/test/memory/memory-slab.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/firmware/test/memory/memory-slab.h b/firmware/test/memory/memory-slab.h deleted file mode 100644 index f58897c3ec..0000000000 --- a/firmware/test/memory/memory-slab.h +++ /dev/null | |||
@@ -1,62 +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_SLAB_H__ | ||
20 | #define __LIBRARY_MEMORY_SLAB_H__ | ||
21 | |||
22 | struct memory_free_block | ||
23 | { | ||
24 | struct memory_free_block | ||
25 | *link; | ||
26 | }; | ||
27 | |||
28 | struct memory_slab | ||
29 | { | ||
30 | struct memory_slab | ||
31 | *less,*more; | ||
32 | unsigned int // left == number of free blocks left | ||
33 | left; | ||
34 | struct memory_free_block | ||
35 | *free; | ||
36 | }; | ||
37 | |||
38 | struct memory_cache | ||
39 | { | ||
40 | struct memory_cache | ||
41 | *less,*more,*same; | ||
42 | unsigned int | ||
43 | left; // number of free slabs | ||
44 | struct memory_slab | ||
45 | *used; | ||
46 | struct memory_slab | ||
47 | *free; | ||
48 | struct memory_slab | ||
49 | *reap; | ||
50 | unsigned int | ||
51 | size,original_size; | ||
52 | unsigned int | ||
53 | page_size; | ||
54 | unsigned int | ||
55 | blocks_per_slab; | ||
56 | int | ||
57 | page_order; | ||
58 | unsigned int | ||
59 | flags; | ||
60 | }; | ||
61 | |||
62 | #endif | ||