pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
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
32
enum
PspInterrupts
33
{
34
PSP_GPIO_INT
= 4,
35
PSP_ATA_INT
= 5,
36
PSP_UMD_INT
= 6,
37
PSP_MSCM0_INT
= 7,
38
PSP_WLAN_INT
= 8,
39
PSP_AUDIO_INT
= 10,
40
PSP_I2C_INT
= 12,
41
PSP_SIRCS_INT
= 14,
42
PSP_SYSTIMER0_INT
= 15,
43
PSP_SYSTIMER1_INT
= 16,
44
PSP_SYSTIMER2_INT
= 17,
45
PSP_SYSTIMER3_INT
= 18,
46
PSP_THREAD0_INT
= 19,
47
PSP_NAND_INT
= 20,
48
PSP_DMACPLUS_INT
= 21,
49
PSP_DMA0_INT
= 22,
50
PSP_DMA1_INT
= 23,
51
PSP_MEMLMD_INT
= 24,
52
PSP_GE_INT
= 25,
53
PSP_VBLANK_INT
= 30,
54
PSP_MECODEC_INT
= 31,
55
PSP_HPREMOTE_INT
= 36,
56
PSP_MSCM1_INT
= 60,
57
PSP_MSCM2_INT
= 61,
58
PSP_THREAD1_INT
= 65,
59
PSP_INTERRUPT_INT
= 66
60
};
61
62
enum
PspSubInterrupts
63
{
64
PSP_GPIO_SUBINT
=
PSP_GPIO_INT
,
65
PSP_ATA_SUBINT
=
PSP_ATA_INT
,
66
PSP_UMD_SUBINT
=
PSP_UMD_INT
,
67
PSP_DMACPLUS_SUBINT
=
PSP_DMACPLUS_INT
,
68
PSP_GE_SUBINT
=
PSP_GE_INT
,
69
PSP_DISPLAY_SUBINT
=
PSP_VBLANK_INT
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
151
typedef
struct
tag_IntrHandlerOptionParam
{
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
158
u16
intr_level
;
//+14
159
u16
enabled
;
//+16
160
u32
calls
;
//+18
161
u32
field_1C
;
//+1C
162
u32
total_clock_lo
;
//+20
163
u32
total_clock_hi
;
//+24
164
u32
min_clock_lo
;
//+28
165
u32
min_clock_hi
;
//+2C
166
u32
max_clock_lo
;
//+30
167
u32
max_clock_hi
;
//+34
168
}
PspIntrHandlerOptionParam
;
//=38
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 */
src
user
pspintrman.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2