468bdd4e8fdd1188588b1184815431022e820dc0
[processor-sdk/audio-preprocessing.git] / file_demo_bios / am572x / components / mhm / src / mhmport.h
1 /******************************************************************************\r
2 * FILE PURPOSE: Target specific definitions.\r
3 ******************************************************************************\r
4 * FILE NAME: MHMPORT.H\r
5 *\r
6 * DESCRIPTION: Contains definitions that are specific to different targets.\r
7 *\r
8 * (C) Copyright 1997, TELOGY Networks, Inc.\r
9 *****************************************************************************/\r
10 \r
11 #ifdef ti_targets_C54\r
12 #define _MHMPORT_C54 1\r
13 #else\r
14 #define _MHMPORT_C54 0\r
15 #endif\r
16 \r
17 #ifdef ti_targets_C54_far\r
18 #define _MHMPORT_C54F 1\r
19 #else\r
20 #define _MHMPORT_C54F 0\r
21 #endif\r
22 \r
23 #ifdef ti_targets_C55\r
24 #define _MHMPORT_C55 1\r
25 #else\r
26 #define _MHMPORT_C55 0\r
27 #endif\r
28 \r
29 #ifdef ti_targets_C55_large\r
30 #define _MHMPORT_C55L 1\r
31 #else\r
32 #define _MHMPORT_C55L 0\r
33 #endif\r
34 \r
35 #ifdef ti_targets_C64\r
36 #define _MHMPORT_C64 1\r
37 #else\r
38 #define _MHMPORT_C64 0\r
39 #endif\r
40 \r
41 #ifdef ti_targets_C64_big_endian\r
42 #define _MHMPORT_C64_BIG_ENDIAN 1\r
43 #else\r
44 #define _MHMPORT_C64_BIG_ENDIAN 0\r
45 #endif\r
46 \r
47 #ifdef ti_targets_C64P\r
48 #define _MHMPORT_C64P 1\r
49 #else\r
50 #define _MHMPORT_C64P 0\r
51 #endif\r
52 \r
53 #ifdef ti_targets_elf_C64P \r
54 #define _MHMPORT_ELF_C64P 1\r
55 #else\r
56 #define _MHMPORT_ELF_C64P 0\r
57 #endif\r
58 \r
59 #ifdef ti_targets_C64P_big_endian\r
60 #define _MHMPORT_C64P_BIG_ENDIAN 1\r
61 #else\r
62 #define _MHMPORT_C64P_BIG_ENDIAN 0\r
63 #endif\r
64 \r
65 #ifdef ti_targets_elf_C64P_big_endian\r
66 #define _MHMPORT_ELF_C64P_BIG_ENDIAN 1\r
67 #else\r
68 #define _MHMPORT_ELF_C64P_BIG_ENDIAN 0\r
69 #endif\r
70 \r
71 #ifdef ti_targets_C66\r
72 #define _MHMPORT_C66 1\r
73 #else\r
74 #define _MHMPORT_C66 0\r
75 #endif\r
76 \r
77 #ifdef ti_targets_elf_C66\r
78 #define _MHMPORT_ELF_C66 1\r
79 #else\r
80 #define _MHMPORT_ELF_C66 0\r
81 #endif\r
82 \r
83 #ifdef ti_targets_C66_big_endian\r
84 #define _MHMPORT_C66_BIG_ENDIAN 1\r
85 #else\r
86 #define _MHMPORT_C66_BIG_ENDIAN 0\r
87 #endif\r
88 \r
89 #ifdef ti_targets_elf_C66_big_endian\r
90 #define _MHMPORT_ELF_C66_BIG_ENDIAN 1\r
91 #else\r
92 #define _MHMPORT_ELF_C66_BIG_ENDIAN 0\r
93 #endif\r
94 \r
95 #ifdef ti_targets_C674\r
96 #define _MHMPORT_C674 1\r
97 #else\r
98 #define _MHMPORT_C674 0\r
99 #endif\r
100 \r
101 #ifdef ti_targets_C674_big_endian\r
102 #define _MHMPORT_C674_BIG_ENDIAN 1\r
103 #else\r
104 #define _MHMPORT_C674_BIG_ENDIAN 0\r
105 #endif\r
106 \r
107 #ifdef gnu_targets_arm_GCArmv7A\r
108 #define _MHMPORT_ARM_GCARMV7A 1\r
109 #else\r
110 #define _MHMPORT_ARM_GCARMV7A 0\r
111 #endif\r
112 \r
113 #if (_MHMPORT_C54 || _MHMPORT_C54F)\r
114 #include <ti/mas/mhm/src/c54/mhmport.h>\r
115 #elif (_MHMPORT_C55 || _MHMPORT_C55L)\r
116 #include <ti/mas/mhm/src/c55/mhmport.h>\r
117 #elif _MHMPORT_ARM_GCARMV7A\r
118 #include <ti/mas/mhm/src/arm/mhmport.h>\r
119 #elif (_MHMPORT_C64 || _MHMPORT_C64_BIG_ENDIAN || \\r
120 _MHMPORT_C64P || _MHMPORT_C64P_BIG_ENDIAN || \\r
121 _MHMPORT_ELF_C64P || _MHMPORT_ELF_C64P_BIG_ENDIAN || \\r
122 _MHMPORT_C66 || _MHMPORT_C66_BIG_ENDIAN || \\r
123 _MHMPORT_ELF_C66 || _MHMPORT_ELF_C66_BIG_ENDIAN || \\r
124 _MHMPORT_C674 || _MHMPORT_C674_BIG_ENDIAN)\r
125 #include <ti/mas/mhm/src/c64/mhmport.h>\r
126 #else\r
127 #error invalid target\r
128 #endif\r
129 \r
130 #define MHM_ALIGN_BITS TYP_STRUCT_LOG2ALIGN\r
131 #define MHM_ALIGN_MASK (~((~0U)<<MHM_ALIGN_BITS)) \r
132 \r
133 /* Align gap is the maximum number of words that may be used to fill a gap\r
134 * to the next memory block due to alignment requirements. */\r
135 #define MHM_MAX_ALIGNGAP MHM_ALIGN_MASK\r
136 \r
137 /* The maximum value of a buffer size and the maximum buffer size. They are\r
138 * not the same due to alignment gap. */\r
139 #define MHM_MAX_SIZEVAL (~0U)\r
140 #define MHM_MAX_SIZE (MHM_MAX_SIZEVAL - MHM_MAX_ALIGNGAP)\r
141 \r
142 /* Nothing past this point */\r