]>
Commit | Line | Data |
---|---|---|
0c18794e | 1 | /** @file\r |
2 | The form data for user profile manager driver.\r | |
3 | \r | |
a0c56a82 | 4 | Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r |
0c18794e | 5 | This program and the accompanying materials \r |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __USER_PROFILE_MANAGER_DATA_H__\r | |
16 | #define __USER_PROFILE_MANAGER_DATA_H__\r | |
17 | \r | |
a0c56a82 | 18 | #include <Guid/UserProfileManagerHii.h>\r |
0c18794e | 19 | \r |
20 | //\r | |
21 | // Form ID\r | |
22 | //\r | |
23 | #define FORMID_USER_MANAGE 0x0001\r | |
24 | #define FORMID_MODIFY_USER 0x0002\r | |
25 | #define FORMID_DEL_USER 0x0003\r | |
26 | #define FORMID_USER_INFO 0x0004\r | |
27 | #define FORMID_MODIFY_IP 0x0005\r | |
28 | #define FORMID_MODIFY_AP 0x0006\r | |
29 | #define FORMID_LOAD_DP 0x0007\r | |
30 | #define FORMID_CONNECT_DP 0x0008\r | |
31 | #define FORMID_PERMIT_LOAD_DP 0x0009\r | |
32 | #define FORMID_FORBID_LOAD_DP 0x000A\r | |
33 | #define FORMID_PERMIT_CONNECT_DP 0x000B\r | |
34 | #define FORMID_FORBID_CONNECT_DP 0x000C\r | |
35 | \r | |
36 | //\r | |
37 | // Label ID\r | |
38 | //\r | |
39 | #define LABEL_USER_MANAGE_FUNC 0x0010\r | |
40 | #define LABEL_USER_DEL_FUNC 0x0020\r | |
41 | #define LABEL_USER_MOD_FUNC 0x0030\r | |
42 | #define LABEL_USER_INFO_FUNC 0x0040\r | |
43 | #define LABEL_IP_MOD_FUNC 0x0050\r | |
44 | #define LABEL_AP_MOD_FUNC 0x0060\r | |
45 | #define LABEL_PERMIT_LOAD_FUNC 0x0070\r | |
46 | #define LABLE_FORBID_LOAD_FUNC 0x0080\r | |
47 | #define LABEL_END 0x00F0\r | |
48 | \r | |
49 | //\r | |
50 | // First form key (Add/modify/del user profile). \r | |
51 | // First 2 bits (bit 16~15).\r | |
52 | //\r | |
53 | #define KEY_MODIFY_USER 0x4000\r | |
54 | #define KEY_DEL_USER 0x8000\r | |
55 | #define KEY_ADD_USER 0xC000\r | |
56 | #define KEY_FIRST_FORM_MASK 0xC000\r | |
57 | \r | |
58 | //\r | |
59 | // Second form key (Display new form /Select user / modify device path in access policy).\r | |
60 | // Next 2 bits (bit 14~13).\r | |
61 | //\r | |
62 | #define KEY_ENTER_NEXT_FORM 0x0000\r | |
63 | #define KEY_SELECT_USER 0x1000\r | |
64 | #define KEY_MODIFY_AP_DP 0x2000\r | |
65 | #define KEY_OPEN_CLOSE_FORM_ACTION 0x3000\r | |
66 | #define KEY_SECOND_FORM_MASK 0x3000\r | |
67 | \r | |
68 | //\r | |
69 | // User profile information form key.\r | |
70 | // Next 3 bits (bit 12~10).\r | |
71 | //\r | |
72 | #define KEY_MODIFY_NAME 0x0200\r | |
73 | #define KEY_MODIFY_IP 0x0400\r | |
74 | #define KEY_MODIFY_AP 0x0600\r | |
75 | #define KEY_MODIFY_INFO_MASK 0x0E00\r | |
76 | \r | |
77 | //\r | |
78 | // Specified key, used in VFR (KEY_MODIFY_USER | KEY_SELECT_USER | KEY_MODIFY_NAME).\r | |
79 | //\r | |
80 | #define KEY_MODIFY_USER_NAME 0x5200 \r | |
81 | \r | |
82 | //\r | |
83 | // Modify identity policy form key.\r | |
84 | // Next 3 bits (bit 9~7).\r | |
85 | //\r | |
86 | #define KEY_MODIFY_PROV 0x0040\r | |
87 | #define KEY_MODIFY_MTYPE 0x0080\r | |
88 | #define KEY_MODIFY_CONN 0x00C0\r | |
89 | #define KEY_ADD_IP_OP 0x0100\r | |
90 | #define KEY_IP_RETURN_UIF 0x0140\r | |
91 | #define KEY_MODIFY_IP_MASK 0x01C0\r | |
92 | \r | |
93 | //\r | |
94 | // Specified key.\r | |
95 | //\r | |
96 | #define KEY_ADD_LOGICAL_OP 0x5500\r | |
97 | #define KEY_IP_RETURN 0x5540\r | |
98 | \r | |
99 | //\r | |
100 | // Modify access policy form key.\r | |
101 | // Next 3 bits (bit 9~7).\r | |
102 | //\r | |
103 | #define KEY_MODIFY_RIGHT 0x0040\r | |
104 | #define KEY_MODIFY_SETUP 0x0080\r | |
105 | #define KEY_MODIFY_BOOT 0x00C0\r | |
106 | #define KEY_MODIFY_LOAD 0x0100\r | |
107 | #define KEY_MODIFY_CONNECT 0x0140\r | |
108 | #define KEY_AP_RETURN_UIF 0x0180\r | |
109 | #define KEY_MODIFY_AP_MASK 0x01C0\r | |
110 | \r | |
111 | //\r | |
112 | // Specified key.\r | |
113 | //\r | |
114 | #define KEY_LOAD_DP 0x5700\r | |
115 | #define KEY_CONN_DP 0x5740\r | |
116 | #define KEY_AP_RETURN 0x5780\r | |
117 | \r | |
118 | //\r | |
119 | // Device path form key.\r | |
120 | // Next 2 bits (bit 6~5).\r | |
121 | //\r | |
122 | #define KEY_PERMIT_MODIFY 0x0010\r | |
123 | #define KEY_FORBID_MODIFY 0x0020\r | |
124 | #define KEY_DISPLAY_DP_MASK 0x0030\r | |
125 | \r | |
126 | //\r | |
127 | // Specified key.\r | |
128 | //\r | |
129 | #define KEY_LOAD_PERMIT 0x5710\r | |
130 | #define KEY_LOAD_FORBID 0x5720\r | |
131 | #define KEY_CONNECT_PERMIT 0x5750\r | |
132 | #define KEY_CONNECT_FORBID 0x5760\r | |
133 | \r | |
134 | //\r | |
135 | // Device path modify key.\r | |
136 | // 2 bits (bit 12~11).\r | |
137 | // \r | |
138 | #define KEY_LOAD_PERMIT_MODIFY 0x0000\r | |
139 | #define KEY_LOAD_FORBID_MODIFY 0x0400\r | |
140 | #define KEY_CONNECT_PERMIT_MODIFY 0x0800\r | |
141 | #define KEY_CONNECT_FORBID_MODIFY 0x0C00\r | |
142 | #define KEY_MODIFY_DP_MASK 0x0C00\r | |
143 | \r | |
144 | \r | |
145 | //\r | |
146 | // The permissions usable when configuring the platform.\r | |
147 | //\r | |
148 | #define ACCESS_SETUP_RESTRICTED 1\r | |
149 | #define ACCESS_SETUP_NORMAL 2\r | |
150 | #define ACCESS_SETUP_ADMIN 3\r | |
151 | \r | |
152 | //\r | |
153 | // Question ID for the question used in each form (KEY_OPEN_CLOSE_FORM_ACTION | FORMID_FORM_USER_MANAGE)\r | |
154 | // This ID is used in FORM OPEN/CLOSE CallBack action.\r | |
155 | //\r | |
156 | #define QUESTIONID_USER_MANAGE 0x3001\r | |
157 | \r | |
158 | #endif\r |