1a72f7ea6Sql /* 2*9aa73b68SQin Michael Li * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3a72f7ea6Sql * Use is subject to license terms. 4a72f7ea6Sql */ 5a72f7ea6Sql /* 6a72f7ea6Sql * Copyright (c) 2004, 2005 David Young. All rights reserved. 7a72f7ea6Sql * 8a72f7ea6Sql * Programmed for NetBSD by David Young. 9a72f7ea6Sql * 10a72f7ea6Sql * Redistribution and use in source and binary forms, with or without 11a72f7ea6Sql * modification, are permitted provided that the following conditions 12a72f7ea6Sql * are met: 13a72f7ea6Sql * 1. Redistributions of source code must retain the above copyright 14a72f7ea6Sql * notice, this list of conditions and the following disclaimer. 15a72f7ea6Sql * 2. Redistributions in binary form must reproduce the above copyright 16a72f7ea6Sql * notice, this list of conditions and the following disclaimer in the 17a72f7ea6Sql * documentation and/or other materials provided with the distribution. 18a72f7ea6Sql * 3. The name of David Young may not be used to endorse or promote 19a72f7ea6Sql * products derived from this software without specific prior 20a72f7ea6Sql * written permission. 21a72f7ea6Sql * 22a72f7ea6Sql * THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY 23a72f7ea6Sql * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 24a72f7ea6Sql * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 25a72f7ea6Sql * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL David 26a72f7ea6Sql * Young BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27a72f7ea6Sql * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 28a72f7ea6Sql * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29a72f7ea6Sql * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30a72f7ea6Sql * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 31a72f7ea6Sql * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32a72f7ea6Sql * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 33a72f7ea6Sql * OF SUCH DAMAGE. 34a72f7ea6Sql */ 35a72f7ea6Sql 36a72f7ea6Sql #ifndef _RTWPHYIO_H 37a72f7ea6Sql #define _RTWPHYIO_H 38a72f7ea6Sql 39*9aa73b68SQin Michael Li #ifdef __cplusplus 40*9aa73b68SQin Michael Li extern "C" { 41*9aa73b68SQin Michael Li #endif 42*9aa73b68SQin Michael Li 43a72f7ea6Sql int rtw_rf_hostwrite(struct rtw_regs *, enum rtw_rfchipid, uint_t, uint32_t); 44a72f7ea6Sql int rtw_rf_macwrite(struct rtw_regs *, enum rtw_rfchipid, uint_t, uint32_t); 45a72f7ea6Sql uint8_t rtw_bbp_read(struct rtw_regs *, uint_t); 46a72f7ea6Sql int rtw_bbp_write(struct rtw_regs *, uint_t, uint_t); 47*9aa73b68SQin Michael Li #ifdef __cplusplus 48*9aa73b68SQin Michael Li } 49*9aa73b68SQin Michael Li #endif 50a72f7ea6Sql 51a72f7ea6Sql #endif /* _RTWPHYIO_H */ 52