~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/psp-platform-access.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/psp-platform-access.h (Architecture ppc) and /include/linux/psp-platform-access.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2                                                     2 
  3 #ifndef __PSP_PLATFORM_ACCESS_H                     3 #ifndef __PSP_PLATFORM_ACCESS_H
  4 #define __PSP_PLATFORM_ACCESS_H                     4 #define __PSP_PLATFORM_ACCESS_H
  5                                                     5 
  6 #include <linux/psp.h>                              6 #include <linux/psp.h>
  7                                                     7 
  8 enum psp_platform_access_msg {                      8 enum psp_platform_access_msg {
  9         PSP_CMD_NONE                    = 0x0,      9         PSP_CMD_NONE                    = 0x0,
 10         PSP_CMD_HSTI_QUERY              = 0x14     10         PSP_CMD_HSTI_QUERY              = 0x14,
 11         PSP_I2C_REQ_BUS_CMD             = 0x64     11         PSP_I2C_REQ_BUS_CMD             = 0x64,
 12         PSP_DYNAMIC_BOOST_GET_NONCE,               12         PSP_DYNAMIC_BOOST_GET_NONCE,
 13         PSP_DYNAMIC_BOOST_SET_UID,                 13         PSP_DYNAMIC_BOOST_SET_UID,
 14         PSP_DYNAMIC_BOOST_GET_PARAMETER,           14         PSP_DYNAMIC_BOOST_GET_PARAMETER,
 15         PSP_DYNAMIC_BOOST_SET_PARAMETER,           15         PSP_DYNAMIC_BOOST_SET_PARAMETER,
 16 };                                                 16 };
 17                                                    17 
 18 struct psp_req_buffer_hdr {                        18 struct psp_req_buffer_hdr {
 19         u32 payload_size;                          19         u32 payload_size;
 20         u32 status;                                20         u32 status;
 21 } __packed;                                        21 } __packed;
 22                                                    22 
 23 struct psp_request {                               23 struct psp_request {
 24         struct psp_req_buffer_hdr header;          24         struct psp_req_buffer_hdr header;
 25         void *buf;                                 25         void *buf;
 26 } __packed;                                        26 } __packed;
 27                                                    27 
 28 /**                                                28 /**
 29  * psp_send_platform_access_msg() - Send a mes     29  * psp_send_platform_access_msg() - Send a message to control platform features
 30  *                                                 30  *
 31  * This function is intended to be used by dri     31  * This function is intended to be used by drivers outside of ccp to communicate
 32  * with the platform.                              32  * with the platform.
 33  *                                                 33  *
 34  * Returns:                                        34  * Returns:
 35  *  0:           success                           35  *  0:           success
 36  *  -%EBUSY:     mailbox in recovery or in use     36  *  -%EBUSY:     mailbox in recovery or in use
 37  *  -%ENODEV:    driver not bound with PSP dev     37  *  -%ENODEV:    driver not bound with PSP device
 38  *  -%ETIMEDOUT: request timed out                 38  *  -%ETIMEDOUT: request timed out
 39  *  -%EIO:       unknown error (see kernel log     39  *  -%EIO:       unknown error (see kernel log)
 40  */                                                40  */
 41 int psp_send_platform_access_msg(enum psp_plat     41 int psp_send_platform_access_msg(enum psp_platform_access_msg, struct psp_request *req);
 42                                                    42 
 43 /**                                                43 /**
 44  * psp_ring_platform_doorbell() - Ring platfor     44  * psp_ring_platform_doorbell() - Ring platform doorbell
 45  *                                                 45  *
 46  * This function is intended to be used by dri     46  * This function is intended to be used by drivers outside of ccp to ring the
 47  * platform doorbell with a message.               47  * platform doorbell with a message.
 48  *                                                 48  *
 49  * Returns:                                        49  * Returns:
 50  *  0:           success                           50  *  0:           success
 51  *  -%EBUSY:     mailbox in recovery or in use     51  *  -%EBUSY:     mailbox in recovery or in use
 52  *  -%ENODEV:    driver not bound with PSP dev     52  *  -%ENODEV:    driver not bound with PSP device
 53  *  -%ETIMEDOUT: request timed out                 53  *  -%ETIMEDOUT: request timed out
 54  *  -%EIO:       error will be stored in resul     54  *  -%EIO:       error will be stored in result argument
 55  */                                                55  */
 56 int psp_ring_platform_doorbell(int msg, u32 *r     56 int psp_ring_platform_doorbell(int msg, u32 *result);
 57                                                    57 
 58 /**                                                58 /**
 59  * psp_check_platform_access_status() - Checks     59  * psp_check_platform_access_status() - Checks whether platform features is ready
 60  *                                                 60  *
 61  * This function is intended to be used by dri     61  * This function is intended to be used by drivers outside of ccp to determine
 62  * if platform features has initialized.           62  * if platform features has initialized.
 63  *                                                 63  *
 64  * Returns:                                        64  * Returns:
 65  * 0          platform features is ready           65  * 0          platform features is ready
 66  * -%ENODEV   platform features is not ready o     66  * -%ENODEV   platform features is not ready or present
 67  */                                                67  */
 68 int psp_check_platform_access_status(void);        68 int psp_check_platform_access_status(void);
 69                                                    69 
 70 #endif /* __PSP_PLATFORM_ACCESS_H */               70 #endif /* __PSP_PLATFORM_ACCESS_H */
 71                                                    71 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php