Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/dev/iwlwifi/fw/api/context.h
48427 views
1
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2
/*
3
* Copyright (C) 2012-2014, 2022, 2024 Intel Corporation
4
* Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5
* Copyright (C) 2016-2017 Intel Deutschland GmbH
6
*/
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 dword
12
* @FW_CTXT_ID_POS: position of the ID
13
* @FW_CTXT_ID_MSK: mask of the ID
14
* @FW_CTXT_COLOR_POS: position of the color
15
* @FW_CTXT_COLOR_MSK: mask of the color
16
* @FW_CTXT_INVALID: value used to indicate unused/invalid
17
* @FW_CTXT_ID_INVALID: value used to indicate unused/invalid. This can be
18
* used with newer firmware which no longer use the color. Typically,
19
* firmware versions supported by iwlmld can use this value.
20
*/
21
enum iwl_ctxt_id_and_color {
22
FW_CTXT_ID_POS = 0,
23
FW_CTXT_ID_MSK = 0xff << FW_CTXT_ID_POS,
24
FW_CTXT_COLOR_POS = 8,
25
FW_CTXT_COLOR_MSK = 0xff << FW_CTXT_COLOR_POS,
26
FW_CTXT_INVALID = 0xffffffff,
27
FW_CTXT_ID_INVALID = 0xff,
28
};
29
30
#define FW_CMD_ID_AND_COLOR(_id, _color) (((_id) << FW_CTXT_ID_POS) |\
31
((_color) << FW_CTXT_COLOR_POS))
32
33
/**
34
* enum iwl_ctxt_action - Posssible actions on PHYs, MACs, Bindings and other
35
* @FW_CTXT_ACTION_INVALID: unused, invalid action
36
* @FW_CTXT_ACTION_ADD: add the context
37
* @FW_CTXT_ACTION_MODIFY: modify the context
38
* @FW_CTXT_ACTION_REMOVE: remove the context
39
*/
40
enum iwl_ctxt_action {
41
FW_CTXT_ACTION_INVALID = 0,
42
FW_CTXT_ACTION_ADD,
43
FW_CTXT_ACTION_MODIFY,
44
FW_CTXT_ACTION_REMOVE,
45
}; /* COMMON_CONTEXT_ACTION_API_E_VER_1 */
46
47
#define IWL_LMAC_24G_INDEX 0
48
#define IWL_LMAC_5G_INDEX 1
49
50
#endif /* __iwl_fw_api_context_h__ */
51
52