/* SPDX-License-Identifier: MIT */ /* * Copyright © 2024 Intel Corporation */ #ifndef _XE_GUC_KLV_THRESHOLDS_SET_TYPES_H_ #define _XE_GUC_KLV_THRESHOLDS_SET_TYPES_H_ #include "xe_args.h" /** * MAKE_XE_GUC_KLV_THRESHOLDS_SET - Generate various GuC thresholds definitions. * @define: name of the inner macro to expand. * * The GuC firmware is able to monitor VF's adverse activity and will notify the * PF driver once any threshold is exceeded. * * This super macro allows various conversions between the GuC adverse event * threshold KLV definitions and the driver code without repeating similar code * or risking missing some cases. * * For each GuC threshold definition, the inner macro &define will be provided * with the &TAG, that corresponds to the GuC threshold KLV key name defined by * ABI and the associated &NAME, that may be used in code or debugfs/sysfs:: * * define(TAG, NAME) */ #define MAKE_XE_GUC_KLV_THRESHOLDS_SET(define) … /** * XE_GUC_KLV_NUM_THRESHOLDS - Number of GuC thresholds KLVs. * * Calculated automatically using &MAKE_XE_GUC_KLV_THRESHOLDS_SET. */ #define XE_GUC_KLV_NUM_THRESHOLDS … /** * MAKE_XE_GUC_KLV_THRESHOLD_INDEX - Create enumerator name. * @TAG: unique TAG of the enum xe_guc_klv_threshold_index. */ #define MAKE_XE_GUC_KLV_THRESHOLD_INDEX(TAG) … /** * enum xe_guc_klv_threshold_index - Index of the tracked GuC threshold. * * This enum is automatically generated using &MAKE_XE_GUC_KLV_THRESHOLDS_SET. * All these generated enumerators will only be used by the also generated code. */ enum xe_guc_klv_threshold_index { … }; #endif