Commit 2f6b1dde authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

staging: brcm80211: got rid of several void pointers in softmac

Code cleanup. Replaced void pointers by less generic pointer types.
Reported-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e45e8698
...@@ -109,7 +109,6 @@ struct brcms_fifo_info { ...@@ -109,7 +109,6 @@ struct brcms_fifo_info {
* rx_factor: maximum rx ampdu factor (0-3) ==> 2^(13+x) bytes * rx_factor: maximum rx ampdu factor (0-3) ==> 2^(13+x) bytes
* ffpld_rsvd: number of bytes to reserve for preload * ffpld_rsvd: number of bytes to reserve for preload
* max_txlen: max size of ampdu per mcs, bw and sgi * max_txlen: max size of ampdu per mcs, bw and sgi
* ini_free: array of ini's to be freed on detach
* mfbr: enable multiple fallback rate * mfbr: enable multiple fallback rate
* tx_max_funl: underflows should be kept such that * tx_max_funl: underflows should be kept such that
* (tx_max_funfl*underflows) < tx frames * (tx_max_funfl*underflows) < tx frames
...@@ -132,7 +131,6 @@ struct ampdu_info { ...@@ -132,7 +131,6 @@ struct ampdu_info {
u8 rx_factor; u8 rx_factor;
u32 ffpld_rsvd; u32 ffpld_rsvd;
u32 max_txlen[MCS_TABLE_SIZE][2][2]; u32 max_txlen[MCS_TABLE_SIZE][2][2];
void *ini_free[AMPDU_INI_FREE];
bool mfbr; bool mfbr;
u32 tx_max_funl; u32 tx_max_funl;
struct brcms_fifo_info fifo_tb[NUM_FFPLD_FIFO]; struct brcms_fifo_info fifo_tb[NUM_FFPLD_FIFO];
...@@ -231,18 +229,6 @@ struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc) ...@@ -231,18 +229,6 @@ struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc)
void brcms_c_ampdu_detach(struct ampdu_info *ampdu) void brcms_c_ampdu_detach(struct ampdu_info *ampdu)
{ {
int i;
if (!ampdu)
return;
/*
* free all ini's which were to be freed on
* callbacks which were never called
*/
for (i = 0; i < AMPDU_INI_FREE; i++)
kfree(ampdu->ini_free[i]);
kfree(ampdu); kfree(ampdu);
} }
......
...@@ -229,7 +229,6 @@ struct dma_seg { ...@@ -229,7 +229,6 @@ struct dma_seg {
}; };
struct dma_seg_map { struct dma_seg_map {
void *oshdmah; /* Opaque handle for OSL to store its information */
uint origsize; /* Size of the virtual packet */ uint origsize; /* Size of the virtual packet */
uint nsegs; uint nsegs;
struct dma_seg segs[MAX_DMA_SEGS]; struct dma_seg segs[MAX_DMA_SEGS];
......
...@@ -802,7 +802,7 @@ static struct brcms_info *brcms_attach(u16 vendor, u16 device, ...@@ -802,7 +802,7 @@ static struct brcms_info *brcms_attach(u16 vendor, u16 device,
} }
/* common load-time initialization */ /* common load-time initialization */
wl->wlc = brcms_c_attach((void *)wl, vendor, device, unit, false, wl->wlc = brcms_c_attach(wl, vendor, device, unit, false,
wl->regsva, btparam, &err); wl->regsva, btparam, &err);
brcms_release_fw(wl); brcms_release_fw(wl);
if (!wl->wlc) { if (!wl->wlc) {
...@@ -1782,7 +1782,7 @@ static int brcms_request_fw(struct brcms_info *wl, struct pci_dev *pdev) ...@@ -1782,7 +1782,7 @@ static int brcms_request_fw(struct brcms_info *wl, struct pci_dev *pdev)
char fw_name[100]; char fw_name[100];
int i; int i;
memset((void *)&wl->fw, 0, sizeof(struct brcms_firmware)); memset(&wl->fw, 0, sizeof(struct brcms_firmware));
for (i = 0; i < MAX_FW_IMAGES; i++) { for (i = 0; i < MAX_FW_IMAGES; i++) {
if (brcms_firmwares[i] == NULL) if (brcms_firmwares[i] == NULL)
break; break;
......
...@@ -51,8 +51,8 @@ struct brcms_firmware { ...@@ -51,8 +51,8 @@ struct brcms_firmware {
}; };
struct brcms_info { struct brcms_info {
struct brcms_pub *pub; /* pointer to public wlc state */ struct brcms_pub *pub; /* pointer to public wlc state */
void *wlc; /* pointer to private common data */ struct brcms_c_info *wlc; /* pointer to private common data */
u32 magic; u32 magic;
int irq; int irq;
......
...@@ -367,9 +367,9 @@ static u32 brcms_c_wlintrsoff(struct brcms_c_info *wlc); ...@@ -367,9 +367,9 @@ static u32 brcms_c_wlintrsoff(struct brcms_c_info *wlc);
static void brcms_c_wlintrsrestore(struct brcms_c_info *wlc, u32 macintmask); static void brcms_c_wlintrsrestore(struct brcms_c_info *wlc, u32 macintmask);
static void brcms_c_gpio_init(struct brcms_c_info *wlc); static void brcms_c_gpio_init(struct brcms_c_info *wlc);
static void brcms_c_write_hw_bcntemplate0(struct brcms_hardware *wlc_hw, static void brcms_c_write_hw_bcntemplate0(struct brcms_hardware *wlc_hw,
void *bcn, int len); u16 bcn[], int len);
static void brcms_c_write_hw_bcntemplate1(struct brcms_hardware *wlc_hw, static void brcms_c_write_hw_bcntemplate1(struct brcms_hardware *wlc_hw,
void *bcn, int len); u16 bcn[], int len);
static void brcms_b_bsinit(struct brcms_c_info *wlc, u16 chanspec); static void brcms_b_bsinit(struct brcms_c_info *wlc, u16 chanspec);
static u32 brcms_c_setband_inact(struct brcms_c_info *wlc, uint bandunit); static u32 brcms_c_setband_inact(struct brcms_c_info *wlc, uint bandunit);
static void brcms_b_setband(struct brcms_hardware *wlc_hw, uint bandunit, static void brcms_b_setband(struct brcms_hardware *wlc_hw, uint bandunit,
...@@ -457,6 +457,8 @@ static uint brcms_c_down_del_timer(struct brcms_c_info *wlc); ...@@ -457,6 +457,8 @@ static uint brcms_c_down_del_timer(struct brcms_c_info *wlc);
static void brcms_c_ofdm_rateset_war(struct brcms_c_info *wlc); static void brcms_c_ofdm_rateset_war(struct brcms_c_info *wlc);
static int _brcms_c_ioctl(struct brcms_c_info *wlc, int cmd, void *arg, int len, static int _brcms_c_ioctl(struct brcms_c_info *wlc, int cmd, void *arg, int len,
struct brcms_c_if *wlcif); struct brcms_c_if *wlcif);
static void brcms_c_write_hw_bcntemplates(struct brcms_c_info *wlc, u16 bcn[],
int len, bool both);
const u8 prio2fifo[NUMPRIO] = { const u8 prio2fifo[NUMPRIO] = {
TX_AC_BE_FIFO, /* 0 BE AC_BE Best Effort */ TX_AC_BE_FIFO, /* 0 BE AC_BE Best Effort */
...@@ -1375,7 +1377,7 @@ void brcms_b_bw_set(struct brcms_hardware *wlc_hw, u16 bw) ...@@ -1375,7 +1377,7 @@ void brcms_b_bw_set(struct brcms_hardware *wlc_hw, u16 bw)
} }
static void static void
brcms_c_write_hw_bcntemplate0(struct brcms_hardware *wlc_hw, void *bcn, brcms_c_write_hw_bcntemplate0(struct brcms_hardware *wlc_hw, u16 bcn[],
int len) int len)
{ {
struct d11regs *regs = wlc_hw->regs; struct d11regs *regs = wlc_hw->regs;
...@@ -1389,7 +1391,7 @@ brcms_c_write_hw_bcntemplate0(struct brcms_hardware *wlc_hw, void *bcn, ...@@ -1389,7 +1391,7 @@ brcms_c_write_hw_bcntemplate0(struct brcms_hardware *wlc_hw, void *bcn,
} }
static void static void
brcms_c_write_hw_bcntemplate1(struct brcms_hardware *wlc_hw, void *bcn, brcms_c_write_hw_bcntemplate1(struct brcms_hardware *wlc_hw, u16 bcn[],
int len) int len)
{ {
struct d11regs *regs = wlc_hw->regs; struct d11regs *regs = wlc_hw->regs;
...@@ -4287,9 +4289,9 @@ static uint brcms_c_attach_module(struct brcms_c_info *wlc) ...@@ -4287,9 +4289,9 @@ static uint brcms_c_attach_module(struct brcms_c_info *wlc)
return err; return err;
} }
struct brcms_pub *brcms_c_pub(void *wlc) struct brcms_pub *brcms_c_pub(struct brcms_c_info *wlc)
{ {
return ((struct brcms_c_info *) wlc)->pub; return wlc->pub;
} }
#define CHIP_SUPPORTS_11N(wlc) 1 #define CHIP_SUPPORTS_11N(wlc) 1
...@@ -4644,7 +4646,7 @@ int brcms_b_attach(struct brcms_c_info *wlc, u16 vendor, u16 device, uint unit, ...@@ -4644,7 +4646,7 @@ int brcms_b_attach(struct brcms_c_info *wlc, u16 vendor, u16 device, uint unit,
/* /*
* The common driver entry routine. Error codes should be unique * The common driver entry routine. Error codes should be unique
*/ */
void * struct brcms_c_info *
brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, uint unit, brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, uint unit,
bool piomode, void *regsva, struct pci_dev *btparam, uint *perr) bool piomode, void *regsva, struct pci_dev *btparam, uint *perr)
{ {
...@@ -4884,7 +4886,7 @@ brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, uint unit, ...@@ -4884,7 +4886,7 @@ brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, uint unit,
if (perr) if (perr)
*perr = 0; *perr = 0;
return (void *)wlc; return wlc;
fail: fail:
wiphy_err(wl->wiphy, "wl%d: %s: failed with err %d\n", wiphy_err(wl->wiphy, "wl%d: %s: failed with err %d\n",
...@@ -6319,7 +6321,7 @@ _brcms_c_ioctl(struct brcms_c_info *wlc, int cmd, void *arg, int len, ...@@ -6319,7 +6321,7 @@ _brcms_c_ioctl(struct brcms_c_info *wlc, int cmd, void *arg, int len,
* register watchdog and down handlers. * register watchdog and down handlers.
*/ */
int brcms_c_module_register(struct brcms_pub *pub, int brcms_c_module_register(struct brcms_pub *pub,
const char *name, void *hdl, const char *name, struct brcms_info *hdl,
int (*d_fn)(void *handle)) int (*d_fn)(void *handle))
{ {
struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc;
...@@ -6340,8 +6342,8 @@ int brcms_c_module_register(struct brcms_pub *pub, ...@@ -6340,8 +6342,8 @@ int brcms_c_module_register(struct brcms_pub *pub,
} }
/* unregister module callbacks */ /* unregister module callbacks */
int int brcms_c_module_unregister(struct brcms_pub *pub, const char *name,
brcms_c_module_unregister(struct brcms_pub *pub, const char *name, void *hdl) struct brcms_info *hdl)
{ {
struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc; struct brcms_c_info *wlc = (struct brcms_c_info *) pub->wlc;
int i; int i;
...@@ -6668,8 +6670,8 @@ static u16 brcms_c_rate_shm_offset(struct brcms_c_info *wlc, u8 rate) ...@@ -6668,8 +6670,8 @@ static u16 brcms_c_rate_shm_offset(struct brcms_c_info *wlc, u8 rate)
* *
* Returns true if packet consumed (queued), false if not. * Returns true if packet consumed (queued), false if not.
*/ */
bool bool brcms_c_prec_enq(struct brcms_c_info *wlc, struct pktq *q,
brcms_c_prec_enq(struct brcms_c_info *wlc, struct pktq *q, void *pkt, int prec) struct sk_buff *pkt, int prec)
{ {
return brcms_c_prec_enq_head(wlc, q, pkt, prec, false); return brcms_c_prec_enq_head(wlc, q, pkt, prec, false);
} }
...@@ -6721,10 +6723,9 @@ brcms_c_prec_enq_head(struct brcms_c_info *wlc, struct pktq *q, ...@@ -6721,10 +6723,9 @@ brcms_c_prec_enq_head(struct brcms_c_info *wlc, struct pktq *q,
return true; return true;
} }
void brcms_c_txq_enq(void *ctx, struct scb *scb, struct sk_buff *sdu, void brcms_c_txq_enq(struct brcms_c_info *wlc, struct scb *scb,
uint prec) struct sk_buff *sdu, uint prec)
{ {
struct brcms_c_info *wlc = (struct brcms_c_info *) ctx;
struct brcms_txq_info *qi = wlc->pkt_queue; /* Check me */ struct brcms_txq_info *qi = wlc->pkt_queue; /* Check me */
struct pktq *q = &qi->q; struct pktq *q = &qi->q;
int prio; int prio;
...@@ -6767,7 +6768,6 @@ brcms_c_sendpkt_mac80211(struct brcms_c_info *wlc, struct sk_buff *sdu, ...@@ -6767,7 +6768,6 @@ brcms_c_sendpkt_mac80211(struct brcms_c_info *wlc, struct sk_buff *sdu,
{ {
u8 prio; u8 prio;
uint fifo; uint fifo;
void *pkt;
struct scb *scb = &global_scb; struct scb *scb = &global_scb;
struct ieee80211_hdr *d11_header = (struct ieee80211_hdr *)(sdu->data); struct ieee80211_hdr *d11_header = (struct ieee80211_hdr *)(sdu->data);
...@@ -6778,12 +6778,11 @@ brcms_c_sendpkt_mac80211(struct brcms_c_info *wlc, struct sk_buff *sdu, ...@@ -6778,12 +6778,11 @@ brcms_c_sendpkt_mac80211(struct brcms_c_info *wlc, struct sk_buff *sdu,
prio = ieee80211_is_data(d11_header->frame_control) ? sdu->priority : prio = ieee80211_is_data(d11_header->frame_control) ? sdu->priority :
MAXPRIO; MAXPRIO;
fifo = prio2fifo[prio]; fifo = prio2fifo[prio];
pkt = sdu;
if (unlikely if (unlikely
(brcms_c_d11hdrs_mac80211( (brcms_c_d11hdrs_mac80211(
wlc, hw, pkt, scb, 0, 1, fifo, 0, NULL, 0))) wlc, hw, sdu, scb, 0, 1, fifo, 0, NULL, 0)))
return -EINVAL; return -EINVAL;
brcms_c_txq_enq(wlc, scb, pkt, BRCMS_PRIO_TO_PREC(prio)); brcms_c_txq_enq(wlc, scb, sdu, BRCMS_PRIO_TO_PREC(prio));
brcms_c_send_q(wlc); brcms_c_send_q(wlc);
return 0; return 0;
} }
...@@ -8969,7 +8968,7 @@ int brcms_c_get_header_len() ...@@ -8969,7 +8968,7 @@ int brcms_c_get_header_len()
/* mac is assumed to be suspended at this point */ /* mac is assumed to be suspended at this point */
void void
brcms_b_write_hw_bcntemplates(struct brcms_hardware *wlc_hw, void *bcn, brcms_b_write_hw_bcntemplates(struct brcms_hardware *wlc_hw, u16 bcn[],
int len, bool both) int len, bool both)
{ {
struct d11regs *regs = wlc_hw->regs; struct d11regs *regs = wlc_hw->regs;
...@@ -9424,8 +9423,8 @@ void brcms_c_write_template_ram(struct brcms_c_info *wlc, int offset, int len, ...@@ -9424,8 +9423,8 @@ void brcms_c_write_template_ram(struct brcms_c_info *wlc, int offset, int len,
brcms_b_write_template_ram(wlc->hw, offset, len, buf); brcms_b_write_template_ram(wlc->hw, offset, len, buf);
} }
void brcms_c_write_hw_bcntemplates(struct brcms_c_info *wlc, void *bcn, int len, void brcms_c_write_hw_bcntemplates(struct brcms_c_info *wlc, u16 bcn[], int len,
bool both) bool both)
{ {
brcms_b_write_hw_bcntemplates(wlc->hw, bcn, len, both); brcms_b_write_hw_bcntemplates(wlc->hw, bcn, len, both);
} }
......
...@@ -461,7 +461,7 @@ struct modulecb { ...@@ -461,7 +461,7 @@ struct modulecb {
/* iovar table */ /* iovar table */
const struct brcmu_iovar *iovars; const struct brcmu_iovar *iovars;
/* handle passed when handler 'doiovar' is called */ /* handle passed when handler 'doiovar' is called */
void *hdl; struct brcms_info *hdl;
/* IOVar handler /* IOVar handler
* *
...@@ -491,15 +491,6 @@ struct modulecb { ...@@ -491,15 +491,6 @@ struct modulecb {
}; };
/* dump control blocks */
struct dumpcb_s {
const char *name; /* dump name */
/* 'wl dump' handler */
int (*dump_fn)(void *handle, struct brcmu_strbuf *b);
void *dump_fn_arg;
struct dumpcb_s *next;
};
struct edcf_acparam { struct edcf_acparam {
u8 ACI; u8 ACI;
u8 ECW; u8 ECW;
...@@ -580,8 +571,8 @@ struct brcms_hardware { ...@@ -580,8 +571,8 @@ struct brcms_hardware {
char *vars; /* "environment" name=value */ char *vars; /* "environment" name=value */
uint vars_size; /* size of vars, free vars on detach */ uint vars_size; /* size of vars, free vars on detach */
struct d11regs *regs; /* pointer to device registers */ struct d11regs *regs; /* pointer to device registers */
void *physhim; /* phy shim layer handler */ struct phy_shim_info *physhim; /* phy shim layer handler */
void *phy_sh; /* pointer to shared phy state */ struct shared_phy *phy_sh; /* pointer to shared phy state */
struct brcms_hw_band *band;/* pointer to active per-band state */ struct brcms_hw_band *band;/* pointer to active per-band state */
/* band state per phy/radio */ /* band state per phy/radio */
struct brcms_hw_band *bandstate[MAXBANDS]; struct brcms_hw_band *bandstate[MAXBANDS];
...@@ -1082,16 +1073,14 @@ extern void brcms_c_txfifo(struct brcms_c_info *wlc, uint fifo, ...@@ -1082,16 +1073,14 @@ extern void brcms_c_txfifo(struct brcms_c_info *wlc, uint fifo,
bool commit, s8 txpktpend); bool commit, s8 txpktpend);
extern void brcms_c_txfifo_complete(struct brcms_c_info *wlc, uint fifo, extern void brcms_c_txfifo_complete(struct brcms_c_info *wlc, uint fifo,
s8 txpktpend); s8 txpktpend);
extern void brcms_c_txq_enq(void *ctx, struct scb *scb, struct sk_buff *sdu, extern void brcms_c_txq_enq(struct brcms_c_info *wlc, struct scb *scb,
uint prec); struct sk_buff *sdu, uint prec);
extern void brcms_c_info_init(struct brcms_c_info *wlc, int unit); extern void brcms_c_info_init(struct brcms_c_info *wlc, int unit);
extern void brcms_c_print_txstatus(struct tx_status *txs); extern void brcms_c_print_txstatus(struct tx_status *txs);
extern int brcms_c_xmtfifo_sz_get(struct brcms_c_info *wlc, uint fifo, extern int brcms_c_xmtfifo_sz_get(struct brcms_c_info *wlc, uint fifo,
uint *blocks); uint *blocks);
extern void brcms_c_write_template_ram(struct brcms_c_info *wlc, int offset, extern void brcms_c_write_template_ram(struct brcms_c_info *wlc, int offset,
int len, void *buf); int len, void *buf);
extern void brcms_c_write_hw_bcntemplates(struct brcms_c_info *wlc, void *bcn,
int len, bool both);
extern void brcms_c_pllreq(struct brcms_c_info *wlc, bool set, u32 req_bit); extern void brcms_c_pllreq(struct brcms_c_info *wlc, bool set, u32 req_bit);
extern void brcms_c_reset_bmac_done(struct brcms_c_info *wlc); extern void brcms_c_reset_bmac_done(struct brcms_c_info *wlc);
...@@ -1168,8 +1157,6 @@ extern void brcms_c_bss_update_probe_resp(struct brcms_c_info *wlc, ...@@ -1168,8 +1157,6 @@ extern void brcms_c_bss_update_probe_resp(struct brcms_c_info *wlc,
extern bool brcms_c_ismpc(struct brcms_c_info *wlc); extern bool brcms_c_ismpc(struct brcms_c_info *wlc);
extern bool brcms_c_is_non_delay_mpc(struct brcms_c_info *wlc); extern bool brcms_c_is_non_delay_mpc(struct brcms_c_info *wlc);
extern void brcms_c_radio_mpc_upd(struct brcms_c_info *wlc); extern void brcms_c_radio_mpc_upd(struct brcms_c_info *wlc);
extern bool brcms_c_prec_enq(struct brcms_c_info *wlc, struct pktq *q,
void *pkt, int prec);
extern bool brcms_c_prec_enq_head(struct brcms_c_info *wlc, struct pktq *q, extern bool brcms_c_prec_enq_head(struct brcms_c_info *wlc, struct pktq *q,
struct sk_buff *pkt, int prec, bool head); struct sk_buff *pkt, int prec, bool head);
extern u16 brcms_c_phytxctl1_calc(struct brcms_c_info *wlc, u32 rspec); extern u16 brcms_c_phytxctl1_calc(struct brcms_c_info *wlc, u32 rspec);
......
...@@ -31,12 +31,13 @@ ...@@ -31,12 +31,13 @@
/* PHY SHIM module specific state */ /* PHY SHIM module specific state */
struct phy_shim_info { struct phy_shim_info {
struct brcms_hardware *wlc_hw; /* pointer to main wlc_hw structure */ struct brcms_hardware *wlc_hw; /* pointer to main wlc_hw structure */
void *wlc; /* pointer to main wlc structure */ struct brcms_c_info *wlc; /* pointer to main wlc structure */
void *wl; /* pointer to os-specific private state */ struct brcms_info *wl; /* pointer to os-specific private state */
}; };
struct phy_shim_info *wlc_phy_shim_attach(struct brcms_hardware *wlc_hw, struct phy_shim_info *wlc_phy_shim_attach(struct brcms_hardware *wlc_hw,
void *wl, void *wlc) { struct brcms_info *wl,
struct brcms_c_info *wlc) {
struct phy_shim_info *physhim = NULL; struct phy_shim_info *physhim = NULL;
physhim = kzalloc(sizeof(struct phy_shim_info), GFP_ATOMIC); physhim = kzalloc(sizeof(struct phy_shim_info), GFP_ATOMIC);
......
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
struct brcms_phy; struct brcms_phy;
extern struct phy_shim_info *wlc_phy_shim_attach(struct brcms_hardware *wlc_hw, extern struct phy_shim_info *wlc_phy_shim_attach(struct brcms_hardware *wlc_hw,
void *wl, void *wlc); struct brcms_info *wl,
struct brcms_c_info *wlc);
extern void wlc_phy_shim_detach(struct phy_shim_info *physhim); extern void wlc_phy_shim_detach(struct phy_shim_info *physhim);
/* PHY to WL utility functions */ /* PHY to WL utility functions */
......
...@@ -228,8 +228,7 @@ struct brcms_bss_info { ...@@ -228,8 +228,7 @@ struct brcms_bss_info {
* The wlc handle points at this. * The wlc handle points at this.
*/ */
struct brcms_pub { struct brcms_pub {
void *wlc; struct brcms_c_info *wlc;
struct ieee80211_hw *ieee_hw; struct ieee80211_hw *ieee_hw;
struct scb *global_scb; struct scb *global_scb;
struct scb_ampdu *global_ampdu; struct scb_ampdu *global_ampdu;
...@@ -549,9 +548,9 @@ struct brcms_antselcfg { ...@@ -549,9 +548,9 @@ struct brcms_antselcfg {
}; };
/* common functions for every port */ /* common functions for every port */
extern void *brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, struct brcms_c_info *
uint unit, bool piomode, void *regsva, brcms_c_attach(struct brcms_info *wl, u16 vendor, u16 device, uint unit,
struct pci_dev *btparam, uint *perr); bool piomode, void *regsva, struct pci_dev *btparam, uint *perr);
extern uint brcms_c_detach(struct brcms_c_info *wlc); extern uint brcms_c_detach(struct brcms_c_info *wlc);
extern int brcms_c_up(struct brcms_c_info *wlc); extern int brcms_c_up(struct brcms_c_info *wlc);
extern uint brcms_c_down(struct brcms_c_info *wlc); extern uint brcms_c_down(struct brcms_c_info *wlc);
...@@ -588,7 +587,7 @@ extern void brcms_c_set_addrmatch(struct brcms_c_info *wlc, ...@@ -588,7 +587,7 @@ extern void brcms_c_set_addrmatch(struct brcms_c_info *wlc,
extern void brcms_c_wme_setparams(struct brcms_c_info *wlc, u16 aci, extern void brcms_c_wme_setparams(struct brcms_c_info *wlc, u16 aci,
const struct ieee80211_tx_queue_params *arg, const struct ieee80211_tx_queue_params *arg,
bool suspend); bool suspend);
extern struct brcms_pub *brcms_c_pub(void *wlc); extern struct brcms_pub *brcms_c_pub(struct brcms_c_info *wlc);
/* common functions for every port */ /* common functions for every port */
extern void brcms_c_mhf(struct brcms_c_info *wlc, u8 idx, u16 mask, u16 val, extern void brcms_c_mhf(struct brcms_c_info *wlc, u8 idx, u16 mask, u16 val,
...@@ -614,11 +613,10 @@ extern void brcms_c_set_ps_ctrl(struct brcms_c_info *wlc); ...@@ -614,11 +613,10 @@ extern void brcms_c_set_ps_ctrl(struct brcms_c_info *wlc);
extern void brcms_c_mctrl(struct brcms_c_info *wlc, u32 mask, u32 val); extern void brcms_c_mctrl(struct brcms_c_info *wlc, u32 mask, u32 val);
extern int brcms_c_module_register(struct brcms_pub *pub, extern int brcms_c_module_register(struct brcms_pub *pub,
const char *name, void *hdl, const char *name, struct brcms_info *hdl,
int (*down_fn)(void *handle)); int (*down_fn)(void *handle));
extern int brcms_c_module_unregister(struct brcms_pub *pub, const char *name, extern int brcms_c_module_unregister(struct brcms_pub *pub, const char *name,
void *hdl); struct brcms_info *hdl);
extern void brcms_c_suspend_mac_and_wait(struct brcms_c_info *wlc); extern void brcms_c_suspend_mac_and_wait(struct brcms_c_info *wlc);
extern void brcms_c_enable_mac(struct brcms_c_info *wlc); extern void brcms_c_enable_mac(struct brcms_c_info *wlc);
extern void brcms_c_associate_upd(struct brcms_c_info *wlc, bool state); extern void brcms_c_associate_upd(struct brcms_c_info *wlc, bool state);
......
...@@ -63,7 +63,6 @@ struct scb { ...@@ -63,7 +63,6 @@ struct scb {
u32 flags2; /* various bit flags2 as defined below */ u32 flags2; /* various bit flags2 as defined below */
u8 state; /* current state bitfield of auth/assoc process */ u8 state; /* current state bitfield of auth/assoc process */
u8 ea[ETH_ALEN]; /* station address */ u8 ea[ETH_ALEN]; /* station address */
void *fragbuf[NUMPRIO]; /* defragmentation buffer per prio */
uint fragresid[NUMPRIO];/* #bytes unused in frag buffer per prio */ uint fragresid[NUMPRIO];/* #bytes unused in frag buffer per prio */
u16 seqctl[NUMPRIO]; /* seqctl of last received frame (for dups) */ u16 seqctl[NUMPRIO]; /* seqctl of last received frame (for dups) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment