1 ///** @file 2 // VLAN configuration formset. 3 // 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 7 // of the BSD License which accompanies this distribution. The full 8 // text of the license may be found at<BR> 9 // http://opensource.org/licenses/bsd-license.php 10 // 11 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13 // 14 //**/ 15 16 #include "VlanConfigNvData.h" 17 18 formset 19 guid = VLAN_CONFIG_FORM_SET_GUID, 20 title = STRING_TOKEN(STR_VLAN_FORM_SET_TITLE), 21 help = STRING_TOKEN(STR_VLAN_FORM_SET_TITLE_HELP), 22 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID, 23 24 varstore VLAN_CONFIGURATION, 25 varid = VLAN_CONFIGURATION_VARSTORE_ID, 26 name = VlanNvData, 27 guid = VLAN_CONFIG_FORM_SET_GUID; 28 29 form formid = VLAN_HEAD_FORM_ID, 30 title = STRING_TOKEN(STR_VLAN_FORM_TITLE); 31 32 goto VLAN_CONFIGURATION_FORM_ID, 33 prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING), 34 help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP), 35 flags = INTERACTIVE, 36 key = VLAN_UPDATE_QUESTION_ID; 37 38 endform; 39 40 form formid = VLAN_CONFIGURATION_FORM_ID, 41 title = STRING_TOKEN(STR_VLAN_FORM_TITLE); 42 43 subtitle text = STRING_TOKEN(STR_VLAN_CREATE_VLAN); 44 45 numeric varid = VlanNvData.VlanId, 46 prompt = STRING_TOKEN(STR_VLAN_VID_PROMPT), 47 help = STRING_TOKEN(STR_VLAN_VID_HELP), 48 minimum = 0, 49 maximum = 4094, 50 endnumeric; 51 52 numeric varid = VlanNvData.Priority, 53 prompt = STRING_TOKEN(STR_VLAN_PRIORITY_PROMPT), 54 help = STRING_TOKEN(STR_VLAN_PRIORITY_HELP), 55 minimum = 0, 56 maximum = 7, 57 endnumeric; 58 59 text 60 help = STRING_TOKEN(STR_VLAN_ADD_VLAN_HELP), 61 text = STRING_TOKEN(STR_VLAN_ADD_VLAN_PROMPT), 62 flags = INTERACTIVE, 63 key = VLAN_ADD_QUESTION_ID; 64 65 subtitle text = STRING_TOKEN(STR_VLAN_NULL_STRING); 66 subtitle text = STRING_TOKEN(STR_VLAN_VLAN_LIST); 67 68 label LABEL_VLAN_LIST; 69 label LABEL_END; 70 71 text 72 help = STRING_TOKEN(STR_VLAN_REMOVE_VLAN_HELP), 73 text = STRING_TOKEN(STR_VLAN_REMOVE_VLAN_PROMPT), 74 flags = INTERACTIVE, 75 key = VLAN_REMOVE_QUESTION_ID; 76 77 endform; 78 79 endformset; 80