hdm.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * @file hdm.h
  3. * @brief Header file for HDM driver
  4. * Copyright (c) 2019, Samsung Electronics Corporation. 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 version 2 and
  8. * only version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __HDM_H__
  16. #define __HDM_H__
  17. #include <linux/types.h>
  18. #ifndef __ASSEMBLY__
  19. #define HDM_CMD_LEN ((size_t)8)
  20. #define HDM_P_BITMASK 0xFFFF
  21. #define HDM_C_BITMASK 0xF0000
  22. #define HDM_FLAG_SET 0x10000
  23. #define HDM_FLAG_UNSET 0x20000
  24. #define HDM_HYP_CALL 0x40000
  25. #define HDM_HYP_INIT 0x50000
  26. #define HDM_HYP_CLEAR 0x60000
  27. #define HDM_HYP_CALLP 0x80000
  28. #define HDM_CMD_MAX 0xFFFFF
  29. #define HDM_GET_SUPPORTED_SUBSYSTEM 6
  30. #define HDM_WIFI_SUPPORT_BIT 0x08
  31. #define HDM_CP_SUPPORT_BIT 0x100
  32. extern int hdm_is_wlan_enabled(void);
  33. extern int hdm_is_cp_enabled(void);
  34. enum {
  35. HDM_ALLOW = 0,
  36. HDM_PROTECT,
  37. };
  38. extern const struct file_operations hdm_fops;
  39. #endif //__ASSEMBLY__
  40. #endif //__HDM_H__