PDK API Guide for J721E
csl_spinlock.h
Go to the documentation of this file.
1 
39 #ifndef CSL_SPINLOCK_H_
40 #define CSL_SPINLOCK_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include <stdint.h>
47 #include <ti/csl/cslr_spinlock.h>
48 
64 #define CSL_SPINLOCK_ERROR_RETURN ((uint32_t)-1)
65 
80 extern uint32_t SPINLOCKRevision(uint32_t baseAddr);
81 
90 extern uint32_t SPINLOCKGetNumLocks(uint32_t baseAddr);
91 
104 extern uint32_t SPINLOCKSystatus(uint32_t baseAddr);
105 
119 extern uint32_t SPINLOCKSystatusIU0(uint32_t baseAddr);
120 
141 extern uint32_t SPINLOCKSystatusIU(uint32_t baseAddr, uint32_t lockGroup);
142 
152 extern void SPINLOCKModuleReset(uint32_t baseAddr);
153 
173 extern uint32_t SPINLOCKLockStatusSet(uint32_t baseAddr, uint32_t lockNumber);
174 
191 extern void SPINLOCKLockStatusFree(uint32_t baseAddr, uint32_t lockNumber);
192 
195 #ifdef __cplusplus
196 }
197 #endif
198 
199 #endif
uint32_t SPINLOCKGetNumLocks(uint32_t baseAddr)
This API provides returns the number of locks supported. .
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 ...
uint32_t SPINLOCKRevision(uint32_t baseAddr)
This API provides the SPINLOCK_REVISION of the 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 reg...
void SPINLOCKModuleReset(uint32_t baseAddr)
This API performs the module reset of the Spinlock module. It also waits until the reset process is c...
uint32_t SPINLOCKSystatusIU(uint32_t baseAddr, uint32_t lockGroup)
This API provides the lock status of the specified group of lock registers. .
uint32_t SPINLOCKSystatusIU0(uint32_t baseAddr)
This API provides the lock status of the Spinlock module. .
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 ...