blob: f7849da72abc3ee686ddfe9c6bc3601d5a9899a0 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2006
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*****************************************************************************
37 *
38 * Filename:
39 * ---------
40 * fs_quota_entry_dump.c
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file is intends for dump med memory run-time info
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 *============================================================================
55 * HISTORY
56 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
57 *------------------------------------------------------------------------------
58 * removed!
59 *
60 * removed!
61 * removed!
62 * removed!
63 *
64 * removed!
65 * removed!
66 * removed!
67 *
68 * removed!
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 * removed!
75 * removed!
76 *------------------------------------------------------------------------------
77 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
78 *============================================================================
79 ****************************************************************************/
80
81/*****************************************************************************
82* Include
83*****************************************************************************/
84#include <string.h>
85#include <stdio.h>
86#include <stdarg.h>
87
88#ifndef MED_NOT_PRESENT
89#ifdef __inline
90 #undef __inline
91#endif /* __inline */
92
93#ifdef __GNUC__
94 #define __inline static inline
95#else
96 #define __inline static
97#endif
98
99//MSBB remove #include "kal_non_specific_general_types.h"
100#include "med_global.h"
101
102/*****************************************************************************
103* Define
104* Aim to pass compile, dummy function or gloabl variable here
105*****************************************************************************/
106kal_int32 system_boot_mode;
107/*****************************************************************************
108* Local Variable
109*****************************************************************************/
110#ifdef _STACK_LTLCOM_H
111void free_int_ilm(ilm_struct *ilm_ptr, kal_char* file_name, kal_uint32 line)
112{ return;
113}
114#endif
115
116/*****************************************************************************
117* FUNCTION
118* main
119* DESCRIPTION
120* main function.
121* PARAMETERS
122* None
123* RETURNS
124* None
125*****************************************************************************/
126int main()
127{
128 /*----------------------------------------------------------------*/
129 /* Local Variables */
130 /*----------------------------------------------------------------*/
131 FILE* outputLog;
132 int i;
133
134 /*----------------------------------------------------------------*/
135 /* Code Body */
136 /*----------------------------------------------------------------*/
137
138 outputLog = fopen("..\\..\\..\\~med_mem_info.log","w+");
139
140 fprintf(outputLog, "***********************************************************************\n");
141 fprintf(outputLog, "Med Memory Information\n");
142 fprintf(outputLog, "***********************************************************************\n");
143 fprintf(outputLog, "sizeof(aud_ext_mem_union) == %d\n", sizeof(aud_ext_mem_union));
144 fprintf(outputLog, "sizeof(med_ext_mem_union) == %d\n", sizeof(med_ext_mem_union));
145 fprintf(outputLog, "sizeof(med_int_mem_union) == %d\n", sizeof(med_int_mem_union));
146 fclose(outputLog);
147 return 0;
148}
149
150#else /* MED_NOT_PRESENT */
151int main()
152{
153 /*----------------------------------------------------------------*/
154 /* Local Variables */
155 /*----------------------------------------------------------------*/
156 FILE* outputLog;
157 int i;
158
159 /*----------------------------------------------------------------*/
160 /* Code Body */
161 /*----------------------------------------------------------------*/
162 outputLog = fopen("..\\..\\..\\~med_mem_info.log","w+");
163
164 fprintf(outputLog, "MED_NOT_PRESENT\n");
165
166 fclose(outputLog);
167 return 0;
168}
169#endif