From d04075478d378d9e15f3e1abfd14b0bd124077d4 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 11:48:36 +0800 Subject: init commit via android 4.4 uboot --- cpu/arm920t/wmt/tconvert.h | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 cpu/arm920t/wmt/tconvert.h (limited to 'cpu/arm920t/wmt/tconvert.h') diff --git a/cpu/arm920t/wmt/tconvert.h b/cpu/arm920t/wmt/tconvert.h new file mode 100755 index 0000000..db638f6 --- /dev/null +++ b/cpu/arm920t/wmt/tconvert.h @@ -0,0 +1,55 @@ +/*++ +Copyright (c) 2010 WonderMedia Technologies, Inc. + +This program is free software: you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation, either version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. You +should have received a copy of the GNU General Public License along with this +program. If not, see http://www.gnu.org/licenses/>. + +WonderMedia Technologies, Inc. +10F, 529, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C. +--*/ + +#ifndef __TCONVERT_H__ +#define __TCONVERT_H__ + +#if !defined(__TTYPE_H__) +#include "ttype.h" +#endif +#if !defined(__TTCHAR_H__) +#include "ttchar.h" +#endif + +/*--------------------- Export Definitions -------------------------*/ + +/*--------------------- Export Types ------------------------------*/ + +/*--------------------- Export Macros ------------------------------*/ + +/*--------------------- Export Classes ----------------------------*/ + +/*--------------------- Export Variables --------------------------*/ + +/*--------------------- Export Functions --------------------------*/ +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +void CVTvBy6ToStr12(PBYTE pbyEtherAddr, const PTSTR pszResult); +void CVTvStr12ToBy6(const PCTSTR pszSrc, PBYTE pbyEtherAddr); +void CVTvHexToAsc(PBYTE pbyValue, const PTSTR pszResult, UINT cbByte); +void CVTvAscToHex(const PCTSTR pszSrc, PBYTE pbyValue, UINT cbByte); +void CVTvIP4ToStr15(PBYTE pbyIPAddr, const PTSTR pszResult); +void CVTvStr15ToIP4(const PCTSTR pszSrc, PBYTE pbyIPAddr); + +#ifdef __cplusplus +} /* End of extern "C" { */ +#endif /* __cplusplus */ + +#endif /* __TCONVERT_H__ */ -- cgit