VlanConfigNvData.h 967 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** @file
  2. Header file for NV data structure definition.
  3. Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __VLAN_CONFIG_NV_DATA_H__
  7. #define __VLAN_CONFIG_NV_DATA_H__
  8. #include <Guid/HiiPlatformSetupFormset.h>
  9. #include <Guid/VlanConfigHii.h>
  10. #define VLAN_CONFIGURATION_VARSTORE_ID 0x0001
  11. #define VLAN_CONFIGURATION_FORM_ID 0x0001
  12. #define VLAN_HEAD_FORM_ID 0x0002
  13. #define VLAN_ADD_QUESTION_ID 0x1000
  14. #define VLAN_REMOVE_QUESTION_ID 0x2000
  15. #define VLAN_UPDATE_QUESTION_ID 0x3000
  16. #define LABEL_VLAN_LIST 0x0001
  17. #define LABEL_END 0xffff
  18. //
  19. // The maximum number of VLAN that will be displayed on the menu
  20. //
  21. #define MAX_VLAN_NUMBER 100
  22. //
  23. // Nv Data structure referenced by IFR
  24. //
  25. typedef struct {
  26. UINT16 VlanId;
  27. UINT8 Priority;
  28. UINT8 VlanList[MAX_VLAN_NUMBER];
  29. } VLAN_CONFIGURATION;
  30. #endif