/*******************************************************************************
 *
 * DO NOT EDIT THIS FILE!
 * This file is auto-generated by fltg from
 *    INTERNAL/fltg/xgs/sec/bcm56780_a0/bcm56780_a0_SEC_ENCRYPT_MACSEC_SA_POLICY_STATUS.map.ltl for
 *      bcm56780_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/bcm56780_a0/bcm56780_a0_lrd_field_data.h>
#include <bcmlrd/chip/bcm56780_a0/bcm56780_a0_lrd_ltm_intf.h>
#include <bcmlrd/chip/bcm56780_a0/bcm56780_a0_lrd_xfrm_field_desc.h>
#include <bcmdrd/chip/bcm56780_a0_enum.h>
#include "bcmltd/chip/bcmltd_common_enumpool.h"
#include "bcm56780_a0_lrd_enumpool.h"
#include <bcmltd/bcmltd_handler.h>
/* SEC_ENCRYPT_MACSEC_SA_POLICY_STATUS field init */
static const bcmlrd_field_data_t bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map_field_data_mmd[] = {
    { /* 0 SEC_BLOCK_ID */
      .flags = BCMLRD_FIELD_F_READ_ONLY | BCMLTD_FIELD_F_KEY,
      .min = &bcm56780_a0_lrd_ifd_u8_0x0,
      .def = &bcm56780_a0_lrd_ifd_u8_0x0,
      .max = &bcm56780_a0_lrd_ifd_u8_0x5,
      .depth = 0,
      .width = 3,
      .edata = NULL,
    },
    { /* 1 SEC_ENCRYPT_MACSEC_SA_POLICY_ID */
      .flags = BCMLRD_FIELD_F_READ_ONLY | BCMLTD_FIELD_F_KEY,
      .min = &bcm56780_a0_lrd_ifd_u32_0x0,
      .def = &bcm56780_a0_lrd_ifd_u32_0x0,
      .max = &bcm56780_a0_lrd_ifd_u32_0x3ff,
      .depth = 0,
      .width = 10,
      .edata = NULL,
    },
    { /* 2 STATE */
      .flags = BCMLRD_FIELD_F_READ_ONLY | BCMLTD_FIELD_F_ENUM,
      .min = &bcm56780_a0_lrd_ifd_u32_0x0,
      .def = &bcm56780_a0_lrd_ifd_u32_0x0,
      .max = &bcm56780_a0_lrd_ifd_u32_0x4,
      .depth = 0,
      .width = 3,
      .edata = BCMLTD_COMMON_SA_STATE_T_DATA,
    },
};
const bcmlrd_map_field_data_t bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map_field_data = {
    .fields = 3,
    .field = bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map_field_data_mmd
};

static const bcmlrd_map_table_attr_t bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_statust_attr_entry[] = {
    { /* 0 */
        .key   = BCMLRD_MAP_TABLE_ATTRIBUTE_ENTRY_LIMIT,
        .value = 12288,
    },
    { /* 1 */
        .key   = BCMLRD_MAP_TABLE_ATTRIBUTE_INTERACTIVE,
        .value = FALSE,
    },
};

static const bcmlrd_map_attr_t bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_statust_attr_group = {
    .attributes = 2,
    .attr = bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_statust_attr_entry,
};

static const bcmlrd_map_entry_t bcm56780_a0_lrd_bcmimm_sec_encrypt_macsec_sa_policy_status_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: bcm56780_a0_lta_bcmimm_sec_encrypt_macsec_sa_policy_status_cth_handler */
            .handler_id = BCMLTD_TABLE_BCM56780_A0_LTA_BCMIMM_SEC_ENCRYPT_MACSEC_SA_POLICY_STATUS_CTH_HANDLER_ID
        }
    },
};
static const bcmlrd_map_group_t bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map_group[] = {
    {
        .dest = {
            .kind = BCMLRD_MAP_CUSTOM,
            .id = 0,
        },
        .entries = 1,
        .entry = bcm56780_a0_lrd_bcmimm_sec_encrypt_macsec_sa_policy_status_entry
    },
};
const bcmlrd_map_t bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map = {
    .src_id = SEC_ENCRYPT_MACSEC_SA_POLICY_STATUSt,
    .field_data = &bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map_field_data,
    .groups = 1,
    .group  = bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_status_map_group,
    .table_attr = &bcm56780_a0_lrd_sec_encrypt_macsec_sa_policy_statust_attr_group,
    .entry_ops = BCMLRD_MAP_TABLE_ENTRY_OPERATION_LOOKUP | BCMLRD_MAP_TABLE_ENTRY_OPERATION_TRAVERSE
};
