linux/drivers/crypto/ccp/hsti.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AMD Secure Processor device driver, security attributes
 *
 * Copyright (C) 2023-2024 Advanced Micro Devices, Inc.
 *
 * Author: Mario Limonciello <[email protected]>
 */

#include <linux/device.h>

#include "psp-dev.h"
#include "hsti.h"

#define PSP_CAPABILITY_PSP_SECURITY_OFFSET

struct hsti_request {} __packed;

#define security_attribute_show(name)

security_attribute_show()
static DEVICE_ATTR_RO(fused_part);
security_attribute_show()
static DEVICE_ATTR_RO(debug_lock_on);
security_attribute_show()
static DEVICE_ATTR_RO(tsme_status);
security_attribute_show()
static DEVICE_ATTR_RO(anti_rollback_status);
security_attribute_show()
static DEVICE_ATTR_RO(rpmc_production_enabled);
security_attribute_show()
static DEVICE_ATTR_RO(rpmc_spirom_available);
security_attribute_show()
static DEVICE_ATTR_RO(hsp_tpm_available);
security_attribute_show()
static DEVICE_ATTR_RO(rom_armor_enforced);

static struct attribute *psp_security_attrs[] =;

static umode_t psp_security_is_visible(struct kobject *kobj, struct attribute *attr, int idx)
{}

struct attribute_group psp_security_attr_group =;

static int psp_poulate_hsti(struct psp_device *psp)
{}

int psp_init_hsti(struct psp_device *psp)
{}