hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
....@@ -1,17 +1,6 @@
1
+// SPDX-License-Identifier: ISC
12 /*
23 * Copyright (c) 2010 Broadcom Corporation
3
- *
4
- * Permission to use, copy, modify, and/or distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11
- * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
154 */
165
176 /****************
....@@ -36,7 +25,7 @@
3625 #define BRCMF_DCMD_MEDLEN 1536
3726 #define BRCMF_DCMD_MAXLEN 8192
3827
39
-/* IOCTL from host to device are limited in lenght. A device can only handle
28
+/* IOCTL from host to device are limited in length. A device can only handle
4029 * ethernet frame size. This limitation is to be applied by protocol layer.
4130 */
4231 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
....@@ -108,6 +97,7 @@
10897 struct brcmf_bus *bus_if;
10998 struct brcmf_proto *proto;
11099 struct wiphy *wiphy;
100
+ struct cfg80211_ops *ops;
111101 struct brcmf_cfg80211_info *config;
112102
113103 /* Internal brcmf items */
....@@ -142,6 +132,8 @@
142132 struct notifier_block inetaddr_notifier;
143133 struct notifier_block inet6addr_notifier;
144134 struct brcmf_mp_device *settings;
135
+
136
+ struct work_struct bus_reset;
145137
146138 u8 clmver[BRCMF_DCMD_SMLEN];
147139 };
....@@ -216,8 +208,10 @@
216208 void brcmf_txflowblock_if(struct brcmf_if *ifp,
217209 enum brcmf_netif_stop_reason reason, bool state);
218210 void brcmf_txfinalize(struct brcmf_if *ifp, struct sk_buff *txp, bool success);
219
-void brcmf_netif_rx(struct brcmf_if *ifp, struct sk_buff *skb);
211
+void brcmf_netif_rx(struct brcmf_if *ifp, struct sk_buff *skb, bool inirq);
220212 void brcmf_netif_mon_rx(struct brcmf_if *ifp, struct sk_buff *skb);
213
+void brcmf_net_detach(struct net_device *ndev, bool rtnl_locked);
214
+int brcmf_net_mon_attach(struct brcmf_if *ifp);
221215 void brcmf_net_setcarrier(struct brcmf_if *ifp, bool on);
222216 int __init brcmf_core_init(void);
223217 void __exit brcmf_core_exit(void);