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