| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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
intrinfo
Definition: tee_interrupt.h:22
time.h
Time header.
TEES_AllocateInterrupt
TEE_Result TEES_AllocateInterrupt(int nr, intruhandler handler, TEES_InterruptHandle *handle)
This function is used to allocate interrupt and register user handler.
TEES_GenerateInterrupt
TEE_Result TEES_GenerateInterrupt(TEES_InterruptHandle handle)
This function is used to generate interrupt.
TEES_InterruptHandle
struct __TEES_InterruptHandle * TEES_InterruptHandle
Definition: tee_interrupt.h:18
TEES_CompleteInterrupt
TEE_Result TEES_CompleteInterrupt(TEES_InterruptHandle handle)
This function is used to notify about interrupt arrival.
TEES_WaitForInterrupt
TEE_Result TEES_WaitForInterrupt(TEES_InterruptHandle handle, uint32_t timeout)
This function is used to wait for interrupt.
TEES_ReleaseInterrupt
TEE_Result TEES_ReleaseInterrupt(TEES_InterruptHandle handle)
This function is used to release interrupt.
intruhandler
void(* intruhandler)(struct intrinfo *)
Definition: tee_interrupt.h:29