Samsung Internal API reference  2.0
tee_interrupt.h
Go to the documentation of this file.
1 
9 #ifndef _TEE_INTERRUPT_H_
10 #define _TEE_INTERRUPT_H_
11 
12 #include <time.h>
13 #include <tee_internal_api.h>
14 #include <driver/interrupt/interrupt.h>
15 
18 typedef struct __TEES_InterruptHandle *TEES_InterruptHandle;
19 
22 struct intrinfo {
23  unsigned int nr;
24  unsigned int cpu;
25 };
26 
29 typedef void (*intruhandler)(struct intrinfo *);
30 
72 DSO_EXPORT TEE_Result TEES_AllocateInterrupt(int nr, intruhandler handler, TEES_InterruptHandle *handle);
73 
93 DSO_EXPORT TEE_Result TEES_ReleaseInterrupt(TEES_InterruptHandle handle);
94 
138 DSO_EXPORT TEE_Result TEES_GenerateInterrupt(TEES_InterruptHandle handle);
139 
186 DSO_EXPORT TEE_Result TEES_WaitForInterrupt(TEES_InterruptHandle handle, uint32_t timeout);
187 
233 DSO_EXPORT TEE_Result TEES_CompleteInterrupt(TEES_InterruptHandle handle);
234 
235 #endif /* _TEE_INTERRUPT_H_ */
236 
Definition: tee_interrupt.h:22
Time header.
TEE_Result TEES_AllocateInterrupt(int nr, intruhandler handler, TEES_InterruptHandle *handle)
This function is used to allocate interrupt and register user handler.
TEE_Result TEES_GenerateInterrupt(TEES_InterruptHandle handle)
This function is used to generate interrupt.
struct __TEES_InterruptHandle * TEES_InterruptHandle
Definition: tee_interrupt.h:18
TEE_Result TEES_CompleteInterrupt(TEES_InterruptHandle handle)
This function is used to notify about interrupt arrival.
TEE_Result TEES_WaitForInterrupt(TEES_InterruptHandle handle, uint32_t timeout)
This function is used to wait for interrupt.
TEE_Result TEES_ReleaseInterrupt(TEES_InterruptHandle handle)
This function is used to release interrupt.
void(* intruhandler)(struct intrinfo *)
Definition: tee_interrupt.h:29