/****************************************************************************** * * Copyright (C) 2012 Asahi Kasei Microdevices Corporation, Japan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ #ifndef AKFS_INC_COMMON_H #define AKFS_INC_COMMON_H #ifdef WIN32 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif #include #include #include #include #include #include #include "Android.h" #define DBG_LEVEL DBG_LEVEL4 #define ENABLE_AKMDEBUG 1 #else #include /* frpintf */ #include /* atoi */ #include /* memset */ #include #include /* va_list */ #include /* ALOGV */ #include /* errno */ #endif /*** Constant definition ******************************************************/ #define AKM_TRUE 1 /*!< Represents true */ #define AKM_FALSE 0 /*!< Represents false */ #define AKM_SUCCESS 1 /*!< Represents success */ #define AKM_FAIL 0 /*!< Represents fail */ #define DBG_LEVEL0 0 /* Critical */ #define DBG_LEVEL1 1 /* Notice */ #define DBG_LEVEL2 2 /* Information */ #define DBG_LEVEL3 3 /* Debug */ #define DBG_LEVEL4 4 /* Verbose */ #ifndef DBG_LEVEL #define DBG_LEVEL DBG_LEVEL0 #endif #define DATA_AREA01 0x0001 #define DATA_AREA02 0x0002 #define DATA_AREA03 0x0004 #define DATA_AREA04 0x0008 #define DATA_AREA05 0x0010 #define DATA_AREA06 0x0020 #define DATA_AREA07 0x0040 #define DATA_AREA08 0x0080 #define DATA_AREA09 0x0100 #define DATA_AREA10 0x0200 #define DATA_AREA11 0x0400 #define DATA_AREA12 0x0800 #define DATA_AREA13 0x1000 #define DATA_AREA14 0x2000 #define DATA_AREA15 0x4000 #define DATA_AREA16 0x8000 /* Debug area definition */ #define AKMDATA_DUMP DATA_AREA01 /*