summaryrefslogtreecommitdiff
path: root/firmware/test/alkorr/memory.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-08 15:44:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-08 15:44:36 +0000
commit5c7d66890c5ba05402c85d47dd87f6abfd4df7d9 (patch)
tree75f964f6610b69e2f687ef8bfd6f040f9cc7e957 /firmware/test/alkorr/memory.h
parente11a1e29dff621cd1a9c1640732766ec87fc2726 (diff)
downloadrockbox-5c7d66890c5ba05402c85d47dd87f6abfd4df7d9.zip
rockbox-5c7d66890c5ba05402c85d47dd87f6abfd4df7d9.tar.gz
rockbox-5c7d66890c5ba05402c85d47dd87f6abfd4df7d9.tar.bz2
rockbox-5c7d66890c5ba05402c85d47dd87f6abfd4df7d9.tar.xz
prehistoric stuff never used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4211 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/alkorr/memory.h')
-rw-r--r--firmware/test/alkorr/memory.h113
1 files changed, 0 insertions, 113 deletions
diff --git a/firmware/test/alkorr/memory.h b/firmware/test/alkorr/memory.h
deleted file mode 100644
index 37ec4c8..0000000
--- a/firmware/test/alkorr/memory.h
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
-//////////////////////////////////////////////////////////////////////////////////
-// __________ __ ___. //
-// Open \______ \ ____ ____ | | _\_ |__ _______ ___ //
-// Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / //
-// Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < //
-// Software |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ //
-// \/ \/ \/ \/ \/ //
-//////////////////////////////////////////////////////////////////////////////////
-//
-// $Id$
-//
-/////////////////////////////////////
-// Copyright (C) 2002 by Alan Korr //
-/////////////////////////////////////
-//
-// All files in this archive are subject to the GNU General Public License.
-// See the file COPYING in the source tree root for full license agreement.
-//
-// This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
-// either express or implied.
-//
-//////////////////////////////////////////////////////////////////////////////////
-*/
-
-#ifndef __MEMORY_H__
-#define __MEMORY_H__
-
-enum
-{
- MEMORY_RETURN_SUCCESS = 1,
- MEMORY_RETURN_FAILURE = 0
-};
-
-/*
-/////////////////////////////////////////////////////////////////////
-// MEMORY PAGE //
-/////////////////
-//
-//
-*/
-
-#define MEMORY_PAGE_MINIMAL_ORDER ( 9) /* 512 bytes by default */
-#define MEMORY_PAGE_MAXIMAL_ORDER (21) /* 2 Mbytes by default */
-#define MEMORY_PAGE_MINIMAL_SIZE (1 << MEMORY_PAGE_MINIMAL_ORDER)
-#define MEMORY_PAGE_MAXIMAL_SIZE (1 << MEMORY_PAGE_MAXIMAL_ORDER)
-
-#define MEMORY_TOTAL_PAGES (MEMORY_PAGE_MAXIMAL_SIZE / MEMORY_PAGE_MINIMAL_SIZE)
-#define MEMORY_TOTAL_ORDERS (1 + MEMORY_PAGE_MAXIMAL_ORDER - MEMORY_PAGE_MINIMAL_ORDER)
-
-extern void *memory_page_allocate (int order);
-extern int memory_page_release (void *address);
-extern void memory_page_release_range (unsigned int start,unsigned int end);
-
-/*
-//
-/////////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////////
-// MEMORY CACHE //
-//////////////////
-//
-//
-*/
-
-struct memory_cache;
-
-extern struct memory_cache *memory_cache_create (unsigned int size,int align);
-extern int memory_cache_destroy (struct memory_cache *cache);
-extern void *memory_cache_allocate (struct memory_cache *cache);
-extern int memory_cache_release (struct memory_cache *cache,void *address);
-
-/*
-//
-//
-/////////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////////
-// MEMORY BLOCK //
-//////////////////
-//
-//
-*/
-
-extern void *memory_block_allocate (int order);
-extern int memory_block_release (int order,void *address);
-
-/*
-//
-//
-/////////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////////
-// MEMORY //
-////////////
-//
-//
-*/
-
-#define MEMORY_TOTAL_BYTES (MEMORY_PAGE_MAXIMAL_SIZE)
-
-extern void memory_copy (void *target,void const *source,unsigned int count);
-extern void memory_set (void *target,int byte,unsigned int count);
-
-extern void memory_setup (void);
-
-/*
-//
-//
-/////////////////////////////////////////////////////////////////////
-*/
-
-#endif