///** @file\r
// VLAN configuration formset.\r
//\r
-// Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
// This program and the accompanying materials\r
// are licensed and made available under the terms and conditions\r
// of the BSD License which accompanies this distribution. The full\r
name = VlanNvData,\r
guid = VLAN_CONFIG_PRIVATE_GUID;\r
\r
+ form formid = VLAN_HEAD_FORM_ID,\r
+ title = STRING_TOKEN(STR_VLAN_FORM_TITLE);\r
+\r
+ goto VLAN_CONFIGURATION_FORM_ID,\r
+ prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),\r
+ help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),\r
+ flags = INTERACTIVE,\r
+ key = VLAN_UPDATE_QUESTION_ID;\r
+\r
+ endform;\r
+\r
form formid = VLAN_CONFIGURATION_FORM_ID,\r
title = STRING_TOKEN(STR_VLAN_FORM_TITLE);\r
\r
\r
PrivateData = VLAN_CONFIG_PRIVATE_DATA_FROM_THIS (This);\r
\r
- if (Action == EFI_BROWSER_ACTION_FORM_OPEN) {\r
- if (QuestionId == VLAN_ADD_QUESTION_ID) {\r
- //\r
- // Update current VLAN list into Form when Form is opened.\r
- // This will be done only in FORM_OPEN CallBack of question with VLAN_ADD_QUESTION_ID.\r
- //\r
- VlanUpdateForm (PrivateData);\r
- }\r
- return EFI_SUCCESS;\r
- }\r
-\r
- if (Action == EFI_BROWSER_ACTION_FORM_CLOSE) {\r
- //\r
- // Do nothing for UEFI FORM_CLOSE action\r
- //\r
+ if ((Action == EFI_BROWSER_ACTION_FORM_OPEN) || (Action == EFI_BROWSER_ACTION_FORM_CLOSE)) {\r
return EFI_SUCCESS;\r
}\r
\r
ZeroMem (Configuration->VlanList, MAX_VLAN_NUMBER);\r
break;\r
\r
+ case VLAN_UPDATE_QUESTION_ID:\r
+ //\r
+ // Update current VLAN list into Form.\r
+ //\r
+ VlanUpdateForm (PrivateData);\r
+ break;\r
+\r
default:\r
break;\r
}\r
/** @file\r
Header file for NV data structure definition.\r
\r
-Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
of the BSD License which accompanies this distribution. The full\r
\r
#define VLAN_CONFIGURATION_VARSTORE_ID 0x0001\r
#define VLAN_CONFIGURATION_FORM_ID 0x0001\r
+#define VLAN_HEAD_FORM_ID 0x0002\r
\r
#define VLAN_ADD_QUESTION_ID 0x1000\r
#define VLAN_REMOVE_QUESTION_ID 0x2000\r
+#define VLAN_UPDATE_QUESTION_ID 0x3000\r
\r
#define LABEL_VLAN_LIST 0x0001\r
#define LABEL_END 0xffff\r