1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     cfg_UserInfo.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: 35572 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_CFG_CTR_CFG_USER_INFO_H_
17 #define NN_CFG_CTR_CFG_USER_INFO_H_
18 
19 #include <nn/fnd.h>
20 
21 namespace nn {
22 namespace cfg {
23 namespace CTR {
24 
25 /*---------------------------------------------------------------------------*
26  * User information
27  *---------------------------------------------------------------------------*/
28 /* Please see man pages for details
29 
30 */
31 const u8 CFG_USER_NAME_LENGTH               = 11;
32 
33 /* Please see man pages for details
34 
35 
36 
37 */
38 struct UserName
39 {
40     wchar_t userName[CFG_USER_NAME_LENGTH]; //
41     bool isNgUserName;                      //
42     NN_PADDING1;
43 };
44 
45 /* Please see man pages for details
46 
47 */
48 struct Birthday
49 {
50     s8  month;  //
51     s8  day;    //
52 };
53 
54 
55 /*---------------------------------------------------------------------------*
56  *  Simple address information
57  *---------------------------------------------------------------------------*/
58 /* Please see man pages for details
59 
60 */
61 const u8    CFG_SIMPLE_ADDRESS_ID_COUNTRY_SHIFT         = 24;
62 /* Please see man pages for details
63 
64 */
65 const u8    CFG_SIMPLE_ADDRESS_ID_REGION_SHIFT          = 16;
66 /* Please see man pages for details
67 
68 */
69 const u32   CFG_SIMPLE_ADDRESS_ID_COUNTRY_MASK          = 0xffU << CFG_SIMPLE_ADDRESS_ID_COUNTRY_SHIFT;
70 /* Please see man pages for details
71 
72 */
73 const u32   CFG_SIMPLE_ADDRESS_ID_REGION_MASK           = 0xffU << CFG_SIMPLE_ADDRESS_ID_REGION_SHIFT;
74 /* Please see man pages for details
75 
76 */
77 const u32   CFG_SIMPLE_ADDRESS_ID_RESERVED_MASK         = 0x0000ffff;
78 
79 /* Please see man pages for details
80 
81 */
82 const u32   CFG_SIMPLE_ADDRESS_ID_NOT_DEFINED           = 0xffffffff;
83 /* Please see man pages for details
84 
85 */
86 const u32   CFG_SIMPLE_ADDRESS_ID_COUNTRY_UNDEFINED     = 0x00U << CFG_SIMPLE_ADDRESS_ID_COUNTRY_SHIFT;
87 /* Please see man pages for details
88 
89 */
90 const u32    CFG_SIMPLE_ADDRESS_ID_COUNTRY_UNDEFINED2   = 0xffU << CFG_SIMPLE_ADDRESS_ID_COUNTRY_SHIFT;
91 /* Please see man pages for details
92 
93 */
94 const u32    CFG_SIMPLE_ADDRESS_ID_REGION_UNDEFINED     = 0x00U << CFG_SIMPLE_ADDRESS_ID_REGION_SHIFT;
95 /* Please see man pages for details
96 
97 */
98 const u32    CFG_SIMPLE_ADDRESS_ID_REGION_UNDEFINED2    = 0xffU << CFG_SIMPLE_ADDRESS_ID_REGION_SHIFT;
99 
100 /* Please see man pages for details
101 
102 */
103 const u8 CFG_SIMPLE_ADDRESS_NUM_LANGUAGES   = 16;
104 /* Please see man pages for details
105 
106 */
107 const u8 CFG_SIMPLE_ADDRESS_NAME_LENGTH     = 64;
108 
109 /* Please see man pages for details
110 
111 
112 
113 
114 
115 
116 */
117 struct SimpleAddress
118 {
119     u32 id;                                                                                 //
120     wchar_t countryName[CFG_SIMPLE_ADDRESS_NUM_LANGUAGES][CFG_SIMPLE_ADDRESS_NAME_LENGTH];  //
121     wchar_t regionName [CFG_SIMPLE_ADDRESS_NUM_LANGUAGES][CFG_SIMPLE_ADDRESS_NAME_LENGTH];  //
122     u16 latitude;                                                                           //
123     u16 longitude;                                                                          //
124 };
125 
126 } // end of namespace CTR
127 } // end of namespace cfg
128 } // end of namespace nn
129 
130 #endif      // NN_CFG_CTR_CFG_USER_INFO_H_
131