/*-1* Copyright (c) 2009-2010 Weongyo Jeong <[email protected]>2* All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer,9* without modification.10* 2. Redistributions in binary form must reproduce at minimum a disclaimer11* similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any12* redistribution must be conditioned upon including a substantially13* similar Disclaimer requirement for further binary redistribution.14*15* NO WARRANTY16* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS17* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT18* LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY19* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL20* THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,21* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF22* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS23* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER24* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)25* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF26* THE POSSIBILITY OF SUCH DAMAGES.27*/2829#ifndef __IF_BWN_PHY_G_H__30#define __IF_BWN_PHY_G_H__3132extern int bwn_phy_g_attach(struct bwn_mac *mac);33extern void bwn_phy_g_detach(struct bwn_mac *mac);34extern int bwn_phy_g_prepare_hw(struct bwn_mac *mac);35extern void bwn_phy_g_init_pre(struct bwn_mac *mac);36extern int bwn_phy_g_init(struct bwn_mac *mac);37extern void bwn_phy_g_exit(struct bwn_mac *mac);38extern uint16_t bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg);39extern void bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);40extern uint16_t bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg);41extern void bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);42extern int bwn_phy_g_hwpctl(struct bwn_mac *mac);43extern void bwn_phy_g_rf_onoff(struct bwn_mac *mac, int on);44extern void bwn_phy_switch_analog(struct bwn_mac *mac, int on);45extern int bwn_phy_g_switch_channel(struct bwn_mac *mac, uint32_t newchan);46extern uint32_t bwn_phy_g_get_default_chan(struct bwn_mac *mac);47extern void bwn_phy_g_set_antenna(struct bwn_mac *mac, int antenna);48extern int bwn_phy_g_im(struct bwn_mac *mac, int mode);49extern bwn_txpwr_result_t bwn_phy_g_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi);50extern void bwn_phy_g_set_txpwr(struct bwn_mac *mac);51extern void bwn_phy_g_task_15s(struct bwn_mac *mac);52extern void bwn_phy_g_task_60s(struct bwn_mac *mac);5354#endif /* __IF_BWN_PHY_G_H__ */555657