|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Files | |
| file | infineon_mxcryptolite.h |
| Public API for MXCRYPTOLITE MFD driver. | |
Functions | |
| CRYPTOLITE_Type * | mfd_infineon_mxcryptolite_get_base (const struct device *dev) |
| Get the MXCRYPTOLITE register base address. | |
| int | mfd_infineon_mxcryptolite_lock (const struct device *dev, k_timeout_t timeout) |
| Acquire the shared MXCRYPTOLITE access mutex. | |
| void | mfd_infineon_mxcryptolite_unlock (const struct device *dev) |
| Release the shared MXCRYPTOLITE access mutex. | |
| CRYPTOLITE_Type * mfd_infineon_mxcryptolite_get_base | ( | const struct device * | dev | ) |
#include <zephyr/drivers/mfd/infineon_mxcryptolite.h>
Get the MXCRYPTOLITE register base address.
The base address is shared by the TRNG and crypto (AES / SHA-256) child functions of the MXCRYPTOLITE block.
| [in] | dev | Pointer to the parent MFD device. |
| int mfd_infineon_mxcryptolite_lock | ( | const struct device * | dev, |
| k_timeout_t | timeout ) |
#include <zephyr/drivers/mfd/infineon_mxcryptolite.h>
Acquire the shared MXCRYPTOLITE access mutex.
The TRNG and crypto child functions share a single hardware block, so a child must hold this lock for the duration of any multi-step hardware operation that must not be interleaved with the sibling function.
| [in] | dev | Pointer to the parent MFD device. |
| [in] | timeout | Lock acquisition timeout. |
| 0 | on success. |
| -EAGAIN | if the lock could not be acquired within timeout. |
| void mfd_infineon_mxcryptolite_unlock | ( | const struct device * | dev | ) |
#include <zephyr/drivers/mfd/infineon_mxcryptolite.h>
Release the shared MXCRYPTOLITE access mutex.
| [in] | dev | Pointer to the parent MFD device. |