blob: 2e3e20af8626573cac3bbd7eb9d61f81a77e0ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* @file hdm.h
* @brief Header file for HDM driver
* Copyright (c) 2019, Samsung Electronics Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __HDM_H__
#define __HDM_H__
#include <linux/types.h>
#ifndef __ASSEMBLY__
#define HDM_CMD_LEN ((size_t)8)
#define HDM_P_BITMASK 0xFFFF
#define HDM_C_BITMASK 0xF0000
#define HDM_HYP_CALL 0x40000
#define HDM_HYP_CALLP 0x80000
#define HDM_CMD_MAX 0xFFFFF
enum {
HDM_ALLOW = 0,
HDM_PROTECT,
};
extern const struct file_operations hdm_fops;
#endif //__ASSEMBLY__
#endif //__HDM_H__
|