#include <linux/bitfield.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <linux/mutex.h>
#include "platform-access.h"
#define PSP_CMD_TIMEOUT_US …
#define DOORBELL_CMDRESP_STS …
static int check_recovery(u32 __iomem *cmd)
{ … }
static int wait_cmd(u32 __iomem *cmd)
{ … }
int psp_check_platform_access_status(void)
{ … }
EXPORT_SYMBOL(…);
int psp_send_platform_access_msg(enum psp_platform_access_msg msg,
struct psp_request *req)
{ … }
EXPORT_SYMBOL_GPL(…);
int psp_ring_platform_doorbell(int msg, u32 *result)
{ … }
EXPORT_SYMBOL_GPL(…);
void platform_access_dev_destroy(struct psp_device *psp)
{ … }
int platform_access_dev_init(struct psp_device *psp)
{ … }