RetroArch
wii
libogc
include
ogc
stm.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------
2
3
stm.h - System and miscellaneous hardware control functions
4
5
Copyright (C) 2008
6
Michael Wiedenbauer (shagkur)
7
Dave Murphy (WinterMute)
8
Hector Martin (marcan)
9
10
This software is provided 'as-is', without any express or implied
11
warranty. In no event will the authors be held liable for any
12
damages arising from the use of this software.
13
14
Permission is granted to anyone to use this software for any
15
purpose, including commercial applications, and to alter it and
16
redistribute it freely, subject to the following restrictions:
17
18
1. The origin of this software must not be misrepresented; you
19
must not claim that you wrote the original software. If you use
20
this software in a product, an acknowledgment in the product
21
documentation would be appreciated but is not required.
22
23
2. Altered source versions must be plainly marked as such, and
24
must not be misrepresented as being the original software.
25
26
3. This notice may not be removed or altered from any source
27
distribution.
28
29
-------------------------------------------------------------*/
30
31
#ifndef __STM_H__
32
#define __STM_H__
33
34
#if defined(HW_RVL)
35
36
#include <
gctypes.h
>
37
#include <
gcutil.h
>
38
39
#define STM_EVENT_RESET 0x00020000
40
#define STM_EVENT_POWER 0x00000800
41
42
#define STM_EINVAL -0x2004
43
#define STM_ENOTINIT -0x2100
44
#define STM_ENOHANDLER -0x2101
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
/* __cplusplus */
49
50
typedef
void
(*stmcallback)(
u32
event
);
51
52
s32
__STM_Init();
53
s32
__STM_Close();
54
s32
STM_ShutdownToStandby();
55
s32
STM_ShutdownToIdle();
56
s32
STM_SetLedMode(
u32
mode
);
57
s32
STM_RebootSystem();
58
stmcallback STM_RegisterEventHandler(stmcallback newhandler);
59
60
#ifdef __cplusplus
61
}
62
#endif
/* __cplusplus */
63
64
#endif
/* defined(HW_RVL) */
65
66
#endif
s32
int32_t s32
32bit signed integer
Definition:
gctypes.h:24
mode
GLenum mode
Definition:
glext.h:6857
gctypes.h
Data type definitions.
gcutil.h
void
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
event
struct _cl_event * event
Definition:
glext.h:8406
u32
uint32_t u32
32bit unsigned integer
Definition:
gctypes.h:19
Generated by
1.8.15