brcmfmac: use struct brcmf_if as interface object for fwil functions
The functions for communicating were given the net_device only because its private data contained struct brcmf_if object. However, not all firmware related interfaces will be associated with a net_device. To accomodate provisioning firmware for such interfaces the struct brcmf_if object will be passed to the fwil functions. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
6e186166ea
commit
ac24be6fe6
@@ -17,25 +17,23 @@
|
||||
#ifndef _fwil_h_
|
||||
#define _fwil_h_
|
||||
|
||||
s32 brcmf_fil_cmd_data_set(struct net_device *ndev, u32 cmd, void *data,
|
||||
u32 len);
|
||||
s32 brcmf_fil_cmd_data_get(struct net_device *ndev, u32 cmd, void *data,
|
||||
u32 len);
|
||||
s32 brcmf_fil_cmd_int_set(struct net_device *ndev, u32 cmd, u32 data);
|
||||
s32 brcmf_fil_cmd_int_get(struct net_device *ndev, u32 cmd, u32 *data);
|
||||
s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
|
||||
s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
|
||||
s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data);
|
||||
s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data);
|
||||
|
||||
s32 brcmf_fil_iovar_data_set(struct net_device *ndev, char *name, void *data,
|
||||
s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, void *data,
|
||||
u32 len);
|
||||
s32 brcmf_fil_iovar_data_get(struct net_device *ndev, char *name, void *data,
|
||||
s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data,
|
||||
u32 len);
|
||||
s32 brcmf_fil_iovar_int_set(struct net_device *ndev, char *name, u32 data);
|
||||
s32 brcmf_fil_iovar_int_get(struct net_device *ndev, char *name, u32 *data);
|
||||
s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data);
|
||||
s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data);
|
||||
|
||||
s32 brcmf_fil_bsscfg_data_set(struct net_device *ndev, char *name, void *data,
|
||||
s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data,
|
||||
u32 len);
|
||||
s32 brcmf_fil_bsscfg_data_get(struct net_device *ndev, char *name, void *data,
|
||||
s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data,
|
||||
u32 len);
|
||||
s32 brcmf_fil_bsscfg_int_set(struct net_device *ndev, char *name, u32 data);
|
||||
s32 brcmf_fil_bsscfg_int_get(struct net_device *ndev, char *name, u32 *data);
|
||||
s32 brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, char *name, u32 data);
|
||||
s32 brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, char *name, u32 *data);
|
||||
|
||||
#endif /* _fwil_h_ */
|
||||
|
Reference in New Issue
Block a user