sn_uapi.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /******************************************************************************
  3. * Copyright (C) 2015, The Linux Foundation. All rights reserved.
  4. * Copyright (C) 2019-2022 NXP
  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,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. ******************************************************************************/
  17. /*
  18. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  19. ****************************************************************************/
  20. #ifndef _UAPI_SN_UAPI_H_
  21. #define _UAPI_SN_UAPI_H_
  22. #include <linux/ioctl.h>
  23. /* Ioctls
  24. * The type should be aligned with MW HAL definitions
  25. */
  26. #define NFC_MAGIC (0xE9)
  27. #define NFC_SET_PWR _IOW(NFC_MAGIC, 0x01, uint32_t)
  28. #define ESE_SET_PWR _IOW(NFC_MAGIC, 0x02, uint32_t)
  29. #define ESE_GET_PWR _IOR(NFC_MAGIC, 0x03, uint32_t)
  30. #define NFC_SET_RESET_READ_PENDING _IOW(NFC_MAGIC, 0x04, uint32_t)
  31. #define NFC_GET_GPIO_STATUS _IOR(NFC_MAGIC, 0x05, uint32_t)
  32. #define NFC_SECURE_ZONE _IOW(NFC_MAGIC, 0x0A, uint32_t)
  33. #define ESE_COLD_RESET _IOWR(NFCC_MAGIC, 0x08, struct ese_ioctl_arg)
  34. #endif