Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/dev/athk/ath12k/fw.h
178703 views
1
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
2
/*
3
* Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved.
4
*/
5
6
#ifndef ATH12K_FW_H
7
#define ATH12K_FW_H
8
9
#define ATH12K_FW_API2_FILE "firmware-2.bin"
10
#define ATH12K_FIRMWARE_MAGIC "QCOM-ATH12K-FW"
11
12
enum ath12k_fw_ie_type {
13
ATH12K_FW_IE_TIMESTAMP = 0,
14
ATH12K_FW_IE_FEATURES = 1,
15
ATH12K_FW_IE_AMSS_IMAGE = 2,
16
ATH12K_FW_IE_M3_IMAGE = 3,
17
ATH12K_FW_IE_AMSS_DUALMAC_IMAGE = 4,
18
};
19
20
enum ath12k_fw_features {
21
/* The firmware supports setting the QRTR id via register
22
* PCIE_LOCAL_REG_QRTR_NODE_ID
23
*/
24
ATH12K_FW_FEATURE_MULTI_QRTR_ID = 0,
25
26
/* The firmware supports MLO capability */
27
ATH12K_FW_FEATURE_MLO,
28
29
/* keep last */
30
ATH12K_FW_FEATURE_COUNT,
31
};
32
33
void ath12k_fw_map(struct ath12k_base *ab);
34
void ath12k_fw_unmap(struct ath12k_base *ab);
35
bool ath12k_fw_feature_supported(struct ath12k_base *ab, enum ath12k_fw_features feat);
36
37
#endif /* ATH12K_FW_H */
38
39