• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * drivers/amlogic/amports/arch/secprot.h
3  *
4  * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16 */
17 
18 #ifndef __SECPROT_H_
19 #define __SECPROT_H_
20 
21 #define DMC_DEV_TYPE_NON_SECURE        0
22 #define DMC_DEV_TYPE_SECURE            1
23 
24 #define DMC_DEV_ID_GPU                 1
25 #define DMC_DEV_ID_HEVC                4
26 #define DMC_DEV_ID_PARSER              7
27 #define DMC_DEV_ID_VPU                 8
28 #define DMC_DEV_ID_VDEC                13
29 #define DMC_DEV_ID_HCODEC              14
30 #define DMC_DEV_ID_GE2D                15
31 
32 #define OPTEE_SMC_CONFIG_DEVICE_SECURE 0xb200000e
33 
34 /*#define __asmeq(x, y)  ".ifnc " x "," y " ; .err ; .endif\n\t"*/
35 
36 extern int tee_config_device_secure(int dev_id, int secure);
37 
38 #endif /* __SECPROT_H_ */
39 
40