Lock a secure silicon region
#include <sys/dcmd_f3s.h> #define DCMD_F3S_LOCKSSR __DIOTF(_DCMD_F3S, F3S_LOCKSSR, uint32_t)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening /dev/fs0 |
dcmd | DCMD_F3S_LOCKSSR |
dev_data_ptr | NULL, or a pointer to a uint32_t |
n_bytes | 0 or sizeof(uint32_t) |
dev_info_ptr | NULL |
This command locks a secure silicon region. You can:
The number of the region to lock, or NULL to lock the entire OTP area.
None.
The Spansion S25FL QSPI flash supports multiple regions in the OTP (SSR) area. Each region can be locked separately:
devctl(fd, DCMD_F3S_LOCKSSR, NULL, 0, NULL);
lock = 17; devctl(fd, DCMD_F3S_LOCKSSR, &lock, 1, NULL);
DCMD_F3S_READSSR, DCMD_F3S_STATSSR, DCMD_F3S_WRITESSR
devctl() in the QNX Neutrino C Library Reference