blob: b2333f95f78e0671976a0961f5192c9132c3805d [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*----------------------------------------------------------------------------*
2 * Copyright Statement: *
3 * *
4 * This software/firmware and related documentation ("MediaTek Software") *
5 * are protected under international and related jurisdictions'copyright laws *
6 * as unpublished works. The information contained herein is confidential and *
7 * proprietary to MediaTek Inc. Without the prior written permission of *
8 * MediaTek Inc., any reproduction, modification, use or disclosure of *
9 * MediaTek Software, and information contained herein, in whole or in part, *
10 * shall be strictly prohibited. *
11 * MediaTek Inc. Copyright (C) 2010. All rights reserved. *
12 * *
13 * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND *
14 * AGREES TO THE FOLLOWING: *
15 * *
16 * 1)Any and all intellectual property rights (including without *
17 * limitation, patent, copyright, and trade secrets) in and to this *
18 * Software/firmware and related documentation ("MediaTek Software") shall *
19 * remain the exclusive property of MediaTek Inc. Any and all intellectual *
20 * property rights (including without limitation, patent, copyright, and *
21 * trade secrets) in and to any modifications and derivatives to MediaTek *
22 * Software, whoever made, shall also remain the exclusive property of *
23 * MediaTek Inc. Nothing herein shall be construed as any transfer of any *
24 * title to any intellectual property right in MediaTek Software to Receiver. *
25 * *
26 * 2)This MediaTek Software Receiver received from MediaTek Inc. and/or its *
27 * representatives is provided to Receiver on an "AS IS" basis only. *
28 * MediaTek Inc. expressly disclaims all warranties, expressed or implied, *
29 * including but not limited to any implied warranties of merchantability, *
30 * non-infringement and fitness for a particular purpose and any warranties *
31 * arising out of course of performance, course of dealing or usage of trade. *
32 * MediaTek Inc. does not provide any warranty whatsoever with respect to the *
33 * software of any third party which may be used by, incorporated in, or *
34 * supplied with the MediaTek Software, and Receiver agrees to look only to *
35 * such third parties for any warranty claim relating thereto. Receiver *
36 * expressly acknowledges that it is Receiver's sole responsibility to obtain *
37 * from any third party all proper licenses contained in or delivered with *
38 * MediaTek Software. MediaTek is not responsible for any MediaTek Software *
39 * releases made to Receiver's specifications or to conform to a particular *
40 * standard or open forum. *
41 * *
42 * 3)Receiver further acknowledge that Receiver may, either presently *
43 * and/or in the future, instruct MediaTek Inc. to assist it in the *
44 * development and the implementation, in accordance with Receiver's designs, *
45 * of certain softwares relating to Receiver's product(s) (the "Services"). *
46 * Except as may be otherwise agreed to in writing, no warranties of any *
47 * kind, whether express or implied, are given by MediaTek Inc. with respect *
48 * to the Services provided, and the Services are provided on an "AS IS" *
49 * basis. Receiver further acknowledges that the Services may contain errors *
50 * that testing is important and it is solely responsible for fully testing *
51 * the Services and/or derivatives thereof before they are used, sublicensed *
52 * or distributed. Should there be any third party action brought against *
53 * MediaTek Inc. arising out of or relating to the Services, Receiver agree *
54 * to fully indemnify and hold MediaTek Inc. harmless. If the parties *
55 * mutually agree to enter into or continue a business relationship or other *
56 * arrangement, the terms and conditions set forth herein shall remain *
57 * effective and, unless explicitly stated otherwise, shall prevail in the *
58 * event of a conflict in the terms in any agreements entered into between *
59 * the parties. *
60 * *
61 * 4)Receiver's sole and exclusive remedy and MediaTek Inc.'s entire and *
62 * cumulative liability with respect to MediaTek Software released hereunder *
63 * will be, at MediaTek Inc.'s sole discretion, to replace or revise the *
64 * MediaTek Software at issue. *
65 * *
66 * 5)The transaction contemplated hereunder shall be construed in *
67 * accordance with the laws of Singapore, excluding its conflict of laws *
68 * principles. Any disputes, controversies or claims arising thereof and *
69 * related thereto shall be settled via arbitration in Singapore, under the *
70 * then current rules of the International Chamber of Commerce (ICC). The *
71 * arbitration shall be conducted in English. The awards of the arbitration *
72 * shall be final and binding upon both parties and shall be entered and *
73 * enforceable in any court of competent jurisdiction. *
74 *---------------------------------------------------------------------------*/
75/*-----------------------------------------------------------------------------
76 *
77 * Description:
78 *
79 *---------------------------------------------------------------------------*/
80
81#pragma once
82#if ARCH_ARM64
83#define MEM_TEST_START 0xfffffff042110000
84#else
85#define MEM_TEST_START 0x42110000
86#endif
87#define MEM_TEST_SIZE 0x2000
88
89/**************************************************************************
90* EXPOSED API
91**************************************************************************/
92void mt_mem_init(void);
93size_t mt_mem_size(void);
94