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