Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame] | 1 | /*************************************************************
|
| 2 | #
|
| 3 | #
|
| 4 | # Copyright (c) Huawei Technologies Co., Ltd. 2013. All rights reserved.
|
| 5 | # This program and the accompanying materials
|
| 6 | # are licensed and made available under the terms and conditions of the BSD License
|
| 7 | # which accompanies this distribution. The full text of the license may be found at
|
| 8 | # http://opensource.org/licenses/bsd-license.php
|
| 9 | #
|
| 10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 12 | #
|
| 13 | #**/
|
| 14 | #ifndef __SYS_UTIL_LIB__
|
| 15 | #define __SYS_UTIL_LIB__
|
| 16 |
|
| 17 | #include "Std.h"
|
| 18 |
|
| 19 | #define SC_PCB_BIT (16)
|
| 20 | #define SC_PCB_MASK (0xF)
|
| 21 |
|
| 22 |
|
| 23 | extern U32 GET_ClkFreq(U32* psysClkReg);
|
| 24 | extern U32 GET_InterTimerRefPreq(void);
|
| 25 | extern U32 BSP_GetStartBootNo(void);
|
| 26 |
|
| 27 | extern void TMBInit (void);
|
| 28 | extern void sysUsDelay(U32 delay);
|
| 29 | extern void delayUSec(U32 delay);
|
| 30 | extern U32 BSP_GetTimeBaseVal(U32 *pulTimeL, U32 *pulTimeH );
|
| 31 | extern U32 BSP_GetTimeBase(U32 *pulTimeL, U32 *pulTimeH );
|
| 32 | extern void TMB_Read(U32* pulValueHigh, U32* pulValueLow);
|
| 33 | extern int bUnzipPlus(
|
| 34 | long lInputLen,
|
| 35 | void* pInputBuf,
|
| 36 | void* pOutputBuf,
|
| 37 | long* plOutputLen,
|
| 38 | long lCheckLen ,
|
| 39 | char compresstype
|
| 40 | );
|
| 41 | #endif
|