2009-12-30 14:47:55 +01:00
|
|
|
/** @file
|
|
|
|
Header file for NV data structure definition.
|
|
|
|
|
2011-08-24 12:53:54 +02:00
|
|
|
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2009-12-30 14:47:55 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __VLAN_CONFIG_NV_DATA_H__
|
|
|
|
#define __VLAN_CONFIG_NV_DATA_H__
|
|
|
|
|
|
|
|
#include <Guid/HiiPlatformSetupFormset.h>
|
2011-09-18 14:21:01 +02:00
|
|
|
#include <Guid/VlanConfigHii.h>
|
2009-12-30 14:47:55 +01:00
|
|
|
|
|
|
|
#define VLAN_CONFIGURATION_VARSTORE_ID 0x0001
|
|
|
|
#define VLAN_CONFIGURATION_FORM_ID 0x0001
|
2011-08-24 12:53:54 +02:00
|
|
|
#define VLAN_HEAD_FORM_ID 0x0002
|
2009-12-30 14:47:55 +01:00
|
|
|
|
2021-12-05 23:54:07 +01:00
|
|
|
#define VLAN_ADD_QUESTION_ID 0x1000
|
|
|
|
#define VLAN_REMOVE_QUESTION_ID 0x2000
|
|
|
|
#define VLAN_UPDATE_QUESTION_ID 0x3000
|
2009-12-30 14:47:55 +01:00
|
|
|
|
2021-12-05 23:54:07 +01:00
|
|
|
#define LABEL_VLAN_LIST 0x0001
|
|
|
|
#define LABEL_END 0xffff
|
2009-12-30 14:47:55 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// The maximum number of VLAN that will be displayed on the menu
|
|
|
|
//
|
2021-12-05 23:54:07 +01:00
|
|
|
#define MAX_VLAN_NUMBER 100
|
2009-12-30 14:47:55 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Nv Data structure referenced by IFR
|
|
|
|
//
|
|
|
|
typedef struct {
|
2021-12-05 23:54:07 +01:00
|
|
|
UINT16 VlanId;
|
|
|
|
UINT8 Priority;
|
|
|
|
UINT8 VlanList[MAX_VLAN_NUMBER];
|
2009-12-30 14:47:55 +01:00
|
|
|
} VLAN_CONFIGURATION;
|
|
|
|
|
|
|
|
#endif
|