Path: blob/master/arch/powerpc/include/uapi/asm/papr-physical-attestation.h
26516 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _UAPI_PAPR_PHYSICAL_ATTESTATION_H_2#define _UAPI_PAPR_PHYSICAL_ATTESTATION_H_34#include <linux/types.h>5#include <asm/ioctl.h>6#include <asm/papr-miscdev.h>78#define PAPR_PHYATTEST_MAX_INPUT 4084 /* Max 4K buffer: 4K-12 */910/*11* Defined in PAPR 2.13+ 21.6 Attestation Command Structures.12* User space pass this struct and the max size should be 4K.13*/14struct papr_phy_attest_io_block {15__u8 version;16__u8 command;17__u8 TCG_major_ver;18__u8 TCG_minor_ver;19__be32 length;20__be32 correlator;21__u8 payload[PAPR_PHYATTEST_MAX_INPUT];22};2324/*25* ioctl for /dev/papr-physical-attestation. Returns a attestation26* command fd handle27*/28#define PAPR_PHY_ATTEST_IOC_HANDLE _IOW(PAPR_MISCDEV_IOC_ID, 8, struct papr_phy_attest_io_block)2930#endif /* _UAPI_PAPR_PHYSICAL_ATTESTATION_H_ */313233