1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * AMD Platform Security Processor (PSP) Dynamic Boost Control support
5 * Copyright (C) 2023 Advanced Micro Devices, Inc.
7 * Author: Mario Limonciello <mario.limonciello@amd.com>
13 #include <uapi/linux/psp-dbc.h>
15 #include <linux/device.h>
16 #include <linux/miscdevice.h>
17 #include <linux/psp-platform-access.h>
21 struct psp_dbc_device
{
23 struct psp_device
*psp
;
25 union dbc_buffer
*mbox
;
27 struct mutex ioctl_mutex
;
29 struct miscdevice char_dev
;
31 /* used to abstract communication path */
40 struct psp_request pa_req
;
41 struct psp_ext_request ext_req
;
44 void dbc_dev_destroy(struct psp_device
*psp
);
45 int dbc_dev_init(struct psp_device
*psp
);