1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2019 IBM Corporation
6 * PowerPC secure variable operations.
11 #include <linux/types.h>
12 #include <linux/errno.h>
14 extern const struct secvar_operations
*secvar_ops
;
16 struct secvar_operations
{
17 int (*get
)(const char *key
, uint64_t key_len
, u8
*data
,
19 int (*get_next
)(const char *key
, uint64_t *key_len
,
21 int (*set
)(const char *key
, uint64_t key_len
, u8
*data
,
25 #ifdef CONFIG_PPC_SECURE_BOOT
27 extern void set_secvar_ops(const struct secvar_operations
*ops
);
31 static inline void set_secvar_ops(const struct secvar_operations
*ops
) { }