xref: /onnv-gate/usr/src/uts/common/io/rtw/rtwphy.h (revision 10448:fe6b44e693c2)
14689Sql147931 /*
2*10448SMikore.Li@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
34689Sql147931  * Use is subject to license terms.
44689Sql147931  */
54689Sql147931 /*
64689Sql147931  * Copyright (c) 2004, 2005 David Young.  All rights reserved.
74689Sql147931  *
84689Sql147931  * Programmed for NetBSD by David Young.
94689Sql147931  *
104689Sql147931  * Redistribution and use in source and binary forms, with or without
114689Sql147931  * modification, are permitted provided that the following conditions
124689Sql147931  * are met:
134689Sql147931  * 1. Redistributions of source code must retain the above copyright
144689Sql147931  *    notice, this list of conditions and the following disclaimer.
154689Sql147931  * 2. Redistributions in binary form must reproduce the above copyright
164689Sql147931  *    notice, this list of conditions and the following disclaimer in the
174689Sql147931  *    documentation and/or other materials provided with the distribution.
184689Sql147931  * 3. The name of David Young may not be used to endorse or promote
194689Sql147931  *    products derived from this software without specific prior
204689Sql147931  *    written permission.
214689Sql147931  *
224689Sql147931  * THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY
234689Sql147931  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
244689Sql147931  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
254689Sql147931  * PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL David
264689Sql147931  * Young BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
274689Sql147931  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
284689Sql147931  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
294689Sql147931  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
304689Sql147931  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
314689Sql147931  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
324689Sql147931  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
334689Sql147931  * OF SUCH DAMAGE.
344689Sql147931  */
354689Sql147931 #ifndef _RTWPHY_H
364689Sql147931 #define	_RTWPHY_H
374689Sql147931 
38*10448SMikore.Li@Sun.COM #ifdef __cplusplus
39*10448SMikore.Li@Sun.COM extern "C" {
40*10448SMikore.Li@Sun.COM #endif
41*10448SMikore.Li@Sun.COM 
424689Sql147931 struct rtw_rf *rtw_sa2400_create(struct rtw_regs *, rtw_rf_write_t, int);
434689Sql147931 struct rtw_rf *rtw_max2820_create(struct rtw_regs *, rtw_rf_write_t, int);
444689Sql147931 
454689Sql147931 int rtw_phy_init(struct rtw_regs *, struct rtw_rf *, uint8_t, uint8_t, uint_t,
464689Sql147931     int, int, enum rtw_pwrstate);
47*10448SMikore.Li@Sun.COM #ifdef __cplusplus
48*10448SMikore.Li@Sun.COM }
49*10448SMikore.Li@Sun.COM #endif
504689Sql147931 
514689Sql147931 #endif /* _RTWPHY_H */
52