pspsdk-1.0+beta2
pspintrman.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspintrman.h - Interface to the system interrupt manager.
7  *
8  * Copyright (c) 2005 James F. (tyranid@gmail.com)
9  * Copyright (c) 2005 Florin Sasu (...)
10  *
11  * $Id: pspintrman.h 2433 2008-10-15 10:00:27Z iwn $
12  */
13 
14 #ifndef PSPINTRMAN_H
15 #define PSPINTRMAN_H
16 
17 #include <pspkerneltypes.h>
18 
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 extern const char* PspInterruptNames[67];
31 
33 {
52  PSP_GE_INT = 25,
60 };
61 
63 {
70 };
71 
77 unsigned int sceKernelCpuSuspendIntr(void);
78 
84 void sceKernelCpuResumeIntr(unsigned int flags);
85 
91 void sceKernelCpuResumeIntrWithSync(unsigned int flags);
92 
100 int sceKernelIsCpuIntrSuspended(unsigned int flags);
101 
107 int sceKernelIsCpuIntrEnable(void);
108 
119 int sceKernelRegisterSubIntrHandler(int intno, int no, void *handler, void *arg);
120 
129 int sceKernelReleaseSubIntrHandler(int intno, int no);
130 
139 int sceKernelEnableSubIntr(int intno, int no);
140 
149 int sceKernelDisableSubIntr(int intno, int no);
150 
152  int size; //+00
153  u32 entry; //+04
154  u32 common; //+08
155  u32 gp; //+0C
156  u16 intr_code; //+10
157  u16 sub_count; //+12
159  u16 enabled; //+16
160  u32 calls; //+18
161  u32 field_1C; //+1C
169 
170 int QueryIntrHandlerInfo(SceUID intr_code, SceUID sub_intr_code, PspIntrHandlerOptionParam *data);
171 
172 #ifdef __cplusplus
173 }
174 #endif
175 
178 #endif /* PSPINTRMAN_H */