44 lines · c
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */2/*3 * Copyright (C) 2012-2014, 2022 Intel Corporation4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH5 * Copyright (C) 2016-2017 Intel Deutschland GmbH6 */7#ifndef __iwl_fw_api_context_h__8#define __iwl_fw_api_context_h__9 10/**11 * enum iwl_ctxt_id_and_color - ID and color fields in context dword12 * @FW_CTXT_ID_POS: position of the ID13 * @FW_CTXT_ID_MSK: mask of the ID14 * @FW_CTXT_COLOR_POS: position of the color15 * @FW_CTXT_COLOR_MSK: mask of the color16 * @FW_CTXT_INVALID: value used to indicate unused/invalid17 */18enum iwl_ctxt_id_and_color {19 FW_CTXT_ID_POS = 0,20 FW_CTXT_ID_MSK = 0xff << FW_CTXT_ID_POS,21 FW_CTXT_COLOR_POS = 8,22 FW_CTXT_COLOR_MSK = 0xff << FW_CTXT_COLOR_POS,23 FW_CTXT_INVALID = 0xffffffff,24};25 26#define FW_CMD_ID_AND_COLOR(_id, _color) (((_id) << FW_CTXT_ID_POS) |\27 ((_color) << FW_CTXT_COLOR_POS))28 29/**30 * enum iwl_ctxt_action - Posssible actions on PHYs, MACs, Bindings and other31 * @FW_CTXT_ACTION_INVALID: unused, invalid action32 * @FW_CTXT_ACTION_ADD: add the context33 * @FW_CTXT_ACTION_MODIFY: modify the context34 * @FW_CTXT_ACTION_REMOVE: remove the context35 */36enum iwl_ctxt_action {37 FW_CTXT_ACTION_INVALID = 0,38 FW_CTXT_ACTION_ADD,39 FW_CTXT_ACTION_MODIFY,40 FW_CTXT_ACTION_REMOVE,41}; /* COMMON_CONTEXT_ACTION_API_E_VER_1 */42 43#endif /* __iwl_fw_api_context_h__ */44