aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/sys/wlc_pub.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/brcm80211/sys/wlc_pub.h')
-rw-r--r--drivers/staging/brcm80211/sys/wlc_pub.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/staging/brcm80211/sys/wlc_pub.h b/drivers/staging/brcm80211/sys/wlc_pub.h
index 94338c45cfd..a5735553faa 100644
--- a/drivers/staging/brcm80211/sys/wlc_pub.h
+++ b/drivers/staging/brcm80211/sys/wlc_pub.h
@@ -240,7 +240,7 @@ typedef int (*dump_fn_t) (void *handle, struct bcmstrbuf *b);
240 * All pointers may point into the same buffer. 240 * All pointers may point into the same buffer.
241 */ 241 */
242typedef int (*iovar_fn_t) (void *handle, const bcm_iovar_t *vi, 242typedef int (*iovar_fn_t) (void *handle, const bcm_iovar_t *vi,
243 uint32 actionid, const char *name, void *params, 243 u32 actionid, const char *name, void *params,
244 uint plen, void *arg, int alen, int vsize, 244 uint plen, void *arg, int alen, int vsize,
245 struct wlc_if *wlcif); 245 struct wlc_if *wlcif);
246 246
@@ -296,13 +296,13 @@ typedef struct wlc_pub {
296 struct ether_addr *multicast; /* ptr to list of multicast addresses */ 296 struct ether_addr *multicast; /* ptr to list of multicast addresses */
297 uint nmulticast; /* # enabled multicast addresses */ 297 uint nmulticast; /* # enabled multicast addresses */
298 298
299 uint32 wlfeatureflag; /* Flags to control sw features from registry */ 299 u32 wlfeatureflag; /* Flags to control sw features from registry */
300 int psq_pkts_total; /* total num of ps pkts */ 300 int psq_pkts_total; /* total num of ps pkts */
301 301
302 u16 txmaxpkts; /* max number of large pkts allowed to be pending */ 302 u16 txmaxpkts; /* max number of large pkts allowed to be pending */
303 303
304 /* s/w decryption counters */ 304 /* s/w decryption counters */
305 uint32 swdecrypt; /* s/w decrypt attempts */ 305 u32 swdecrypt; /* s/w decrypt attempts */
306 306
307 int bcmerror; /* last bcm error */ 307 int bcmerror; /* last bcm error */
308 308
@@ -325,8 +325,8 @@ typedef struct wlc_pub {
325 u16 boardrev; /* version # of particular board */ 325 u16 boardrev; /* version # of particular board */
326 u8 sromrev; /* version # of the srom */ 326 u8 sromrev; /* version # of the srom */
327 char srom_ccode[WLC_CNTRY_BUF_SZ]; /* Country Code in SROM */ 327 char srom_ccode[WLC_CNTRY_BUF_SZ]; /* Country Code in SROM */
328 uint32 boardflags; /* Board specific flags from srom */ 328 u32 boardflags; /* Board specific flags from srom */
329 uint32 boardflags2; /* More board flags if sromrev >= 4 */ 329 u32 boardflags2; /* More board flags if sromrev >= 4 */
330 bool tempsense_disable; /* disable periodic tempsense check */ 330 bool tempsense_disable; /* disable periodic tempsense check */
331 331
332 bool _lmac; /* lmac module included and enabled */ 332 bool _lmac; /* lmac module included and enabled */
@@ -343,7 +343,7 @@ typedef struct wl_rxsts {
343 uint datarate; /* rate in 500kbps */ 343 uint datarate; /* rate in 500kbps */
344 uint antenna; /* antenna pkts received on */ 344 uint antenna; /* antenna pkts received on */
345 uint pktlength; /* pkt length minus bcm phy hdr */ 345 uint pktlength; /* pkt length minus bcm phy hdr */
346 uint32 mactime; /* time stamp from mac, count per 1us */ 346 u32 mactime; /* time stamp from mac, count per 1us */
347 uint sq; /* signal quality */ 347 uint sq; /* signal quality */
348 int32 signal; /* in dbm */ 348 int32 signal; /* in dbm */
349 int32 noise; /* in dbm */ 349 int32 noise; /* in dbm */
@@ -512,8 +512,8 @@ extern void wlc_init(struct wlc_info *wlc);
512extern void wlc_reset(struct wlc_info *wlc); 512extern void wlc_reset(struct wlc_info *wlc);
513 513
514extern void wlc_intrson(struct wlc_info *wlc); 514extern void wlc_intrson(struct wlc_info *wlc);
515extern uint32 wlc_intrsoff(struct wlc_info *wlc); 515extern u32 wlc_intrsoff(struct wlc_info *wlc);
516extern void wlc_intrsrestore(struct wlc_info *wlc, uint32 macintmask); 516extern void wlc_intrsrestore(struct wlc_info *wlc, u32 macintmask);
517extern bool wlc_intrsupd(struct wlc_info *wlc); 517extern bool wlc_intrsupd(struct wlc_info *wlc);
518extern bool wlc_isr(struct wlc_info *wlc, bool *wantdpc); 518extern bool wlc_isr(struct wlc_info *wlc, bool *wantdpc);
519extern bool wlc_dpc(struct wlc_info *wlc, bool bounded); 519extern bool wlc_dpc(struct wlc_info *wlc, bool bounded);
@@ -536,19 +536,19 @@ extern int wlc_bmac_up_finish(struct wlc_hw_info *wlc_hw);
536extern int wlc_bmac_down_prep(struct wlc_hw_info *wlc_hw); 536extern int wlc_bmac_down_prep(struct wlc_hw_info *wlc_hw);
537extern int wlc_bmac_down_finish(struct wlc_hw_info *wlc_hw); 537extern int wlc_bmac_down_finish(struct wlc_hw_info *wlc_hw);
538 538
539extern uint32 wlc_reg_read(struct wlc_info *wlc, void *r, uint size); 539extern u32 wlc_reg_read(struct wlc_info *wlc, void *r, uint size);
540extern void wlc_reg_write(struct wlc_info *wlc, void *r, uint32 v, uint size); 540extern void wlc_reg_write(struct wlc_info *wlc, void *r, u32 v, uint size);
541extern void wlc_corereset(struct wlc_info *wlc, uint32 flags); 541extern void wlc_corereset(struct wlc_info *wlc, u32 flags);
542extern void wlc_mhf(struct wlc_info *wlc, u8 idx, u16 mask, u16 val, 542extern void wlc_mhf(struct wlc_info *wlc, u8 idx, u16 mask, u16 val,
543 int bands); 543 int bands);
544extern u16 wlc_mhf_get(struct wlc_info *wlc, u8 idx, int bands); 544extern u16 wlc_mhf_get(struct wlc_info *wlc, u8 idx, int bands);
545extern uint32 wlc_delta_txfunfl(struct wlc_info *wlc, int fifo); 545extern u32 wlc_delta_txfunfl(struct wlc_info *wlc, int fifo);
546extern void wlc_rate_lookup_init(struct wlc_info *wlc, wlc_rateset_t *rateset); 546extern void wlc_rate_lookup_init(struct wlc_info *wlc, wlc_rateset_t *rateset);
547extern void wlc_default_rateset(struct wlc_info *wlc, wlc_rateset_t *rs); 547extern void wlc_default_rateset(struct wlc_info *wlc, wlc_rateset_t *rs);
548 548
549/* wlc_phy.c helper functions */ 549/* wlc_phy.c helper functions */
550extern void wlc_set_ps_ctrl(struct wlc_info *wlc); 550extern void wlc_set_ps_ctrl(struct wlc_info *wlc);
551extern void wlc_mctrl(struct wlc_info *wlc, uint32 mask, uint32 val); 551extern void wlc_mctrl(struct wlc_info *wlc, u32 mask, u32 val);
552extern void wlc_scb_ratesel_init_all(struct wlc_info *wlc); 552extern void wlc_scb_ratesel_init_all(struct wlc_info *wlc);
553 553
554/* ioctl */ 554/* ioctl */
@@ -566,8 +566,8 @@ extern void wlc_event_if(struct wlc_info *wlc, struct wlc_bsscfg *cfg,
566extern void wlc_suspend_mac_and_wait(struct wlc_info *wlc); 566extern void wlc_suspend_mac_and_wait(struct wlc_info *wlc);
567extern void wlc_enable_mac(struct wlc_info *wlc); 567extern void wlc_enable_mac(struct wlc_info *wlc);
568extern u16 wlc_rate_shm_offset(struct wlc_info *wlc, u8 rate); 568extern u16 wlc_rate_shm_offset(struct wlc_info *wlc, u8 rate);
569extern uint32 wlc_get_rspec_history(struct wlc_bsscfg *cfg); 569extern u32 wlc_get_rspec_history(struct wlc_bsscfg *cfg);
570extern uint32 wlc_get_current_highest_rate(struct wlc_bsscfg *cfg); 570extern u32 wlc_get_current_highest_rate(struct wlc_bsscfg *cfg);
571 571
572static inline int wlc_iovar_getuint(struct wlc_info *wlc, const char *name, 572static inline int wlc_iovar_getuint(struct wlc_info *wlc, const char *name,
573 uint *arg) 573 uint *arg)
@@ -621,7 +621,7 @@ extern void wlc_pmkid_event(struct wlc_bsscfg *cfg);
621void wlc_device_removed(void *arg); 621void wlc_device_removed(void *arg);
622#endif 622#endif
623 623
624/* BMAC RPC: 7 uint32 params: pkttotlen, fifo, commit, fid, txpktpend, pktflag, rpc_id */ 624/* BMAC RPC: 7 u32 params: pkttotlen, fifo, commit, fid, txpktpend, pktflag, rpc_id */
625#define WLC_RPCTX_PARAMS 32 625#define WLC_RPCTX_PARAMS 32
626 626
627#endif /* _wlc_pub_h_ */ 627#endif /* _wlc_pub_h_ */