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