mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-25 02:41:08 +00:00
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>
29 lines
677 B
C
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_ */
|