rtwphy.h revision 9aa73b6813b3fd35e78fcc44fd17535e765e504c
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/*
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/*
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright (c) 2004, 2005 David Young. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Programmed for NetBSD by David Young.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Redistribution and use in source and binary forms, with or without
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * modification, are permitted provided that the following conditions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * are met:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * 1. Redistributions of source code must retain the above copyright
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * notice, this list of conditions and the following disclaimer.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * 2. Redistributions in binary form must reproduce the above copyright
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * notice, this list of conditions and the following disclaimer in the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * documentation and/or other materials provided with the distribution.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * 3. The name of David Young may not be used to endorse or promote
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * products derived from this software without specific prior
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * written permission.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL David
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Young BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * OF SUCH DAMAGE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#ifndef _RTWPHY_H
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define _RTWPHY_H
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#ifdef __cplusplus
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinextern "C" {
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#endif
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstruct rtw_rf *rtw_sa2400_create(struct rtw_regs *, rtw_rf_write_t, int);
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstruct rtw_rf *rtw_max2820_create(struct rtw_regs *, rtw_rf_write_t, int);
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinint rtw_phy_init(struct rtw_regs *, struct rtw_rf *, uint8_t, uint8_t, uint_t,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin int, int, enum rtw_pwrstate);
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#ifdef __cplusplus
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin}
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#endif
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#endif /* _RTWPHY_H */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin