1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - WVR - include
3   File:     wvr_common.h
4 
5   Copyright 2003-2008 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-09-18#$
14   $Rev: 8573 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 #ifndef NITRO_WVR_COMMON_WVR_COMMON_H_
18 #define NITRO_WVR_COMMON_WVR_COMMON_H_
19 
20 #ifdef  __cplusplus
21 extern "C" {
22 #endif
23 
24 /*===========================================================================*/
25 
26 // API processing results
27 typedef enum WVRResult
28 {
29     WVR_RESULT_SUCCESS = 0,            // Success
30     WVR_RESULT_OPERATING,              // Successful start of asynchronous process
31     WVR_RESULT_DISABLE,                // Component does not support WVR library
32     WVR_RESULT_INVALID_PARAM,          // Invalid parameter specified
33     WVR_RESULT_FIFO_ERROR,             // PXI request transmission to ARM7 has failed
34     WVR_RESULT_ILLEGAL_STATUS,         // Requests cannot be executed in this state
35     WVR_RESULT_VRAM_LOCKED,            // VRAM locked. Cannot use.
36     WVR_RESULT_FATAL_ERROR,            // Unexpected fatal error
37 
38     WVR_RESULT_MAX
39 }
40 WVRResult;
41 
42 // PXI Command
43 #define     WVR_PXI_COMMAND_STARTUP     0x00010000
44 #define     WVR_PXI_COMMAND_TERMINATE   0x00020000
45 
46 
47 /*===========================================================================*/
48 
49 #ifdef  __cplusplus
50 }       /* extern "C" */
51 #endif
52 
53 #endif /* NITRO_WVR_COMMON_WVR_COMMON_H_ */
54 
55 /*---------------------------------------------------------------------------*
56     End of file
57  *---------------------------------------------------------------------------*/
58