diff options
author | Hante Meuleman <meuleman@broadcom.com> | 2013-11-29 06:25:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-02 14:25:21 -0500 |
commit | f931868d498ec4e7a1b8730e7173b5a17d36dd1a (patch) | |
tree | cf38433c00a610f480933365906195d268781212 /drivers | |
parent | 5d406f8e03921b742fb549def43939254572dee9 (diff) |
brcmfmac: removed dhd_proto.h.
dhd_proto.h was cleaned up and prototypes were moved to dhd.h.
dhd_proto.h was removed. This is a step in cleaning and
restucturing protocol layer.
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
6 files changed, 15 insertions, 43 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/bcdc.c b/drivers/net/wireless/brcm80211/brcmfmac/bcdc.c index 42aaf104cc44..59c6c054b113 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/bcdc.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/bcdc.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <brcmu_wifi.h> | 26 | #include <brcmu_wifi.h> |
27 | 27 | ||
28 | #include "dhd.h" | 28 | #include "dhd.h" |
29 | #include "dhd_proto.h" | ||
30 | #include "dhd_bus.h" | 29 | #include "dhd_bus.h" |
31 | #include "fwsignal.h" | 30 | #include "fwsignal.h" |
32 | #include "dhd_dbg.h" | 31 | #include "dhd_dbg.h" |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd.h b/drivers/net/wireless/brcm80211/brcmfmac/dhd.h index 899a2ada5b82..dc2ebefa4cac 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd.h | |||
@@ -635,6 +635,18 @@ int brcmf_netdev_wait_pend8021x(struct net_device *ndev); | |||
635 | /* Return pointer to interface name */ | 635 | /* Return pointer to interface name */ |
636 | char *brcmf_ifname(struct brcmf_pub *drvr, int idx); | 636 | char *brcmf_ifname(struct brcmf_pub *drvr, int idx); |
637 | 637 | ||
638 | /* Linkage, sets prot link and updates hdrlen in pub */ | ||
639 | int brcmf_proto_attach(struct brcmf_pub *drvr); | ||
640 | |||
641 | /* Unlink, frees allocated protocol memory (including brcmf_proto) */ | ||
642 | void brcmf_proto_detach(struct brcmf_pub *drvr); | ||
643 | |||
644 | /* Add any protocol-specific data header. | ||
645 | * Caller must reserve prot_hdrlen prepend space. | ||
646 | */ | ||
647 | void brcmf_proto_hdrpush(struct brcmf_pub *, int ifidx, u8 offset, | ||
648 | struct sk_buff *txp); | ||
649 | |||
638 | /* Query dongle */ | 650 | /* Query dongle */ |
639 | int brcmf_proto_cdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, | 651 | int brcmf_proto_cdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, |
640 | void *buf, uint len); | 652 | void *buf, uint len); |
@@ -655,4 +667,7 @@ u32 brcmf_get_chip_info(struct brcmf_if *ifp); | |||
655 | void brcmf_txfinalize(struct brcmf_pub *drvr, struct sk_buff *txp, | 667 | void brcmf_txfinalize(struct brcmf_pub *drvr, struct sk_buff *txp, |
656 | bool success); | 668 | bool success); |
657 | 669 | ||
670 | /* Sets dongle media info (drv_version, mac address). */ | ||
671 | int brcmf_c_preinit_dcmds(struct brcmf_if *ifp); | ||
672 | |||
658 | #endif /* _BRCMF_H_ */ | 673 | #endif /* _BRCMF_H_ */ |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c index 5c0c9191b794..601763393184 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <brcmu_utils.h> | 21 | #include <brcmu_utils.h> |
22 | #include "dhd.h" | 22 | #include "dhd.h" |
23 | #include "dhd_bus.h" | 23 | #include "dhd_bus.h" |
24 | #include "dhd_proto.h" | ||
25 | #include "dhd_dbg.h" | 24 | #include "dhd_dbg.h" |
26 | #include "fwil.h" | 25 | #include "fwil.h" |
27 | #include "tracepoint.h" | 26 | #include "tracepoint.h" |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c index c34ca703d2a3..c626938665aa 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | #include "dhd.h" | 25 | #include "dhd.h" |
26 | #include "dhd_bus.h" | 26 | #include "dhd_bus.h" |
27 | #include "dhd_proto.h" | ||
28 | #include "dhd_dbg.h" | 27 | #include "dhd_dbg.h" |
29 | #include "fwil_types.h" | 28 | #include "fwil_types.h" |
30 | #include "p2p.h" | 29 | #include "p2p.h" |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_proto.h b/drivers/net/wireless/brcm80211/brcmfmac/dhd_proto.h deleted file mode 100644 index d633362a52d0..000000000000 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_proto.h +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /* | ||
2 | * 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 | */ | ||
16 | |||
17 | #ifndef _BRCMF_PROTO_H_ | ||
18 | #define _BRCMF_PROTO_H_ | ||
19 | |||
20 | /* | ||
21 | * Exported from the brcmf protocol module (brcmf_cdc) | ||
22 | */ | ||
23 | |||
24 | /* Linkage, sets prot link and updates hdrlen in pub */ | ||
25 | int brcmf_proto_attach(struct brcmf_pub *drvr); | ||
26 | |||
27 | /* Unlink, frees allocated protocol memory (including brcmf_proto) */ | ||
28 | void brcmf_proto_detach(struct brcmf_pub *drvr); | ||
29 | |||
30 | /* Add any protocol-specific data header. | ||
31 | * Caller must reserve prot_hdrlen prepend space. | ||
32 | */ | ||
33 | void brcmf_proto_hdrpush(struct brcmf_pub *, int ifidx, u8 offset, | ||
34 | struct sk_buff *txp); | ||
35 | |||
36 | /* Sets dongle media info (drv_version, mac address). */ | ||
37 | int brcmf_c_preinit_dcmds(struct brcmf_if *ifp); | ||
38 | |||
39 | #endif /* _BRCMF_PROTO_H_ */ | ||
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c index 296dbf1d1425..b96ee3a93a68 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <brcmu_utils.h> | 27 | #include <brcmu_utils.h> |
28 | #include <brcmu_wifi.h> | 28 | #include <brcmu_wifi.h> |
29 | #include "dhd.h" | 29 | #include "dhd.h" |
30 | #include "dhd_proto.h" | ||
31 | #include "dhd_dbg.h" | 30 | #include "dhd_dbg.h" |
32 | #include "dhd_bus.h" | 31 | #include "dhd_bus.h" |
33 | #include "fwil.h" | 32 | #include "fwil.h" |