]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerData.h
Add security package to repository.
[mirror_edk2.git] / SecurityPkg / UserIdentification / UserProfileManagerDxe / UserProfileManagerData.h
diff --git a/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerData.h b/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerData.h
new file mode 100644 (file)
index 0000000..58b6cb8
--- /dev/null
@@ -0,0 +1,161 @@
+/** @file\r
+  The form data for user profile manager driver.\r
+    \r
+Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials \r
+are licensed and made available under the terms and conditions of the BSD License \r
+which accompanies this distribution.  The full text of the license may be found at \r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __USER_PROFILE_MANAGER_DATA_H__\r
+#define __USER_PROFILE_MANAGER_DATA_H__\r
+\r
+#define USER_PROFILE_MANAGER_GUID \\r
+  { \\r
+    0xc35f272c, 0x97c2, 0x465a, { 0xa2, 0x16, 0x69, 0x6b, 0x66, 0x8a, 0x8c, 0xfe } \\r
+  }\r
+\r
+//\r
+// Form ID\r
+//\r
+#define FORMID_USER_MANAGE          0x0001\r
+#define FORMID_MODIFY_USER          0x0002\r
+#define FORMID_DEL_USER             0x0003\r
+#define FORMID_USER_INFO            0x0004\r
+#define FORMID_MODIFY_IP            0x0005\r
+#define FORMID_MODIFY_AP            0x0006\r
+#define FORMID_LOAD_DP              0x0007\r
+#define FORMID_CONNECT_DP           0x0008\r
+#define FORMID_PERMIT_LOAD_DP       0x0009\r
+#define FORMID_FORBID_LOAD_DP       0x000A\r
+#define FORMID_PERMIT_CONNECT_DP    0x000B\r
+#define FORMID_FORBID_CONNECT_DP    0x000C\r
+\r
+//\r
+// Label ID\r
+//\r
+#define  LABEL_USER_MANAGE_FUNC     0x0010\r
+#define  LABEL_USER_DEL_FUNC        0x0020\r
+#define  LABEL_USER_MOD_FUNC        0x0030\r
+#define  LABEL_USER_INFO_FUNC       0x0040\r
+#define  LABEL_IP_MOD_FUNC          0x0050\r
+#define  LABEL_AP_MOD_FUNC          0x0060\r
+#define  LABEL_PERMIT_LOAD_FUNC     0x0070\r
+#define  LABLE_FORBID_LOAD_FUNC     0x0080\r
+#define  LABEL_END                  0x00F0\r
+\r
+//\r
+// First form key (Add/modify/del user profile). \r
+// First 2 bits (bit 16~15).\r
+//\r
+#define  KEY_MODIFY_USER            0x4000\r
+#define  KEY_DEL_USER               0x8000\r
+#define  KEY_ADD_USER               0xC000\r
+#define  KEY_FIRST_FORM_MASK        0xC000\r
+\r
+//\r
+// Second form key (Display new form /Select user / modify device path in access policy).\r
+// Next 2 bits (bit 14~13).\r
+//\r
+#define  KEY_ENTER_NEXT_FORM        0x0000\r
+#define  KEY_SELECT_USER            0x1000\r
+#define  KEY_MODIFY_AP_DP           0x2000\r
+#define  KEY_OPEN_CLOSE_FORM_ACTION 0x3000\r
+#define  KEY_SECOND_FORM_MASK       0x3000\r
+\r
+//\r
+// User profile information form key.\r
+// Next 3 bits (bit 12~10).\r
+//\r
+#define  KEY_MODIFY_NAME            0x0200\r
+#define  KEY_MODIFY_IP              0x0400\r
+#define  KEY_MODIFY_AP              0x0600\r
+#define  KEY_MODIFY_INFO_MASK       0x0E00\r
+\r
+//\r
+// Specified key, used in VFR (KEY_MODIFY_USER | KEY_SELECT_USER | KEY_MODIFY_NAME).\r
+//\r
+#define  KEY_MODIFY_USER_NAME       0x5200 \r
+\r
+//\r
+// Modify identity policy form key.\r
+// Next 3 bits (bit 9~7).\r
+//\r
+#define  KEY_MODIFY_PROV            0x0040\r
+#define  KEY_MODIFY_MTYPE           0x0080\r
+#define  KEY_MODIFY_CONN            0x00C0\r
+#define  KEY_ADD_IP_OP              0x0100\r
+#define  KEY_IP_RETURN_UIF          0x0140\r
+#define  KEY_MODIFY_IP_MASK         0x01C0\r
+\r
+//\r
+// Specified key.\r
+//\r
+#define  KEY_ADD_LOGICAL_OP         0x5500\r
+#define  KEY_IP_RETURN              0x5540\r
+\r
+//\r
+// Modify access policy form key.\r
+// Next 3 bits (bit 9~7).\r
+//\r
+#define  KEY_MODIFY_RIGHT           0x0040\r
+#define  KEY_MODIFY_SETUP           0x0080\r
+#define  KEY_MODIFY_BOOT            0x00C0\r
+#define  KEY_MODIFY_LOAD            0x0100\r
+#define  KEY_MODIFY_CONNECT         0x0140\r
+#define  KEY_AP_RETURN_UIF          0x0180\r
+#define  KEY_MODIFY_AP_MASK         0x01C0\r
+\r
+//\r
+// Specified key.\r
+//\r
+#define  KEY_LOAD_DP                0x5700\r
+#define  KEY_CONN_DP                0x5740\r
+#define  KEY_AP_RETURN              0x5780\r
+\r
+//\r
+// Device path form key.\r
+// Next 2 bits (bit 6~5).\r
+//\r
+#define  KEY_PERMIT_MODIFY          0x0010\r
+#define  KEY_FORBID_MODIFY          0x0020\r
+#define  KEY_DISPLAY_DP_MASK        0x0030\r
+\r
+//\r
+// Specified key.\r
+//\r
+#define  KEY_LOAD_PERMIT            0x5710\r
+#define  KEY_LOAD_FORBID            0x5720\r
+#define  KEY_CONNECT_PERMIT         0x5750\r
+#define  KEY_CONNECT_FORBID         0x5760\r
+\r
+//\r
+// Device path modify key.\r
+// 2 bits (bit 12~11).\r
+// \r
+#define KEY_LOAD_PERMIT_MODIFY      0x0000\r
+#define KEY_LOAD_FORBID_MODIFY      0x0400\r
+#define KEY_CONNECT_PERMIT_MODIFY   0x0800\r
+#define KEY_CONNECT_FORBID_MODIFY   0x0C00\r
+#define KEY_MODIFY_DP_MASK          0x0C00\r
+\r
+\r
+//\r
+// The permissions usable when configuring the platform.\r
+//\r
+#define  ACCESS_SETUP_RESTRICTED   1\r
+#define  ACCESS_SETUP_NORMAL       2\r
+#define  ACCESS_SETUP_ADMIN        3\r
+\r
+//\r
+// Question ID for the question used in each form (KEY_OPEN_CLOSE_FORM_ACTION | FORMID_FORM_USER_MANAGE)\r
+// This ID is used in FORM OPEN/CLOSE CallBack action.\r
+//\r
+#define QUESTIONID_USER_MANAGE      0x3001\r
+\r
+#endif\r