1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     ndm_Types.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  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   $Rev: 20462 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_NDM_CTR_TYPES_H_
17 #define NN_NDM_CTR_TYPES_H_
18 
19 #include <nn/types.h>
20 
21 #ifdef __cplusplus
22 
23 namespace nn {
24 namespace ndm {
25 namespace CTR {
26 
27 enum ExclusiveMode
28 {
29     EM_NONE,
30     EM_INFRA,
31     EM_LOCAL,
32     EM_CEC
33 };
34 
35 enum CommunicationMode
36 {
37     CM_LOCAL,
38     CM_CEC,
39     CM_INFRA
40 };
41 
42 enum DaemonName
43 {
44     DN_CEC,
45     DN_BOSS,
46     DN_NIM,
47     DN_FRIENDS,
48     NUM_OF_DAEMONS
49 };
50 
51 enum DaemonMask
52 {
53     DM_CEC      = 1 << DN_CEC,
54     DM_BOSS     = 1 << DN_BOSS,
55     DM_NIM      = 1 << DN_NIM,
56     DM_FRIENDS  = 1 << DN_FRIENDS
57 };
58 
59 const bit32 MASK_BACKGROUOND_DAEMONS    = DM_CEC | DM_BOSS | DM_NIM;
60 const bit32 MASK_ALL_DAEMONS            = DM_CEC | DM_BOSS | DM_NIM | DM_FRIENDS;
61 
62 } // namespace CTR
63 
64 using namespace CTR;
65 
66 const bit32 CONTROL_MASK_DEFAULT    = MASK_BACKGROUOND_DAEMONS;
67 const bit32 CONTROL_MASK_ALL        = MASK_ALL_DAEMONS;
68 
69 }
70 }
71 
72 #endif // __cplusplus
73 
74 #endif // NN_NDM_CTR_TYPES_H_
75