/* * Copyright (c) 2005-2007, 2012-2013, 2019-2020 Qualcomm Technologies, Inc. * All Rights Reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef AEESTDERR_H #define AEESTDERR_H // // Basic Error Codes // // #if defined(__hexagon__) #define AEE_EOFFSET 0x80000400 #else #define AEE_EOFFSET 0x00000000 #endif /** @defgroup stdbasicerror Basic error codes * @{ */ #define AEE_SUCCESS 0 ///< No error #define AEE_EUNKNOWN -1 ///< Unknown error (should not use this) #define AEE_EFAILED (AEE_EOFFSET + 0x001) ///< General failure #define AEE_ENOMEMORY (AEE_EOFFSET + 0x002) ///< Memory allocation failed because of insufficient RAM #define AEE_ECLASSNOTSUPPORT (AEE_EOFFSET + 0x003) ///< Specified class unsupported #define AEE_EVERSIONNOTSUPPORT (AEE_EOFFSET + 0x004) ///< Version not supported #define AEE_EALREADYLOADED (AEE_EOFFSET + 0x005) ///< Object already loaded #define AEE_EUNABLETOLOAD (AEE_EOFFSET + 0x006) ///< Unable to load object/applet #define AEE_EUNABLETOUNLOAD (AEE_EOFFSET + 0x007) ///< Unable to unload ///< object/applet #define AEE_EALARMPENDING (AEE_EOFFSET + 0x008) ///< Alarm is pending #define AEE_EINVALIDTIME (AEE_EOFFSET + 0x009) ///< Invalid time #define AEE_EBADCLASS (AEE_EOFFSET + 0x00A) ///< NULL class object #define AEE_EBADMETRIC (AEE_EOFFSET + 0x00B) ///< Invalid metric specified #define AEE_EEXPIRED (AEE_EOFFSET + 0x00C) ///< App/Component Expired #define AEE_EBADSTATE (AEE_EOFFSET + 0x00D) ///< Process or thread is not in expected state #define AEE_EBADPARM (AEE_EOFFSET + 0x00E) ///< Invalid parameter #define AEE_ESCHEMENOTSUPPORTED (AEE_EOFFSET + 0x00F) ///< Invalid URL scheme #define AEE_EBADITEM (AEE_EOFFSET + 0x010) ///< Value out of range #define AEE_EINVALIDFORMAT (AEE_EOFFSET + 0x011) ///< Invalid format #define AEE_EINCOMPLETEITEM (AEE_EOFFSET + 0x012) ///< Incomplete item, like length of a string is less that expected #define AEE_ENOPERSISTMEMORY (AEE_EOFFSET + 0x013) ///< Insufficient flash #define AEE_EUNSUPPORTED (AEE_EOFFSET + 0x014) ///< API not implemented #define AEE_EPRIVLEVEL (AEE_EOFFSET + 0x015) ///< Privileges are insufficient ///< for this operation #define AEE_ERESOURCENOTFOUND (AEE_EOFFSET + 0x016) ///< Unable to find specified ///< resource #define AEE_EREENTERED (AEE_EOFFSET + 0x017) ///< Non re-entrant API ///< re-entered #define AEE_EBADTASK (AEE_EOFFSET + 0x018) ///< API called in wrong task ///< context #define AEE_EALLOCATED (AEE_EOFFSET + 0x019) ///< App/Module left memory ///< allocated when released. #define AEE_EALREADY (AEE_EOFFSET + 0x01A) ///< Operation is already in ///< progress #define AEE_EADSAUTHBAD (AEE_EOFFSET + 0x01B) ///< ADS mutual authorization ///< failed #define AEE_ENEEDSERVICEPROG (AEE_EOFFSET + 0x01C) ///< Need service programming #define AEE_EMEMPTR (AEE_EOFFSET + 0x01D) ///< bad memory pointer, expected to be NULL #define AEE_EHEAP (AEE_EOFFSET + 0x01E) ///< An internal heap error was detected #define AEE_EIDLE (AEE_EOFFSET + 0x01F) ///< Context (system, interface, ///< etc.) is idle #define AEE_EITEMBUSY (AEE_EOFFSET + 0x020) ///< Context (system, interface, ///< etc.) is busy #define AEE_EBADSID (AEE_EOFFSET + 0x021) ///< Invalid subscriber ID #define AEE_ENOTYPE (AEE_EOFFSET + 0x022) ///< No type detected/found #define AEE_ENEEDMORE (AEE_EOFFSET + 0x023) ///< Need more data/info #define AEE_EADSCAPS (AEE_EOFFSET + 0x024) ///< ADS Capabilities do not ///< match those required for phone #define AEE_EBADSHUTDOWN (AEE_EOFFSET + 0x025) ///< App failed to close properly #define AEE_EBUFFERTOOSMALL (AEE_EOFFSET + 0x026) ///< Destination buffer given is ///< too small ///< or service exists or is ///< valid #define AEE_EACKPENDING (AEE_EOFFSET + 0x028) ///< ACK pending on application #define AEE_ENOTOWNER (AEE_EOFFSET + 0x029) ///< Not an owner authorized to ///< perform the operation #define AEE_EINVALIDITEM (AEE_EOFFSET + 0x02A) ///< Current item is invalid, it can be a switch case or a pointer to memory #define AEE_ENOTALLOWED (AEE_EOFFSET + 0x02B) ///< Not allowed to perform the ///< operation #define AEE_EBADHANDLE (AEE_EOFFSET + 0x02C) ///< Invalid/Wrong handle #define AEE_EINVHANDLE (AEE_EOFFSET + 0x02C) ///< Invalid handle - adding here as its defined in vendor AEEStdErr.h - needed to check valid handle in stub.c #define AEE_EOUTOFHANDLES (AEE_EOFFSET + 0x02D) ///< Out of handles (Handle list is already full) //Hole here #define AEE_ENOMORE (AEE_EOFFSET + 0x02F) ///< No more items available -- ///< reached end #define AEE_ECPUEXCEPTION (AEE_EOFFSET + 0x030) ///< A CPU exception occurred #define AEE_EREADONLY (AEE_EOFFSET + 0x031) ///< Cannot change read-only ///< object or parameter ( Parameter is in protected mode) #define AEE_ERPC (AEE_EOFFSET + 0x200) ///< Error due to fastrpc implementation #define AEE_EFILE (AEE_EOFFSET + 0x201) ///