mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 04:06:50 +07:00
brcm80211: fmac: stop referencing brcmf_sdio in common layer
brcmf_sdio is the data structure for sdio bus layer. Stop referencing brcmf_sdio from common layer. This patch is part of the fullmac bus interface refactoring. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Reviewed-by: Alwin Beukers <alwin@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
712ac5b37a
commit
2447ffb0bd
@ -583,14 +583,12 @@ struct brcmf_bus {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Forward decls for struct brcmf_pub (see below) */
|
/* Forward decls for struct brcmf_pub (see below) */
|
||||||
struct brcmf_sdio; /* device bus info */
|
|
||||||
struct brcmf_proto; /* device communication protocol info */
|
struct brcmf_proto; /* device communication protocol info */
|
||||||
struct brcmf_cfg80211_dev; /* cfg80211 device info */
|
struct brcmf_cfg80211_dev; /* cfg80211 device info */
|
||||||
|
|
||||||
/* Common structure for module and instance linkage */
|
/* Common structure for module and instance linkage */
|
||||||
struct brcmf_pub {
|
struct brcmf_pub {
|
||||||
/* Linkage ponters */
|
/* Linkage ponters */
|
||||||
struct brcmf_sdio *bus;
|
|
||||||
struct brcmf_bus *bus_if;
|
struct brcmf_bus *bus_if;
|
||||||
struct brcmf_proto *prot;
|
struct brcmf_proto *prot;
|
||||||
struct brcmf_cfg80211_dev *config;
|
struct brcmf_cfg80211_dev *config;
|
||||||
@ -669,8 +667,7 @@ extern uint brcmf_c_mkiovar(char *name, char *data, uint datalen,
|
|||||||
* Returned structure should have bus and prot pointers filled in.
|
* Returned structure should have bus and prot pointers filled in.
|
||||||
* bus_hdrlen specifies required headroom for bus module header.
|
* bus_hdrlen specifies required headroom for bus module header.
|
||||||
*/
|
*/
|
||||||
extern int brcmf_attach(struct brcmf_sdio *bus,
|
extern int brcmf_attach(uint bus_hdrlen, struct device *dev);
|
||||||
uint bus_hdrlen, struct device *dev);
|
|
||||||
extern int brcmf_net_attach(struct brcmf_pub *drvr, int idx);
|
extern int brcmf_net_attach(struct brcmf_pub *drvr, int idx);
|
||||||
extern int brcmf_netdev_wait_pend8021x(struct net_device *ndev);
|
extern int brcmf_netdev_wait_pend8021x(struct net_device *ndev);
|
||||||
|
|
||||||
|
@ -44,7 +44,4 @@ brcmf_sdbrcm_bus_txctl(struct device *dev, unsigned char *msg, uint msglen);
|
|||||||
|
|
||||||
extern int
|
extern int
|
||||||
brcmf_sdbrcm_bus_rxctl(struct device *dev, unsigned char *msg, uint msglen);
|
brcmf_sdbrcm_bus_rxctl(struct device *dev, unsigned char *msg, uint msglen);
|
||||||
|
|
||||||
extern void brcmf_sdbrcm_wd_timer(struct brcmf_sdio *bus, uint wdtick);
|
|
||||||
|
|
||||||
#endif /* _BRCMF_BUS_H_ */
|
#endif /* _BRCMF_BUS_H_ */
|
||||||
|
@ -922,8 +922,7 @@ void brcmf_del_if(struct brcmf_pub *drvr, int ifidx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int brcmf_attach(struct brcmf_sdio *bus, uint bus_hdrlen,
|
int brcmf_attach(uint bus_hdrlen, struct device *dev)
|
||||||
struct device *dev)
|
|
||||||
{
|
{
|
||||||
struct brcmf_pub *drvr = NULL;
|
struct brcmf_pub *drvr = NULL;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@ -938,7 +937,6 @@ int brcmf_attach(struct brcmf_sdio *bus, uint bus_hdrlen,
|
|||||||
mutex_init(&drvr->proto_block);
|
mutex_init(&drvr->proto_block);
|
||||||
|
|
||||||
/* Link to bus module */
|
/* Link to bus module */
|
||||||
drvr->bus = bus;
|
|
||||||
drvr->hdrlen = bus_hdrlen;
|
drvr->hdrlen = bus_hdrlen;
|
||||||
drvr->bus_if = dev_get_drvdata(dev);
|
drvr->bus_if = dev_get_drvdata(dev);
|
||||||
drvr->bus_if->drvr = drvr;
|
drvr->bus_if->drvr = drvr;
|
||||||
|
@ -3953,7 +3953,7 @@ void *brcmf_sdbrcm_probe(u32 regsva, struct brcmf_sdio_dev *sdiodev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Attach to the brcmf/OS/network interface */
|
/* Attach to the brcmf/OS/network interface */
|
||||||
ret = brcmf_attach(bus, SDPCM_RESERVE, bus->sdiodev->dev);
|
ret = brcmf_attach(SDPCM_RESERVE, bus->sdiodev->dev);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
brcmf_dbg(ERROR, "brcmf_attach failed\n");
|
brcmf_dbg(ERROR, "brcmf_attach failed\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -122,6 +122,8 @@ struct brcmf_sdreg {
|
|||||||
int value;
|
int value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct brcmf_sdio;
|
||||||
|
|
||||||
struct brcmf_sdio_dev {
|
struct brcmf_sdio_dev {
|
||||||
struct sdio_func *func[SDIO_MAX_FUNCS];
|
struct sdio_func *func[SDIO_MAX_FUNCS];
|
||||||
u8 num_funcs; /* Supported funcs on client */
|
u8 num_funcs; /* Supported funcs on client */
|
||||||
@ -262,4 +264,6 @@ extern void brcmf_sdio_wdtmr_enable(struct brcmf_sdio_dev *sdiodev,
|
|||||||
extern void *brcmf_sdbrcm_probe(u32 regsva, struct brcmf_sdio_dev *sdiodev);
|
extern void *brcmf_sdbrcm_probe(u32 regsva, struct brcmf_sdio_dev *sdiodev);
|
||||||
extern void brcmf_sdbrcm_disconnect(void *ptr);
|
extern void brcmf_sdbrcm_disconnect(void *ptr);
|
||||||
extern void brcmf_sdbrcm_isr(void *arg);
|
extern void brcmf_sdbrcm_isr(void *arg);
|
||||||
|
|
||||||
|
extern void brcmf_sdbrcm_wd_timer(struct brcmf_sdio *bus, uint wdtick);
|
||||||
#endif /* _BRCM_SDH_H_ */
|
#endif /* _BRCM_SDH_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user