1 /* 2 * Copyright (C) 2014 Intel Corporation. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __DRM_ERROR_H__ 18 #define __DRM_ERROR_H__ 19 20 21 enum 22 { 23 DRM_SUCCESSFUL = 0, 24 25 /*! DRM middleware and firmware errors */ 26 DRM_ERR_BASE = 0x50000000, 27 DRM_FAIL_INVALID_PARAM, 28 DRM_FAIL_NULL_PARAM, 29 DRM_FAIL_BUFFER_TOO_SMALL, 30 DRM_FAIL_UNSUPPORTED, 31 DRM_FAIL_INVALID_IMR_SIZE, 32 DRM_FAIL_INVALID_SESSION, 33 DRM_FAIL_FW_SESSION, 34 DRM_FAIL_AUDIO_DATA_NOT_VALID, 35 DRM_FAIL_INVALID_TEE_PARAM, 36 DRM_FAIL_KEYBOX_INVALID_BAD_MAGIC, 37 DRM_FAIL_KEYBOX_INVALID_BAD_CRC, 38 DRM_FAIL_KEYBOX_INVALID_BAD_PROVISIONING, 39 DRM_FAIL_KEYBOX_INVALID_NOT_PROVISIONED, 40 DRM_FAIL_INPUT_BUFFER_TOO_SHORT, 41 DRM_FAIL_AES_DECRYPT, // 0x5000000F 42 DRM_FAIL_AES_FAILURE, 43 DRM_FAIL_WV_NO_ASSET_KEY, 44 DRM_FAIL_WV_NO_CEK, 45 DRM_FAIL_SCHEDULER, 46 DRM_FAIL_SESSION_NOT_INITIALIZED, 47 DRM_FAIL_REPROVISION_IED_KEY, 48 DRM_FAIL_NALU_DATA_EXCEEDS_BUFFER_SIZE, 49 DRM_FAIL_WV_SESSION_NALU_PARSE_FAILURE, 50 DRM_FAIL_SESSION_KEY_GEN, 51 DRM_FAIL_INVALID_PLATFORM_ID, 52 DRM_FAIL_INVALID_MAJOR_VERSION, 53 DRM_FAIL_NO_PREV_PARTIAL_BLOCK, 54 DRM_FAIL_WRITE_KEYBOX, 55 DRM_FAIL_INSUFFICENT_RESOURCES, 56 57 /*! Middleware specific errors */ 58 DRM_FAIL_GENERATE_RANDOM_NUMBER_FAILURE = 0x50001000, 59 DRM_FAIL_DX_CCLIB_INIT_FAILURE, 60 DRM_FAILURE = 0x5FFFFFFF 61 }; 62 63 64 #endif // drm_error.h 65