text: /*****************************************************************
   *
   * DO NOT EDIT THIS FILE!
   * This file is auto-generated by xfc_map_parser
   * from the NPL output file(s) header.yml
   * for device bcm56880_a0 and variant dna_4_6_6.
   * Edits to this file will be lost when it is regenerated.
   *
   * 
   * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
   * 
   * Copyright 2007-2020 Broadcom Inc. All rights reserved.
   * All Rights Reserved.$
   *
   * Tool Path: $SDK/INTERNAL/fltg/xfc_map_parser
   */
  
  #include <sal/sal_types.h>
  #include <shr/shr_error.h>
  #include <bsl/bsl.h>
  #include <bcmpkt/flexhdr/bcmpkt_vxlan_t.h>
  #include <bcmpkt/flexhdr/bcmpkt_vxlan_t_internal.h>
  
  #define MASK(_bn) (((uint32_t)0x1<<(_bn))-1)
  #define WORD_FIELD_GET(_d,_s,_l) (((_d) >> (_s)) & MASK(_l))
  #define WORD_FIELD_SET(_d,_s,_l,_v) (_d)=(((_d) & ~(MASK(_l) << (_s))) | (((_v) & MASK(_l)) << (_s)))
  #define WORD_FIELD_MASK(_d,_s,_l) (_d)=((_d) | (MASK(_l) << (_s)))
  
  static uint32_t bcmpkt_vxlan_t_flags_reserved_1_get(uint32_t *data) {
      uint32_t val;
  
      val = SHR_E_PARAM;
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Get field BCMPKT_VXLAN_T_FLAGS_RESERVED_1 with value %u on device BCM56880_A0_DNA_4_6_6\n"), val));
  
      return val;
  }
  
  static void bcmpkt_vxlan_t_flags_reserved_1_set(uint32_t *data, uint32_t val) {
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Set field BCMPKT_VXLAN_T_FLAGS_RESERVED_1 with value %u on device BCM56880_A0_DNA_4_6_6\n"), val));
  
      LOG_ERROR(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Invalid param\n")));
  }
  
  static uint32_t bcmpkt_vxlan_t_vn_id_get(uint32_t *data) {
      uint32_t val;
  
      val = WORD_FIELD_GET(data[1], 8, 24);
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Get field BCMPKT_VXLAN_T_VN_ID with value %u on device BCM56880_A0_DNA_4_6_6\n"), val));
  
      return val;
  }
  
  static void bcmpkt_vxlan_t_vn_id_set(uint32_t *data, uint32_t val) {
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Set field BCMPKT_VXLAN_T_VN_ID with value %u on device BCM56880_A0_DNA_4_6_6\n"), val));
  
      WORD_FIELD_SET(data[1], 8, 24, val);
  }
  
  static uint32_t bcmpkt_vxlan_t_reserved2_get(uint32_t *data) {
      uint32_t val;
  
      val = WORD_FIELD_GET(data[1], 0, 8);
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Get field BCMPKT_VXLAN_T_RESERVED2 with value %u on device BCM56880_A0_DNA_4_6_6\n"), val));
  
      return val;
  }
  
  static void bcmpkt_vxlan_t_reserved2_set(uint32_t *data, uint32_t val) {
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Set field BCMPKT_VXLAN_T_RESERVED2 with value %u on device BCM56880_A0_DNA_4_6_6\n"), val));
  
      WORD_FIELD_SET(data[1], 0, 8, val);
  }
  
  static uint32_t bcmpkt_vxlan_t_i_support_get(uint32_t *data, uint32_t **addr) {
      LOG_DEBUG(BSL_LS_BCMPKT_FLEX_HDR,
          (BSL_META("Get field BCMPKT_VXLAN_T_I_SUPPORT on device BCM56880_A0_DNA_4_6_6\n")));
      return true;
  }
  
  const bcmpkt_vxlan_t_fget_t bcm56880_a0_dna_4_6_6_vxlan_t_fget = {
      {
          bcmpkt_vxlan_t_flags_reserved_1_get,
          bcmpkt_vxlan_t_vn_id_get,
          bcmpkt_vxlan_t_reserved2_get,
      }
  };
  
  const bcmpkt_vxlan_t_fset_t bcm56880_a0_dna_4_6_6_vxlan_t_fset = {
      {
          bcmpkt_vxlan_t_flags_reserved_1_set,
          bcmpkt_vxlan_t_vn_id_set,
          bcmpkt_vxlan_t_reserved2_set,
      }
  };
  
  
  const bcmpkt_vxlan_t_figet_t bcm56880_a0_dna_4_6_6_vxlan_t_figet = {
      {
          bcmpkt_vxlan_t_i_support_get
      }
  };
  
  static shr_enum_map_t bcm56880_a0_dna_4_6_6_vxlan_t_view_types[] = {
      {NULL, -1},
  };
  
  /* -2: unsupported, -1: global, others: view's value */
  static int bcm56880_a0_dna_4_6_6_vxlan_t_view_infos[BCMPKT_VXLAN_T_FID_COUNT] = {
      -1,
      -1,
      -1,
  };
  
  void bcm56880_a0_dna_4_6_6_vxlan_t_view_info_get(bcmpkt_pmd_view_info_t *info)
  {
      info->view_infos = bcm56880_a0_dna_4_6_6_vxlan_t_view_infos;
      info->view_types = bcm56880_a0_dna_4_6_6_vxlan_t_view_types;
      info->view_type_get = NULL;
  }
  