hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
....@@ -1,16 +1,6 @@
1
-/* Copyright (c) 2014 Broadcom Corporation
2
- *
3
- * Permission to use, copy, modify, and/or distribute this software for any
4
- * purpose with or without fee is hereby granted, provided that the above
5
- * copyright notice and this permission notice appear in all copies.
6
- *
7
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10
- * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1
+// SPDX-License-Identifier: ISC
2
+/*
3
+ * Copyright (c) 2014 Broadcom Corporation
144 */
155 #ifndef BRCMFMAC_COMMON_H
166 #define BRCMFMAC_COMMON_H
....@@ -59,6 +49,7 @@
5949 bool iapp;
6050 bool ignore_probe_fail;
6151 struct brcmfmac_pd_cc *country_codes;
52
+ const char *board_type;
6253 union {
6354 struct brcmfmac_sdio_pd sdio;
6455 } bus;
....@@ -74,4 +65,15 @@
7465 /* Sets dongle media info (drv_version, mac address). */
7566 int brcmf_c_preinit_dcmds(struct brcmf_if *ifp);
7667
68
+#ifdef CONFIG_DMI
69
+void brcmf_dmi_probe(struct brcmf_mp_device *settings, u32 chip, u32 chiprev);
70
+#else
71
+static inline void
72
+brcmf_dmi_probe(struct brcmf_mp_device *settings, u32 chip, u32 chiprev) {}
73
+#endif
74
+
75
+u8 brcmf_map_prio_to_prec(void *cfg, u8 prio);
76
+
77
+u8 brcmf_map_prio_to_aci(void *cfg, u8 prio);
78
+
7779 #endif /* BRCMFMAC_COMMON_H */