/*-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*/28#ifndef __IF_BWN_MISC_H__29#define __IF_BWN_MISC_H__3031/*32* These are the functions used by the PHY code.33*34* They currently live in the driver itself; at least until they35* are broken out into smaller pieces.36*/3738struct bwn_mac;3940extern int bwn_gpio_control(struct bwn_mac *, uint32_t);4142extern uint64_t bwn_hf_read(struct bwn_mac *);43extern void bwn_hf_write(struct bwn_mac *, uint64_t);4445extern void bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon);4647extern void bwn_ram_write(struct bwn_mac *, uint16_t, uint32_t);4849extern void bwn_mac_suspend(struct bwn_mac *);50extern void bwn_mac_enable(struct bwn_mac *);5152extern int bwn_switch_channel(struct bwn_mac *, int);5354extern uint16_t bwn_shm_read_2(struct bwn_mac *, uint16_t, uint16_t);55extern void bwn_shm_write_2(struct bwn_mac *, uint16_t, uint16_t,56uint16_t);57extern uint32_t bwn_shm_read_4(struct bwn_mac *, uint16_t, uint16_t);58extern void bwn_shm_write_4(struct bwn_mac *, uint16_t, uint16_t,59uint32_t);6061extern int bwn_reset_core(struct bwn_mac *, int g_mode);6263extern void bwn_psctl(struct bwn_mac *, uint32_t);6465#endif666768