summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libmad/mad_iram.h
diff options
context:
space:
mode:
authorSean Bartell <wingedtachikoma@gmail.com>2011-06-25 21:32:25 -0400
committerNils Wallménius <nils@rockbox.org>2012-04-25 22:13:20 +0200
commitf40bfc9267b13b54e6379dfe7539447662879d24 (patch)
tree9b20069d5e62809ff434061ad730096836f916f2 /lib/rbcodec/codecs/libmad/mad_iram.h
parenta0009907de7a0107d49040d8a180f140e2eff299 (diff)
downloadrockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz
rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'lib/rbcodec/codecs/libmad/mad_iram.h')
-rw-r--r--lib/rbcodec/codecs/libmad/mad_iram.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libmad/mad_iram.h b/lib/rbcodec/codecs/libmad/mad_iram.h
new file mode 100644
index 0000000000..ac0b64cca9
--- /dev/null
+++ b/lib/rbcodec/codecs/libmad/mad_iram.h
@@ -0,0 +1,57 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2007 Dave Chapman
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/* Define how IRAM is used on the various targets. Note that this
23 file is included by both .c and .S files so must not contain any C
24 code.
25*/
26
27#ifndef _LIBMAD_IRAM_H
28#define _LIBMAD_IRAM_H
29
30#include "config.h"
31
32#if (CONFIG_PLATFORM&PLATFORM_HOSTED)
33#define ICODE_SECTION_MPA_ARM .text
34#define IBSS_SECTION_MPA_ARM .bss
35#define ICODE_ATTR_MPA_SYNTH
36#define ICONST_ATTR_MPA_HUFFMAN
37#else
38/* Code performs slower in IRAM on PP502x and there is no space in
39 mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for
40 codecs */
41#if defined(CPU_PP502x) || (CONFIG_CPU == PP5002 && defined(MPEGPLAYER))
42#define ICODE_SECTION_MPA_ARM .text
43#define ICODE_ATTR_MPA_SYNTH
44#else
45#define ICODE_SECTION_MPA_ARM .icode
46#define ICODE_ATTR_MPA_SYNTH ICODE_ATTR
47#endif
48
49#define IBSS_SECTION_MPA_ARM .ibss
50
51#ifndef ICONST_ATTR_MPA_HUFFMAN
52#define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR
53#endif
54
55#endif
56
57#endif /* MAD_IRAM_H */