linux/drivers/crypto/ccp/dbc.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AMD Secure Processor Dynamic Boost Control interface
 *
 * Copyright (C) 2023 Advanced Micro Devices, Inc.
 *
 * Author: Mario Limonciello <[email protected]>
 */

#include "dbc.h"

#define DBC_DEFAULT_TIMEOUT
struct error_map {};

#define DBC_ERROR_ACCESS_DENIED
#define DBC_ERROR_EXCESS_DATA
#define DBC_ERROR_BAD_PARAMETERS
#define DBC_ERROR_BAD_STATE
#define DBC_ERROR_NOT_IMPLEMENTED
#define DBC_ERROR_BUSY
#define DBC_ERROR_MESSAGE_FAILURE
#define DBC_ERROR_OVERFLOW
#define DBC_ERROR_SIGNATURE_INVALID

static struct error_map error_codes[] =;

static inline int send_dbc_cmd_thru_ext(struct psp_dbc_device *dbc_dev, int msg)
{}

static inline int send_dbc_cmd_thru_pa(struct psp_dbc_device *dbc_dev, int msg)
{}

static int send_dbc_cmd(struct psp_dbc_device *dbc_dev, int msg)
{}

static int send_dbc_nonce(struct psp_dbc_device *dbc_dev)
{}

static int send_dbc_parameter(struct psp_dbc_device *dbc_dev)
{}

void dbc_dev_destroy(struct psp_device *psp)
{}

static long dbc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{}

static const struct file_operations dbc_fops =;

int dbc_dev_init(struct psp_device *psp)
{}