mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 07:15:20 +00:00
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>
|
||
|---|---|---|
| .. | ||
| image | ||
| porting-case-studies | ||
| armv7m_runtimestackcheck.rst | ||
| automounter.rst | ||
| building_nuttx_with_app_out_of_src_tree.rst | ||
| building_uclibcpp.rst | ||
| changing_systemclockconfig.rst | ||
| citests.rst | ||
| cpp_cmake.rst | ||
| custom_app_directories.rst | ||
| customapps.rst | ||
| customboards.rst | ||
| devicetree.rst | ||
| drivers.rst | ||
| etcromfs.rst | ||
| fortify.rst | ||
| fully_linked_elf.rst | ||
| include_files_board_h.rst | ||
| index.rst | ||
| integrate_newlib.rst | ||
| ipv6.rst | ||
| kernel_threads_with_custom_stacks.rst | ||
| logging_rambuffer.rst | ||
| multiple_nsh_sessions.rst | ||
| nestedinterrupts.rst | ||
| nfs.rst | ||
| nix_flake.rst | ||
| nsh_network_link_management.rst | ||
| ofloader.rst | ||
| optee.rst | ||
| partially_linked_elf.rst | ||
| platform_directories.rst | ||
| port.rst | ||
| port_bootsequence.rst | ||
| port_drivers_to_stm32f7.rst | ||
| port_relatedkernelconfigrations.rst | ||
| protected_build.rst | ||
| pysimcoder.rst | ||
| ram_rom_disks.rst | ||
| reading_can_msgs.rst | ||
| remove_device_drivers_nsh.rst | ||
| renode.rst | ||
| rndis.rst | ||
| rust.rst | ||
| semihosting.rst | ||
| signal_events_interrupt_handlers.rst | ||
| signaling_sem_priority_inheritance.rst | ||
| simulator.rst | ||
| smaller_vector_tables.rst | ||
| specialstuff_in_nuttxheaderfiles.rst | ||
| stm32ccm.rst | ||
| stm32nullpointer.rst | ||
| testingtcpip.rst | ||
| thread_local_storage.rst | ||
| updating_release_system_elf.rst | ||
| usbtrace.rst | ||
| usingkernelthreads.rst | ||
| versioning_and_task_names.rst | ||
| zerolatencyinterrupts.rst | ||