Path: blob/main/sys/contrib/dev/iwlwifi/fw/api/context.h
48427 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/*2* Copyright (C) 2012-2014, 2022, 2024 Intel Corporation3* Copyright (C) 2013-2015 Intel Mobile Communications GmbH4* Copyright (C) 2016-2017 Intel Deutschland GmbH5*/6#ifndef __iwl_fw_api_context_h__7#define __iwl_fw_api_context_h__89/**10* enum iwl_ctxt_id_and_color - ID and color fields in context dword11* @FW_CTXT_ID_POS: position of the ID12* @FW_CTXT_ID_MSK: mask of the ID13* @FW_CTXT_COLOR_POS: position of the color14* @FW_CTXT_COLOR_MSK: mask of the color15* @FW_CTXT_INVALID: value used to indicate unused/invalid16* @FW_CTXT_ID_INVALID: value used to indicate unused/invalid. This can be17* used with newer firmware which no longer use the color. Typically,18* firmware versions supported by iwlmld can use this value.19*/20enum iwl_ctxt_id_and_color {21FW_CTXT_ID_POS = 0,22FW_CTXT_ID_MSK = 0xff << FW_CTXT_ID_POS,23FW_CTXT_COLOR_POS = 8,24FW_CTXT_COLOR_MSK = 0xff << FW_CTXT_COLOR_POS,25FW_CTXT_INVALID = 0xffffffff,26FW_CTXT_ID_INVALID = 0xff,27};2829#define FW_CMD_ID_AND_COLOR(_id, _color) (((_id) << FW_CTXT_ID_POS) |\30((_color) << FW_CTXT_COLOR_POS))3132/**33* enum iwl_ctxt_action - Posssible actions on PHYs, MACs, Bindings and other34* @FW_CTXT_ACTION_INVALID: unused, invalid action35* @FW_CTXT_ACTION_ADD: add the context36* @FW_CTXT_ACTION_MODIFY: modify the context37* @FW_CTXT_ACTION_REMOVE: remove the context38*/39enum iwl_ctxt_action {40FW_CTXT_ACTION_INVALID = 0,41FW_CTXT_ACTION_ADD,42FW_CTXT_ACTION_MODIFY,43FW_CTXT_ACTION_REMOVE,44}; /* COMMON_CONTEXT_ACTION_API_E_VER_1 */4546#define IWL_LMAC_24G_INDEX 047#define IWL_LMAC_5G_INDEX 14849#endif /* __iwl_fw_api_context_h__ */505152