![]() |
PDK API Guide for J721E
|
===========================================================================
Functions | |
uint32_t | SPINLOCKRevision (uint32_t baseAddr) |
This API provides the SPINLOCK_REVISION of the SPINLOCK module. . More... | |
uint32_t | SPINLOCKGetNumLocks (uint32_t baseAddr) |
This API provides returns the number of locks supported. . More... | |
uint32_t | SPINLOCKSystatus (uint32_t baseAddr) |
This API provides the status of each bank of 32 locks that can be read from the SPINLOCK_SYSTATUS register. . More... | |
uint32_t | SPINLOCKSystatusIU0 (uint32_t baseAddr) |
This API provides the lock status of the Spinlock module. . More... | |
uint32_t | SPINLOCKSystatusIU (uint32_t baseAddr, uint32_t lockGroup) |
This API provides the lock status of the specified group of lock registers. . More... | |
void | SPINLOCKModuleReset (uint32_t baseAddr) |
This API performs the module reset of the Spinlock module. It also waits until the reset process is complete. . More... | |
uint32_t | SPINLOCKLockStatusSet (uint32_t baseAddr, uint32_t lockNumber) |
This API performs the Read operation for Lock status of the SPINLOCK_LOCK_REG, in order to acquire a Spinlock. . More... | |
void | SPINLOCKLockStatusFree (uint32_t baseAddr, uint32_t lockNumber) |
This API performs the write operation for Lock status of the SPINLOCK_LOCK_REG, in order to Free the lock. If lockNumber is invalid (out of range), no operation is performed. Lock state : Write 0x0: Set the lock to Not Taken(Free). Write 0x1: No update to the lock value. . More... | |
uint32_t SPINLOCKRevision | ( | uint32_t | baseAddr | ) |
This API provides the SPINLOCK_REVISION of the SPINLOCK module.
.
baseAddr | Memory address of SPINLOCK module. |
uint32_t SPINLOCKGetNumLocks | ( | uint32_t | baseAddr | ) |
This API provides returns the number of locks supported.
.
baseAddr | Memory address of SPINLOCK module. |
uint32_t SPINLOCKSystatus | ( | uint32_t | baseAddr | ) |
This API provides the status of each bank of 32 locks that can be read from the SPINLOCK_SYSTATUS register.
.
baseAddr | Memory address of SPINLOCK module. |
uint32_t SPINLOCKSystatusIU0 | ( | uint32_t | baseAddr | ) |
This API provides the lock status of the Spinlock module.
.
baseAddr | Memory address of SPINLOCK module. |
uint32_t SPINLOCKSystatusIU | ( | uint32_t | baseAddr, |
uint32_t | lockGroup | ||
) |
This API provides the lock status of the specified group of lock registers.
.
baseAddr | Memory address of SPINLOCK module. |
lockGroup | The lock group. Each lock group contains 32 lock registers. Group 0 contains lock registers 0-31, group 1 contains lock registers 32-63, etc. There are a maximum of 8 lock groups. |
void SPINLOCKModuleReset | ( | uint32_t | baseAddr | ) |
This API performs the module reset of the Spinlock module. It also waits until the reset process is complete.
.
baseAddr | Memory address of SPINLOCK module. |
uint32_t SPINLOCKLockStatusSet | ( | uint32_t | baseAddr, |
uint32_t | lockNumber | ||
) |
This API performs the Read operation for Lock status of the SPINLOCK_LOCK_REG, in order to acquire a Spinlock.
.
baseAddr | Memory address of SPINLOCK module. |
lockNumber | Lock number in Spinlock module that should be acquired. |
void SPINLOCKLockStatusFree | ( | uint32_t | baseAddr, |
uint32_t | lockNumber | ||
) |
This API performs the write operation for Lock status of the SPINLOCK_LOCK_REG, in order to Free the lock.
If lockNumber is invalid (out of range), no operation is performed.
Lock state :
Write 0x0: Set the lock to Not Taken(Free).
Write 0x1: No update to the lock value.
.
baseAddr | Memory address of SPINLOCK module. |
lockNumber | Lock number in Spinlock module that should be released. |