xref: /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/antsel.h (revision b4c3e9b5b09c829b4135aff738bd2893ed052377)
1*b4c3e9b5SBjoern A. Zeeb /*
2*b4c3e9b5SBjoern A. Zeeb  * Copyright (c) 2010 Broadcom Corporation
3*b4c3e9b5SBjoern A. Zeeb  *
4*b4c3e9b5SBjoern A. Zeeb  * Permission to use, copy, modify, and/or distribute this software for any
5*b4c3e9b5SBjoern A. Zeeb  * purpose with or without fee is hereby granted, provided that the above
6*b4c3e9b5SBjoern A. Zeeb  * copyright notice and this permission notice appear in all copies.
7*b4c3e9b5SBjoern A. Zeeb  *
8*b4c3e9b5SBjoern A. Zeeb  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*b4c3e9b5SBjoern A. Zeeb  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*b4c3e9b5SBjoern A. Zeeb  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11*b4c3e9b5SBjoern A. Zeeb  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*b4c3e9b5SBjoern A. Zeeb  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13*b4c3e9b5SBjoern A. Zeeb  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14*b4c3e9b5SBjoern A. Zeeb  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*b4c3e9b5SBjoern A. Zeeb  */
16*b4c3e9b5SBjoern A. Zeeb 
17*b4c3e9b5SBjoern A. Zeeb #ifndef _BRCM_ANTSEL_H_
18*b4c3e9b5SBjoern A. Zeeb #define _BRCM_ANTSEL_H_
19*b4c3e9b5SBjoern A. Zeeb 
20*b4c3e9b5SBjoern A. Zeeb struct antsel_info *brcms_c_antsel_attach(struct brcms_c_info *wlc);
21*b4c3e9b5SBjoern A. Zeeb void brcms_c_antsel_detach(struct antsel_info *asi);
22*b4c3e9b5SBjoern A. Zeeb void brcms_c_antsel_init(struct antsel_info *asi);
23*b4c3e9b5SBjoern A. Zeeb void brcms_c_antsel_antcfg_get(struct antsel_info *asi, bool usedef, bool sel,
24*b4c3e9b5SBjoern A. Zeeb 			       u8 id, u8 fbid, u8 *antcfg, u8 *fbantcfg);
25*b4c3e9b5SBjoern A. Zeeb u8 brcms_c_antsel_antsel2id(struct antsel_info *asi, u16 antsel);
26*b4c3e9b5SBjoern A. Zeeb 
27*b4c3e9b5SBjoern A. Zeeb #endif /* _BRCM_ANTSEL_H_ */
28