if_ath_rx.h revision 235676
1303231Sdim/*-
2303231Sdim * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3353358Sdim * All rights reserved.
4353358Sdim *
5353358Sdim * Redistribution and use in source and binary forms, with or without
6303231Sdim * modification, are permitted provided that the following conditions
7303231Sdim * are met:
8303231Sdim * 1. Redistributions of source code must retain the above copyright
9303231Sdim *    notice, this list of conditions and the following disclaimer,
10303231Sdim *    without modification.
11303231Sdim * 2. Redistributions in binary form must reproduce at minimum a disclaimer
12303231Sdim *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13303231Sdim *    redistribution must be conditioned upon including a substantially
14303231Sdim *    similar Disclaimer requirement for further binary redistribution.
15303231Sdim *
16303231Sdim * NO WARRANTY
17303231Sdim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18303231Sdim * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19303231Sdim * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
20303231Sdim * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21303231Sdim * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22303231Sdim * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23303231Sdim * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24303231Sdim * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25303231Sdim * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26327952Sdim * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27327952Sdim * THE POSSIBILITY OF SUCH DAMAGES.
28327952Sdim *
29303231Sdim * $FreeBSD: head/sys/dev/ath/if_ath_rx.h 235676 2012-05-20 02:05:10Z adrian $
30303231Sdim */
31303231Sdim#ifndef	__IF_ATH_RX_H__
32314564Sdim#define	__IF_ATH_RX_H__
33303231Sdim
34327952Sdimextern	u_int32_t ath_calcrxfilter(struct ath_softc *sc);
35327952Sdimextern	int ath_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf);
36327952Sdimextern	void ath_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m,
37303231Sdim	    int subtype, int rssi, int nf);
38extern	void ath_rx_tasklet(void *arg, int npending);
39extern	void ath_rx_proc(struct ath_softc *sc, int resched);
40extern	void ath_stoprecv(struct ath_softc *sc, int dodelay);
41extern	int ath_startrecv(struct ath_softc *sc);
42
43#endif
44