Files
android_kernel_fxtec_sm6115/include/uapi/linux/spss_utils.h
Amir Samuelov f03ba02450 soc: qcom: spss_utils: add IAR support
Put the spss-firmware IAR-CMAC after firmware image.
Add ioctl support to set CMAC from spdaemon.
Add attr to get pbl_cmac_buf.

Change-Id: Iffb67fe6e68d83d2c406e0f8f5cf980195a44f5e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Nurit Lichtenstein <nuritl@codeaurora.org>
2019-07-21 03:54:41 -07:00

29 lines
677 B
C

/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
*/
#ifndef _UAPI_SPSS_UTILS_H_
#define _UAPI_SPSS_UTILS_H_
#include <linux/types.h> /* uint32_t, bool */
#include <linux/ioctl.h> /* ioctl() */
/**
* @brief - Secure Processor Utilities interface to user space
*
* The kernel spss_utils driver interface to user space via IOCTL
* and SYSFS (device attributes).
*/
#define SPSS_IOC_MAGIC 'S'
struct spss_ioc_set_fw_cmac {
uint32_t cmac[4];
} __packed;
#define SPSS_IOC_SET_FW_CMAC \
_IOWR(SPSS_IOC_MAGIC, 1, struct spss_ioc_set_fw_cmac)
#endif /* _UAPI_SPSS_UTILS_H_ */