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_PR_API_H__ 18 #define __DRM_PR_API_H__ 19 20 /*! 21 * Defines 22 */ 23 #define DRM_SECURE_CLOCK_FLAG_RESET (1) 24 25 struct drm_nalu_headers 26 { 27 uint32_t frame_size; 28 uint32_t parse_size; 29 uint8_t *p_enc_ciphertext; 30 uint32_t hdrs_buf_len; 31 uint8_t *p_hdrs_buf; 32 }; 33 34 /*! 35 *@brief Returns NALU header 36 * 37 */ 38 uint32_t drm_pr_return_naluheaders(uint32_t session_id, 39 struct drm_nalu_headers *nalu_info); 40 41 /*! 42 *@brief Returns SRTC time 43 * 44 */ 45 uint32_t drm_pr_get_srtc_time(uint32_t *time, 46 uint32_t *flags); 47 #endif 48