1 /*-----------------------------------------------------------------\r
2 * Filename: arm\nrbufst.h\r
3 * \r
4 * Description: Definitions for NR buffers for Cortex-A8 targets.\r
5 * \r
6 * Copyright (c) 2007 \96 2013 Texas Instruments Incorporated
7 *
8 * All rights reserved not granted herein.
9 *
10 * Limited License.
11 *
12 * Texas Instruments Incorporated grants a world-wide, royalty-free,
13 * non-exclusive license under copyrights and patents it now or hereafter owns
14 * or controls to make, have made, use, import, offer to sell and sell
15 * ("Utilize") this software subject to the terms herein. With respect to the
16 * foregoing patent license, such license is granted solely to the extent that
17 * any such patent is necessary to Utilize the software alone. The patent
18 * license shall not apply to any combinations which include this software,
19 * other than combinations with devices manufactured by or for TI (\93TI
20 * Devices\94). No hardware patent is licensed hereunder.
21 *
22 * Redistributions must preserve existing copyright notices and reproduce this
23 * license (including the above copyright notice and the disclaimer and (if
24 * applicable) source code license limitations below) in the documentation
25 * and/or other materials provided with the distribution
26 *
27 * Redistribution and use in binary form, without modification, are permitted
28 * provided that the following conditions are met:
29 *
30 * * No reverse engineering, decompilation, or disassembly of this software
31 * is permitted with respect to any software provided in binary form.
32 *
33 * * any redistribution and use are licensed by TI for use only with TI
34 * Devices.
35 *
36 * * Nothing shall obligate TI to provide you with source code for the
37 * software licensed and provided to you in object code.
38 *
39 * If software source code is provided to you, modification and redistribution
40 * of the source code are permitted provided that the following conditions are
41 * met:
42 *
43 * * any redistribution and use of the source code, including any resulting
44 * derivative works, are licensed by TI for use only with TI Devices.
45 *
46 * * any redistribution and use of any object code compiled from the source
47 * code and any resulting derivative works, are licensed by TI for use only
48 * with TI Devices.
49 *
50 * Neither the name of Texas Instruments Incorporated nor the names of its
51 * suppliers may be used to endorse or promote products derived from this
52 * software without specific prior written permission.
53 *
54 * DISCLAIMER.
55 *
56 * THIS SOFTWARE IS PROVIDED BY TI AND TI\92S LICENSORS "AS IS" AND ANY EXPRESS
57 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
58 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
59 * DISCLAIMED. IN NO EVENT SHALL TI AND TI\92S LICENSORS BE LIABLE FOR ANY
60 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
61 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
62 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
63 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
64 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
65 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
66 * DAMAGE. \r
67 *-----------------------------------------------------------------*/\r
68 \r
69 #ifndef _NRBUFSTCORTEXA8_H\r
70 #define _NRBUFSTCORTEXA8_H\r
71 \r
72 /* Buffer sizes for NR - returned by nrGetSizes().\r
73 Buffer size is in unit of tword. For Cortex-A8 , tword is 8-bit. */\r
74 #define NR_SIM_BUF0_SIZE 88\r
75 #define NR_SIM_BUF1_SIZE 1548\r
76 #define NR_SIM_BUF2_SIZE 1032\r
77 #define NR_SIM_BUF3_SIZE 774\r
78 #define NR_SIM_BUF4_SIZE 384\r
79 #define NR_SIM_BUF5_SIZE 1032\r
80 #define NR_SIM_BUF6_SIZE 28\r
81 \r
82 /* Buffer alignment for NR - returned by nrGetSizes().\r
83 Buffers must be aligned on boundary of 2^(NR_SIM_BUFx_ALGN_LOG2) twords. \r
84 Also used to define macros used by #pragma DATA_ALIGN in nrbufs.c.\r
85 The pragma DATA_ALIGN (symbol, constant) aligns the symbol to an alignment \r
86 boundary. For Cortex-A8, the boundary is the value of the constant in bytes. \r
87 For example, a constant of 4 specifies a 4-byte or 32-bit alignment. */ \r
88 #define NR_SIM_BUF0_ALGN_LOG2 3\r
89 #define NR_SIM_BUF1_ALGN_LOG2 5\r
90 #define NR_SIM_BUF2_ALGN_LOG2 5\r
91 #define NR_SIM_BUF3_ALGN_LOG2 2\r
92 #define NR_SIM_BUF4_ALGN_LOG2 2\r
93 #define NR_SIM_BUF5_ALGN_LOG2 2\r
94 #define NR_SIM_BUF6_ALGN_LOG2 3\r
95 \r
96 \r
97 #endif /* _NRBUFSTCORTEXA8_H */\r
98 \r
99 /* nothing past this point */\r