Server IP : 13.213.54.232 / Your IP : 216.73.216.30 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/modules/6.8.0-1029-aws/build/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __PSP_PLATFORM_ACCESS_H #define __PSP_PLATFORM_ACCESS_H #include <linux/psp.h> enum psp_platform_access_msg { PSP_CMD_NONE = 0x0, PSP_I2C_REQ_BUS_CMD = 0x64, PSP_DYNAMIC_BOOST_GET_NONCE, PSP_DYNAMIC_BOOST_SET_UID, PSP_DYNAMIC_BOOST_GET_PARAMETER, PSP_DYNAMIC_BOOST_SET_PARAMETER, }; struct psp_req_buffer_hdr { u32 payload_size; u32 status; } __packed; struct psp_request { struct psp_req_buffer_hdr header; void *buf; } __packed; /** * psp_send_platform_access_msg() - Send a message to control platform features * * This function is intended to be used by drivers outside of ccp to communicate * with the platform. * * Returns: * 0: success * -%EBUSY: mailbox in recovery or in use * -%ENODEV: driver not bound with PSP device * -%ETIMEDOUT: request timed out * -%EIO: unknown error (see kernel log) */ int psp_send_platform_access_msg(enum psp_platform_access_msg, struct psp_request *req); /** * psp_ring_platform_doorbell() - Ring platform doorbell * * This function is intended to be used by drivers outside of ccp to ring the * platform doorbell with a message. * * Returns: * 0: success * -%EBUSY: mailbox in recovery or in use * -%ENODEV: driver not bound with PSP device * -%ETIMEDOUT: request timed out * -%EIO: error will be stored in result argument */ int psp_ring_platform_doorbell(int msg, u32 *result); /** * psp_check_platform_access_status() - Checks whether platform features is ready * * This function is intended to be used by drivers outside of ccp to determine * if platform features has initialized. * * Returns: * 0 platform features is ready * -%ENODEV platform features is not ready or present */ int psp_check_platform_access_status(void); #endif /* __PSP_PLATFORM_ACCESS_H */