| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: ISC |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 15 | 4 | */ |
|---|
| 16 | 5 | |
|---|
| 17 | 6 | /**************** |
|---|
| .. | .. |
|---|
| 36 | 25 | #define BRCMF_DCMD_MEDLEN 1536 |
|---|
| 37 | 26 | #define BRCMF_DCMD_MAXLEN 8192 |
|---|
| 38 | 27 | |
|---|
| 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 |
|---|
| 40 | 29 | * ethernet frame size. This limitation is to be applied by protocol layer. |
|---|
| 41 | 30 | */ |
|---|
| 42 | 31 | #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN) |
|---|
| .. | .. |
|---|
| 108 | 97 | struct brcmf_bus *bus_if; |
|---|
| 109 | 98 | struct brcmf_proto *proto; |
|---|
| 110 | 99 | struct wiphy *wiphy; |
|---|
| 100 | + struct cfg80211_ops *ops; |
|---|
| 111 | 101 | struct brcmf_cfg80211_info *config; |
|---|
| 112 | 102 | |
|---|
| 113 | 103 | /* Internal brcmf items */ |
|---|
| .. | .. |
|---|
| 142 | 132 | struct notifier_block inetaddr_notifier; |
|---|
| 143 | 133 | struct notifier_block inet6addr_notifier; |
|---|
| 144 | 134 | struct brcmf_mp_device *settings; |
|---|
| 135 | + |
|---|
| 136 | + struct work_struct bus_reset; |
|---|
| 145 | 137 | |
|---|
| 146 | 138 | u8 clmver[BRCMF_DCMD_SMLEN]; |
|---|
| 147 | 139 | }; |
|---|
| .. | .. |
|---|
| 216 | 208 | void brcmf_txflowblock_if(struct brcmf_if *ifp, |
|---|
| 217 | 209 | enum brcmf_netif_stop_reason reason, bool state); |
|---|
| 218 | 210 | 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); |
|---|
| 220 | 212 | 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); |
|---|
| 221 | 215 | void brcmf_net_setcarrier(struct brcmf_if *ifp, bool on); |
|---|
| 222 | 216 | int __init brcmf_core_init(void); |
|---|
| 223 | 217 | void __exit brcmf_core_exit(void); |
|---|