blob: bf778f48fecdcbc9bb39961c8d1f5e7d558c0d3c [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/*************************************************************
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
23extern U32 GET_ClkFreq(U32* psysClkReg);
24extern U32 GET_InterTimerRefPreq(void);
25extern U32 BSP_GetStartBootNo(void);
26
27extern void TMBInit (void);
28extern void sysUsDelay(U32 delay);
29extern void delayUSec(U32 delay);
30extern U32 BSP_GetTimeBaseVal(U32 *pulTimeL, U32 *pulTimeH );
31extern U32 BSP_GetTimeBase(U32 *pulTimeL, U32 *pulTimeH );
32extern void TMB_Read(U32* pulValueHigh, U32* pulValueLow);
33extern int bUnzipPlus(
34 long lInputLen,
35 void* pInputBuf,
36 void* pOutputBuf,
37 long* plOutputLen,
38 long lCheckLen ,
39 char compresstype
40 );
41#endif