Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / crypto / ccp / platform-access.h
bloba83f03beb8697e2ee3a2152752cfcae35ebfe99a
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * AMD Platform Security Processor (PSP) Platform Access interface
5 * Copyright (C) 2023 Advanced Micro Devices, Inc.
7 * Author: Mario Limonciello <mario.limonciello@amd.com>
8 */
10 #ifndef __PSP_PLATFORM_ACCESS_H__
11 #define __PSP_PLATFORM_ACCESS_H__
13 #include <linux/device.h>
14 #include <linux/miscdevice.h>
15 #include <linux/mutex.h>
16 #include <linux/psp-platform-access.h>
18 #include "psp-dev.h"
20 struct psp_platform_access_device {
21 struct device *dev;
22 struct psp_device *psp;
24 struct platform_access_vdata *vdata;
26 struct mutex mailbox_mutex;
27 struct mutex doorbell_mutex;
29 void *platform_access_data;
32 void platform_access_dev_destroy(struct psp_device *psp);
33 int platform_access_dev_init(struct psp_device *psp);
35 #endif /* __PSP_PLATFORM_ACCESS_H__ */