new USB_GetHIDDescriptor()
[libogc.git] / gc / ogc / ios.h
blobc308d0234543fe3c51389c9039786386ae49364c
1 /*-------------------------------------------------------------
3 ios.h -- IOS control
5 Copyright (C) 2008
6 Michael Wiedenbauer (shagkur)
7 Dave Murphy (WinterMute)
8 Hector Martin (marcan)
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.
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:
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.
23 2. Altered source versions must be plainly marked as such, and
24 must not be misrepresented as being the original software.
26 3. This notice may not be removed or altered from any source
27 distribution.
29 -------------------------------------------------------------*/
31 #ifndef __IOS_H__
32 #define __IOS_H__
34 #if defined(HW_RVL)
36 #include <gctypes.h>
37 #include <gcutil.h>
39 #define IOS_EINVAL -0x3004
40 #define IOS_EBADVERSION -0x3100
41 #define IOS_ETOOMANYVIEWS -0x3101
42 #define IOS_EMISMATCH -0x3102
44 #ifdef __cplusplus
45 extern "C" {
46 #endif /* __cplusplus */
48 s32 __IOS_InitializeSubsystems(void);
49 s32 __IOS_ShutdownSubsystems(void);
50 s32 __IOS_LoadStartupIOS(void);
51 s32 __IOS_LaunchNewIOS(int version);
52 s32 IOS_GetPreferredVersion(void);
53 s32 IOS_ReloadIOS(int version);
54 s32 IOS_GetVersion();
55 s32 IOS_GetRevision();
56 s32 IOS_GetRevisionMajor();
57 s32 IOS_GetRevisionMinor();
59 #ifdef __cplusplus
61 #endif /* __cplusplus */
63 #endif
65 #endif