text: /*******************************************************************************
   *
   * DO NOT EDIT THIS FILE!
   * This file is auto-generated by fltg from
   *    INTERNAL/fltg/xgs/pc/bcm56880_a0/bcm56880_a0_PC_PFC.map.ltl for
   *      bcm56880_a0
   *
   * Tool: $SDK/INTERNAL/fltg/bin/fltg
   *
   * 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.
   */
  #include <bcmlrd/bcmlrd_internal.h>
  #include <bcmlrd/chip/bcmlrd_id.h>
  #include <bcmlrd/chip/bcm56880_a0/bcm56880_a0_lrd_field_data.h>
  #include <bcmlrd/chip/bcm56880_a0/bcm56880_a0_lrd_ltm_intf.h>
  #include <bcmlrd/chip/bcm56880_a0/bcm56880_a0_lrd_xfrm_field_desc.h>
  #include <bcmdrd/chip/bcm56880_a0_enum.h>
  #include "bcmltd/chip/bcmltd_common_enumpool.h"
  #include "bcm56880_a0_lrd_enumpool.h"
  #include <bcmltd/bcmltd_handler.h>
  /* PC_PFC field init */
  static const bcmlrd_field_data_t bcm56880_a0_lrd_pc_pfc_map_field_data_mmd[] = {
      { /* 0 PORT_ID */
        .flags = BCMLTD_FIELD_F_KEY,
        .min = &bcm56880_a0_lrd_ifd_u16_0x1,
        .def = &bcm56880_a0_lrd_ifd_u16_0x1,
        .max = &bcm56880_a0_lrd_ifd_u16_0x9f,
        .depth = 0,
        .width = 8,
        .edata = NULL,
      },
      { /* 1 ENABLE_RX */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .def = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .max = &bcm56880_a0_lrd_ifd_is_true_0x1,
        .depth = 0,
        .width = 1,
        .edata = NULL,
      },
      { /* 2 ENABLE_TX */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .def = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .max = &bcm56880_a0_lrd_ifd_is_true_0x1,
        .depth = 0,
        .width = 1,
        .edata = NULL,
      },
      { /* 3 ENABLE_STATS */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .def = &bcm56880_a0_lrd_ifd_is_true_0x1,
        .max = &bcm56880_a0_lrd_ifd_is_true_0x1,
        .depth = 0,
        .width = 1,
        .edata = NULL,
      },
      { /* 4 REFRESH_TIMER */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_u32_0x0,
        .def = &bcm56880_a0_lrd_ifd_u32_0xc000,
        .max = &bcm56880_a0_lrd_ifd_u32_0xffff,
        .depth = 0,
        .width = 16,
        .edata = NULL,
      },
      { /* 5 DEST_ADDR */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_u64_0x0,
        .def = &bcm56880_a0_lrd_ifd_u64_0x180c2000001,
        .max = &bcm56880_a0_lrd_ifd_u64_0xffffffffffff,
        .depth = 0,
        .width = 48,
        .edata = NULL,
      },
      { /* 6 ETH_TYPE */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_u32_0x0,
        .def = &bcm56880_a0_lrd_ifd_u32_0x8808,
        .max = &bcm56880_a0_lrd_ifd_u32_0xffffffff,
        .depth = 0,
        .width = 32,
        .edata = NULL,
      },
      { /* 7 OPCODE */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_u32_0x0,
        .def = &bcm56880_a0_lrd_ifd_u32_0x101,
        .max = &bcm56880_a0_lrd_ifd_u32_0xffffffff,
        .depth = 0,
        .width = 32,
        .edata = NULL,
      },
      { /* 8 XOFF_TIMER */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_u32_0x0,
        .def = &bcm56880_a0_lrd_ifd_u32_0xffff,
        .max = &bcm56880_a0_lrd_ifd_u32_0xffff,
        .depth = 0,
        .width = 16,
        .edata = NULL,
      },
      { /* 9 PFC_PASS */
        .flags = 0,
        .min = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .def = &bcm56880_a0_lrd_ifd_is_true_0x0,
        .max = &bcm56880_a0_lrd_ifd_is_true_0x1,
        .depth = 0,
        .width = 1,
        .edata = NULL,
      },
      { /* 10 OPERATIONAL_STATE */
        .flags = BCMLRD_FIELD_F_READ_ONLY | BCMLTD_FIELD_F_ENUM,
        .min = &bcm56880_a0_lrd_ifd_u32_0x0,
        .def = &bcm56880_a0_lrd_ifd_u32_0x0,
        .max = &bcm56880_a0_lrd_ifd_u32_0x11,
        .depth = 0,
        .width = 5,
        .edata = BCMLTD_COMMON_PC_ENTRY_STATE_T_DATA,
      },
  };
  const bcmlrd_map_field_data_t bcm56880_a0_lrd_pc_pfc_map_field_data = {
      .fields = 11,
      .field = bcm56880_a0_lrd_pc_pfc_map_field_data_mmd
  };
  
  static const bcmlrd_map_table_attr_t bcm56880_a0_lrd_pc_pfct_attr_entry[] = {
      { /* 0 */
          .key   = BCMLRD_MAP_TABLE_ATTRIBUTE_ENTRY_LIMIT,
          .value = 159,
      },
      { /* 1 */
          .key   = BCMLRD_MAP_TABLE_ATTRIBUTE_INTERACTIVE,
          .value = FALSE,
      },
      { /* 2 */
          .key   = BCMLRD_MAP_TABLE_ATTRIBUTE_TABLE_MAX_INDEX,
          .value = 159,
      },
      { /* 3 */
          .key   = BCMLRD_MAP_TABLE_ATTRIBUTE_TABLE_MIN_INDEX,
          .value = 1,
      },
  };
  
  static const bcmlrd_map_attr_t bcm56880_a0_lrd_pc_pfct_attr_group = {
      .attributes = 4,
      .attr = bcm56880_a0_lrd_pc_pfct_attr_entry,
  };
  
  static const bcmlrd_map_entry_t bcm56880_a0_lrd_bcmimm_pc_pfc_entry[] = {
      { /* 0 */
          .entry_type = BCMLRD_MAP_ENTRY_TABLE_HANDLER,
          .desc = {
              .field_id  = 0,
              .field_idx = 0,
              .minbit    = 0,
              .maxbit    = 0,
              .entry_idx = 0,
              .reserved  = 0
          },
          .u = {
              /* handler: bcm56880_a0_lta_bcmimm_pc_pfc_cth_handler */
              .handler_id = BCMLTD_TABLE_BCM56880_A0_LTA_BCMIMM_PC_PFC_CTH_HANDLER_ID
          }
      },
  };
  static const bcmlrd_map_entry_t
  bcm56880_a0_lrd_bcmltx_pc_pfc_validate_entry[] = {
      { /* 0 */
          .entry_type = BCMLRD_MAP_ENTRY_VALUE_FIELD_VALIDATION,
          .desc = {
              .field_id  = 0,
              .field_idx = 0,
              .minbit    = 0,
              .maxbit    = 0,
              .entry_idx = 0,
              .reserved  = 0
          },
          .u = {
              /* handler: bcm56880_a0_lta_bcmltx_pc_pfc_std_val_fv_handler */
              .handler_id = BCMLTD_VALIDATE_BCM56880_A0_LTA_BCMLTX_PC_PFC_STD_VAL_FV_HANDLER_ID
          }
      },
  };
  static const bcmlrd_map_group_t bcm56880_a0_lrd_pc_pfc_map_group[] = {
      {
          .dest = {
              .kind = BCMLRD_MAP_CUSTOM,
              .id = 0,
          },
          .entries = 1,
          .entry = bcm56880_a0_lrd_bcmimm_pc_pfc_entry
      },
      {
          .dest = {
              .kind = BCMLRD_MAP_VALIDATION,
              .id = 0,
          },
          .entries = 1,
          .entry = bcm56880_a0_lrd_bcmltx_pc_pfc_validate_entry
      },
  };
  const bcmlrd_map_t bcm56880_a0_lrd_pc_pfc_map = {
      .src_id = PC_PFCt,
      .field_data = &bcm56880_a0_lrd_pc_pfc_map_field_data,
      .groups = 2,
      .group  = bcm56880_a0_lrd_pc_pfc_map_group,
      .table_attr = &bcm56880_a0_lrd_pc_pfct_attr_group,
      .entry_ops = BCMLRD_MAP_TABLE_ENTRY_OPERATION_UPDATE | BCMLRD_MAP_TABLE_ENTRY_OPERATION_LOOKUP | BCMLRD_MAP_TABLE_ENTRY_OPERATION_TRAVERSE
  };
  