walnux/Documentation
Theodore Karatapanis 707cdaf42e drivers/misc/optee: Expanded RPC support.
This commit expands RPC support for the OP-TEE driver using 2 files:
1) drivers/misc/optee_rpc.c
   * Add support for RPCs that can be handled directly by the kernel.
   * Can delegate RPC handling to optee_supplicant.c for RPCs that
     need userspace interaction.
2) drivers/misc/optee_supplicant.c
   * Enable communication between the userspace TEE supplicant and the
     kernel driver.

Additional changes were needed to the following files:
1) drivers/misc/optee.c
   * Add ioctls used SOLELY by the userspace TEE supplicant.
   * Register /dev/teepriv0 if the supplicant is enabled in Kconfig
   * Add OPTEE_ROLE_CA and OPTEE_ROLE_SUPPLICANT conditionals to
     differentiate paths, between a normal Client Application (CA)
     and the TEE supplicant.
   * Change some functions from static to "public" to reuse them
     in other C files.
   * Adjust optee_to/from_msg_param() to work with RPCs.

2) drivers/misc/optee_smc.c
   * Call the RPC handler from optee_rpc.c

3) drivers/misc/optee_msg.h
   * Add definition needed for RPCs

4) drivers/misc/tee.h
   * Add ioctl definitions
   * Add TEE_SHM_SUPP flag, checked when unregistering supplicant
     memory.

5) Documentation/guides/optee.rs
   * Add documentation for RPCs and the supplicant.

6) drivers/misc/{CMakeLists.txt, Make.defs}
   * Account for the new files.

7) drivers/misc/Kconfig
   * Add DEV_OPTEE_SUPPLICANT option to enable/disable the supplicant
     driver.

Signed-off-by: Theodore Karatapanis <tkaratapanis@census-labs.com>
2025-08-06 02:29:33 +08:00
..
_extensions Documentation: port warnings_filter Sphinx extension from Zephyr 2023-11-28 09:18:29 -08:00
_static
_templates
applications documentation: spelling and grammar fixes 2025-07-24 14:44:02 +08:00
components Docs/drviers/mtd:Add description for MTD Device Registration and FTL Control 2025-07-16 14:11:41 +08:00
contributing docs/contributing: Add a commit message template 2025-06-03 17:33:24 +08:00
debugging Documentation: fix spelling 2025-05-15 11:33:41 +08:00
faq DOC: Add how to get application on NSH 2024-06-06 02:39:56 +08:00
guides drivers/misc/optee: Expanded RPC support. 2025-08-06 02:29:33 +08:00
implementation documentation: spelling and grammar fixes 2025-07-24 14:44:02 +08:00
introduction WIP: Documentation: replace first person perspectives 2025-05-19 20:21:33 +08:00
logos style: fix typos 2025-04-30 13:45:46 +08:00
platforms Documentation/platforms/arm/samv7: add entry for supported PIC32CZ CA70 2025-07-30 19:28:07 +08:00
quickstart Doc: Remove MOTD string from nsh shell on simulator 2025-07-30 12:01:56 +08:00
reference documentation: spelling and grammar fixes 2025-07-24 14:44:02 +08:00
ReleaseNotes Documentation: add NuttX-12.10.0 release notes 2025-06-27 20:20:40 +08:00
standards Documentation: review supported POSIX interfaces in NuttX 2025-06-12 10:13:52 -03:00
.gitignore docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
conf.py docs: Update the ELF guides 2025-06-11 23:11:08 +08:00
glossary.rst
index.rst Documentation: review supported POSIX interfaces in NuttX 2025-06-12 10:13:52 -03:00
known-warnings.txt fs: Add VFS docs 2024-02-20 18:28:09 -08:00
legacy_README.md Documentation: fix spelling 2025-05-15 11:33:41 +08:00
make.bat
Makefile docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
Pipfile docs: Fix pipenv lockfile for older Python versions 2025-06-11 23:11:08 +08:00
Pipfile.lock build(deps): bump tornado from 6.4.2 to 6.5.1 in /Documentation 2025-06-12 19:09:47 +08:00
substitutions.rst