add rk3288 pinctrl dts code
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / combo_mt66xx / mt6620 / wlan / common / dump.c
1 /*
2 ** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/common/dump.c#1 $
3 */
4
5 /*! \file   "dump.c"
6     \brief  Provide memory dump function for debugging.
7
8     Provide memory dump function for debugging.
9 */
10
11
12
13 /*
14 ** $Log: dump.c $
15  *
16  * 11 24 2011 wh.su
17  * [WCXRP00001078] [MT6620 Wi-Fi][Driver] Adding the mediatek log improment support : XLOG
18  * Adjust code for DBG and CONFIG_XLOG.
19  *
20  * 11 10 2011 wh.su
21  * [WCXRP00001078] [MT6620 Wi-Fi][Driver] Adding the mediatek log improment support : XLOG
22  * Using the new XLOG define for dum Memory.
23  *
24  * 11 03 2011 wh.su
25  * [WCXRP00001078] [MT6620 Wi-Fi][Driver] Adding the mediatek log improment support : XLOG
26  * Add dumpMemory8 at XLOG support.
27  *
28  * 07 08 2010 cp.wu
29  * 
30  * [WPD00003833] [MT6620 and MT5931] Driver migration - move to new repository.
31  *
32  * 06 06 2010 kevin.huang
33  * [WPD00003832][MT6620 5931] Create driver base 
34  * [MT6620 5931] Create driver base
35 **  \main\maintrunk.MT6620WiFiDriver_Prj\2 2009-03-10 19:58:51 GMT mtk01426
36 **  Init develop
37 **
38 */
39
40 /*******************************************************************************
41 *                         C O M P I L E R   F L A G S
42 ********************************************************************************
43 */
44
45 /*******************************************************************************
46 *                    E X T E R N A L   R E F E R E N C E S
47 ********************************************************************************
48 */
49 #include "precomp.h"
50
51 /*******************************************************************************
52 *                              C O N S T A N T S
53 ********************************************************************************
54 */
55
56 /*******************************************************************************
57 *                             D A T A   T Y P E S
58 ********************************************************************************
59 */
60
61 /*******************************************************************************
62 *                            P U B L I C   D A T A
63 ********************************************************************************
64 */
65
66 /*******************************************************************************
67 *                           P R I V A T E   D A T A
68 ********************************************************************************
69 */
70
71 /*******************************************************************************
72 *                                 M A C R O S
73 ********************************************************************************
74 */
75
76 /*******************************************************************************
77 *                   F U N C T I O N   D E C L A R A T I O N S
78 ********************************************************************************
79 */
80
81 /*******************************************************************************
82 *                              F U N C T I O N S
83 ********************************************************************************
84 */
85 #if DBG
86 /*----------------------------------------------------------------------------*/
87 /*!
88 * \brief This routine is called to dump a segment of memory in bytes.
89 *
90 * \param[in] pucStartAddr   Pointer to the starting address of the memory to be dumped.
91 * \param[in] u4Length       Length of the memory to be dumped.
92 *
93 * \return (none)
94 */
95 /*----------------------------------------------------------------------------*/
96 VOID
97 dumpMemory8 (
98     IN PUINT_8  pucStartAddr,
99     IN UINT_32  u4Length
100     )
101 {
102     ASSERT(pucStartAddr);
103
104     LOG_FUNC("DUMP8 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pucStartAddr, u4Length);
105
106     while (u4Length > 0) {
107         if (u4Length >= 16) {
108             LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x %02x %02x %02x\n",
109                 (UINT_32)pucStartAddr,
110                 pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
111                 pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
112                 pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
113                 pucStartAddr[12], pucStartAddr[13], pucStartAddr[14], pucStartAddr[15]);
114             u4Length -= 16;
115             pucStartAddr += 16;
116         }
117         else {
118             switch (u4Length) {
119             case 1:
120                 LOG_FUNC("(%08lx) %02x\n",
121                     (UINT_32)pucStartAddr,
122                     pucStartAddr[ 0]);
123                 break;
124             case 2:
125                 LOG_FUNC("(%08lx) %02x %02x\n",
126                     (UINT_32)pucStartAddr,
127                     pucStartAddr[ 0], pucStartAddr[ 1]);
128                 break;
129             case 3:
130                 LOG_FUNC("(%08lx) %02x %02x %02x\n",
131                     (UINT_32)pucStartAddr,
132                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2]);
133                 break;
134             case 4:
135                 LOG_FUNC("(%08lx) %02x %02x %02x %02x\n",
136                     (UINT_32)pucStartAddr,
137                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3]);
138                 break;
139             case 5:
140                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x\n",
141                     (UINT_32)pucStartAddr,
142                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
143                     pucStartAddr[ 4]);
144                 break;
145             case 6:
146                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x\n",
147                     (UINT_32)pucStartAddr,
148                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
149                     pucStartAddr[ 4], pucStartAddr[ 5]);
150                 break;
151             case 7:
152                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x\n",
153                     (UINT_32)pucStartAddr,
154                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
155                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6]);
156                 break;
157             case 8:
158                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x\n",
159                     (UINT_32)pucStartAddr,
160                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
161                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7]);
162                 break;
163             case 9:
164                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x\n",
165                     (UINT_32)pucStartAddr,
166                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
167                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
168                     pucStartAddr[ 8]);
169                 break;
170             case 10:
171                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x\n",
172                     (UINT_32)pucStartAddr,
173                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
174                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
175                     pucStartAddr[ 8], pucStartAddr[ 9]);
176                 break;
177             case 11:
178                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x\n",
179                     (UINT_32)pucStartAddr,
180                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
181                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
182                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10]);
183                 break;
184             case 12:
185                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x\n",
186                     (UINT_32)pucStartAddr,
187                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
188                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
189                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11]);
190                 break;
191             case 13:
192                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x\n",
193                     (UINT_32)pucStartAddr,
194                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
195                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
196                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
197                     pucStartAddr[12]);
198                 break;
199             case 14:
200                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x %02x\n",
201                     (UINT_32)pucStartAddr,
202                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
203                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
204                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
205                     pucStartAddr[12], pucStartAddr[13]);
206                 break;
207             case 15:
208                 LOG_FUNC("(%08lx) %02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x %02x %02x\n",
209                     (UINT_32)pucStartAddr,
210                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
211                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
212                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
213                     pucStartAddr[12], pucStartAddr[13], pucStartAddr[14]);
214                 break;
215             default:
216                 break;
217             }
218             u4Length = 0;
219         }
220     }
221
222     LOG_FUNC("\n");
223
224     return;
225 } /* end of dumpMemory8() */
226
227
228 /*----------------------------------------------------------------------------*/
229 /*!
230 * \brief This routine is called to dump a segment of memory in double words.
231 *
232 * \param[in] pucStartAddr   Pointer to the starting address of the memory to be dumped.
233 * \param[in] u4Length       Length of the memory to be dumped.
234 *
235 * \return (none)
236 */
237 /*----------------------------------------------------------------------------*/
238 VOID
239 dumpMemory32 (
240     IN PUINT_32 pu4StartAddr,
241     IN UINT_32  u4Length)
242 {
243     PUINT_8 pucAddr;
244
245
246     ASSERT(pu4StartAddr);
247
248     LOG_FUNC("DUMP32 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pu4StartAddr, u4Length);
249
250     if (IS_NOT_ALIGN_4((UINT_32)pu4StartAddr)) {
251         UINT_32 u4ProtrudeLen = sizeof(UINT_32) - ((UINT_32)pu4StartAddr % 4);
252
253
254         u4ProtrudeLen = ((u4Length < u4ProtrudeLen) ? u4Length: u4ProtrudeLen);
255         LOG_FUNC("pu4StartAddr is not at DW boundary.\n");
256         pucAddr = (PUINT_8) &pu4StartAddr[0];
257
258         switch (u4ProtrudeLen) {
259             case 1:
260                 LOG_FUNC("(%08lx) %02x------\n",
261                    (UINT_32)pu4StartAddr,
262                    pucAddr[0]);
263                 break;
264             case 2:
265                 LOG_FUNC("(%08lx) %02x%02x----\n",
266                    (UINT_32)pu4StartAddr,
267                    pucAddr[1], pucAddr[0]);
268                 break;
269             case 3:
270                 LOG_FUNC("(%08lx) %02x%02x%02x--\n",
271                    (UINT_32)pu4StartAddr,
272                    pucAddr[2], pucAddr[1], pucAddr[0]);
273                 break;
274             default:
275                 break;
276         }
277
278         u4Length -= u4ProtrudeLen;
279         pu4StartAddr = (PUINT_32)((UINT_32)pu4StartAddr + u4ProtrudeLen);
280     }
281
282     while (u4Length > 0) {
283         if (u4Length >= 16) {
284             LOG_FUNC("(%08lx) %08lx %08lx %08lx %08lx\n",
285                 (UINT_32)pu4StartAddr,
286                 pu4StartAddr[0], pu4StartAddr[1], pu4StartAddr[2], pu4StartAddr[3]);
287             pu4StartAddr += 4;
288             u4Length -= 16;
289         }
290         else {
291             switch (u4Length) {
292             case 1:
293                  pucAddr = (PUINT_8) &pu4StartAddr[0];
294                  LOG_FUNC("(%08lx) ------%02x\n",
295                     (UINT_32)pu4StartAddr,
296                     pucAddr[0]);
297                  break;
298             case 2:
299                  pucAddr = (PUINT_8) &pu4StartAddr[0];
300                  LOG_FUNC("(%08lx) ----%02x%02x\n",
301                     (UINT_32)pu4StartAddr,
302                     pucAddr[1], pucAddr[0]);
303                  break;
304             case 3:
305                  pucAddr = (PUINT_8) &pu4StartAddr[0];
306                  LOG_FUNC("(%08lx) --%02x%02x%02x\n",
307                     (UINT_32)pu4StartAddr,
308                     pucAddr[2], pucAddr[1], pucAddr[0]);
309                  break;
310             case 4:
311                  LOG_FUNC("(%08lx) %08lx\n",
312                     (UINT_32)pu4StartAddr,
313                     pu4StartAddr[0]);
314                  break;
315             case 5:
316                  pucAddr = (PUINT_8) &pu4StartAddr[1];
317                  LOG_FUNC("(%08lx) %08lx ------%02x\n",
318                     (UINT_32)pu4StartAddr,
319                     pu4StartAddr[0],
320                     pucAddr[0]);
321                  break;
322             case 6:
323                  pucAddr = (PUINT_8) &pu4StartAddr[1];
324                  LOG_FUNC("(%08lx) %08lx ----%02x%02x\n",
325                     (UINT_32)pu4StartAddr,
326                     pu4StartAddr[0],
327                     pucAddr[1], pucAddr[0]);
328                  break;
329             case 7:
330                  pucAddr = (PUINT_8) &pu4StartAddr[1];
331                  LOG_FUNC("(%08lx) %08lx --%02x%02x%02x\n",
332                     (UINT_32)pu4StartAddr,
333                     pu4StartAddr[0],
334                     pucAddr[2], pucAddr[1], pucAddr[0]);
335                  break;
336             case 8:
337                  LOG_FUNC("(%08lx) %08lx %08lx\n",
338                     (UINT_32)pu4StartAddr,
339                     pu4StartAddr[0], pu4StartAddr[1]);
340                  break;
341             case 9:
342                  pucAddr = (PUINT_8) &pu4StartAddr[2];
343                  LOG_FUNC("(%08lx) %08lx %08lx ------%02x\n",
344                     (UINT_32)pu4StartAddr,
345                     pu4StartAddr[0], pu4StartAddr[1],
346                     pucAddr[0]);
347                  break;
348             case 10:
349                  pucAddr = (PUINT_8) &pu4StartAddr[2];
350                  LOG_FUNC("(%08lx) %08lx %08lx ----%02x%02x\n",
351                     (UINT_32)pu4StartAddr,
352                     pu4StartAddr[0], pu4StartAddr[1],
353                     pucAddr[1], pucAddr[0]);
354                  break;
355             case 11:
356                  pucAddr = (PUINT_8) &pu4StartAddr[2];
357                  LOG_FUNC("(%08lx) %08lx %08lx --%02x%02x%02x\n",
358                     (UINT_32)pu4StartAddr,
359                     pu4StartAddr[0], pu4StartAddr[1],
360                     pucAddr[2], pucAddr[1], pucAddr[0]);
361                  break;
362             case 12:
363                  LOG_FUNC("(%08lx) %08lx %08lx %08lx\n",
364                     (UINT_32)pu4StartAddr,
365                     pu4StartAddr[0], pu4StartAddr[1], pu4StartAddr[2]);
366                  break;
367             case 13:
368                  pucAddr = (PUINT_8) &pu4StartAddr[3];
369                  LOG_FUNC("(%08lx) %08lx %08lx %08lx ------%02x\n",
370                     (UINT_32)pu4StartAddr,
371                     pu4StartAddr[0], pu4StartAddr[1], pu4StartAddr[2],
372                     pucAddr[0]);
373                  break;
374             case 14:
375                  pucAddr = (PUINT_8) &pu4StartAddr[3];
376                  LOG_FUNC("(%08lx) %08lx %08lx %08lx ----%02x%02x\n",
377                      (UINT_32)pu4StartAddr,
378                      pu4StartAddr[0], pu4StartAddr[1], pu4StartAddr[2],
379                      pucAddr[1], pucAddr[0]);
380                  break;
381             case 15:
382                  pucAddr = (PUINT_8) &pu4StartAddr[3];
383                  LOG_FUNC("(%08lx) %08lx %08lx %08lx --%02x%02x%02x\n",
384                      (UINT_32)pu4StartAddr,
385                      pu4StartAddr[0], pu4StartAddr[1], pu4StartAddr[2],
386                      pucAddr[2], pucAddr[1], pucAddr[0]);
387                  break;
388             default:
389                 break;
390             }
391             u4Length = 0;
392         }
393     }
394
395     return;
396 } /* end of dumpMemory32() */
397 #elif CFG_SUPPORT_XLOG
398
399 /*----------------------------------------------------------------------------*/
400 /*!
401 * \brief This routine is called to dump a segment of memory in bytes.
402 *
403 * \param[in] pucStartAddr   Pointer to the starting address of the memory to be dumped.
404 * \param[in] u4Length       Length of the memory to be dumped.
405 *
406 * \return (none)
407 */
408 /*----------------------------------------------------------------------------*/
409 VOID
410 dumpMemory8 (
411     IN UINT_32  log_level,
412     IN PUINT_8  pucStartAddr,
413     IN UINT_32  u4Length
414     )
415 {
416     ASSERT(pucStartAddr);
417
418     if (log_level == ANDROID_LOG_ERROR) {
419         xlog_printk(ANDROID_LOG_ERROR, XLOG_TAG, "DUMP8 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pucStartAddr, u4Length);
420     }
421     else if (log_level == ANDROID_LOG_WARN) {
422         xlog_printk(ANDROID_LOG_WARN, XLOG_TAG, "DUMP8 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pucStartAddr, u4Length);
423     }
424     else if (log_level == ANDROID_LOG_INFO) {
425         xlog_printk(ANDROID_LOG_INFO, XLOG_TAG, "DUMP8 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pucStartAddr, u4Length);
426     }
427     else if (log_level == ANDROID_LOG_DEBUG) {
428         xlog_printk(ANDROID_LOG_DEBUG, XLOG_TAG, "DUMP8 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pucStartAddr, u4Length);
429     }
430     else if (log_level == ANDROID_LOG_VERBOSE) {
431         xlog_printk(ANDROID_LOG_VERBOSE, XLOG_TAG, "DUMP8 ADDRESS: %08lx, Length: %ld\n", (UINT_32)pucStartAddr, u4Length);
432     }
433
434     while (u4Length > 0) {
435         if (u4Length >= 16) {
436             XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x %02x %02x %02x\n",
437                 pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
438                 pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
439                 pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
440                 pucStartAddr[12], pucStartAddr[13], pucStartAddr[14], pucStartAddr[15]);
441             u4Length -= 16;
442             pucStartAddr += 16;
443         }
444         else {
445             switch (u4Length) {
446             case 1:
447                 XLOG_FUNC(log_level, "%02x\n",
448                     pucStartAddr[ 0]);
449                 break;
450             case 2:
451                 XLOG_FUNC(log_level, "%02x %02x\n",
452                     pucStartAddr[ 0], pucStartAddr[ 1]);
453                 break;
454             case 3:
455                 XLOG_FUNC(log_level, "%02x %02x %02x\n",
456                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2]);
457                 break;
458             case 4:
459                 XLOG_FUNC(log_level, "%02x %02x %02x %02x\n",
460                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3]);
461                 break;
462             case 5:
463                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x\n",
464                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
465                     pucStartAddr[ 4]);
466                 break;
467             case 6:
468                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x\n",
469                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
470                     pucStartAddr[ 4], pucStartAddr[ 5]);
471                 break;
472             case 7:
473                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x\n",
474                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
475                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6]);
476                 break;
477             case 8:
478                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x\n",
479                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
480                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7]);
481                 break;
482             case 9:
483                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x\n",
484                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
485                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
486                     pucStartAddr[ 8]);
487                 break;
488             case 10:
489                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x\n",
490                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
491                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
492                     pucStartAddr[ 8], pucStartAddr[ 9]);
493                 break;
494             case 11:
495                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x\n",
496                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
497                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
498                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10]);
499                 break;
500             case 12:
501                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x\n",
502                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
503                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
504                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11]);
505                 break;
506             case 13:
507                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x\n",
508                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
509                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
510                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
511                     pucStartAddr[12]);
512                 break;
513             case 14:
514                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x %02x\n",
515                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
516                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
517                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
518                     pucStartAddr[12], pucStartAddr[13]);
519                 break;
520             case 15:
521                 XLOG_FUNC(log_level, "%02x %02x %02x %02x  %02x %02x %02x %02x - %02x %02x %02x %02x  %02x %02x %02x\n",
522                     pucStartAddr[ 0], pucStartAddr[ 1], pucStartAddr[ 2], pucStartAddr[ 3],
523                     pucStartAddr[ 4], pucStartAddr[ 5], pucStartAddr[ 6], pucStartAddr[ 7],
524                     pucStartAddr[ 8], pucStartAddr[ 9], pucStartAddr[10], pucStartAddr[11],
525                     pucStartAddr[12], pucStartAddr[13], pucStartAddr[14]);
526                 break;
527             default:
528                 break;
529             }
530             u4Length = 0;
531         }
532     }
533
534
535     return;
536 } /* end of dumpMemory8() */
537 #endif /* DBG */
538
539