arn5008.h revision 1.2
11.2Smrg/*	$NetBSD: arn5008.h,v 1.2 2023/08/01 07:04:15 mrg Exp $	*/
21.1Schristos/*
31.1Schristos * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
41.1Schristos * All rights reserved.
51.1Schristos *
61.1Schristos * Redistribution and use in source and binary forms, with or without
71.1Schristos * modification, are permitted provided that the following conditions
81.1Schristos * are met:
91.1Schristos * 1. Redistributions of source code must retain the above copyright
101.1Schristos *    notice, this list of conditions and the following disclaimer.
111.1Schristos * 2. Redistributions in binary form must reproduce the above copyright
121.1Schristos *    notice, this list of conditions and the following disclaimer in the
131.1Schristos *    documentation and/or other materials provided with the distribution.
141.1Schristos *
151.1Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
161.1Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
171.1Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
181.1Schristos * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
191.1Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
201.1Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
211.1Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
221.1Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
231.1Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
241.1Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
251.1Schristos * POSSIBILITY OF SUCH DAMAGE.
261.1Schristos */
271.1Schristos
281.1Schristos#ifndef _IF_ARN5008_H_
291.1Schristos#define _IF_ARN5008_H_
301.1Schristos
311.1Schristos#include <dev/ic/arn5008reg.h>
321.1Schristos
331.1Schristosint	ar5008_attach(struct athn_softc *);
341.2Smrgvoid	ar5008_write_txpower(struct athn_softc *, int16_t power[ATHN_POWER_COUNT]);
351.1Schristosvoid	ar5008_set_viterbi_mask(struct athn_softc *, int);
361.1Schristosvoid	ar5008_get_pdadcs(struct athn_softc *, uint8_t, struct athn_pier *,
371.1Schristos		    struct athn_pier *, int, int, uint8_t, uint8_t *, uint8_t *);
381.1Schristos
391.1Schristosvoid	ar5008_get_ht_tpow(struct athn_softc *, struct ieee80211_channel *,
401.2Smrg		    uint8_t, const struct ar_cal_target_power_ht *, int, uint8_t[8]);
411.1Schristosvoid	ar5008_get_lg_tpow(struct athn_softc *, struct ieee80211_channel *,
421.2Smrg		    uint8_t, const struct ar_cal_target_power_leg *, int, uint8_t[4]);
431.1Schristos
441.1Schristos
451.1Schristos#endif /* _IF_ARN5008_H_ */
46