]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/net/wireless/ath/ath9k/ar9003_mac.h
ath9k_hw: Add few routines for rx edma support
[mirror_ubuntu-bionic-kernel.git] / drivers / net / wireless / ath / ath9k / ar9003_mac.h
1 /*
2 * Copyright (c) 2010 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #ifndef AR9003_MAC_H
18 #define AR9003_MAC_H
19
20 #define AR_DescId 0xffff0000
21 #define AR_DescId_S 16
22 #define AR_CtrlStat 0x00004000
23 #define AR_TxRxDesc 0x00008000
24
25 struct ar9003_rxs {
26 u32 ds_info;
27 u32 status1;
28 u32 status2;
29 u32 status3;
30 u32 status4;
31 u32 status5;
32 u32 status6;
33 u32 status7;
34 u32 status8;
35 u32 status9;
36 u32 status10;
37 u32 status11;
38 } __packed;
39
40 void ar9003_hw_attach_mac_ops(struct ath_hw *hw);
41 void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size);
42 void ath9k_hw_addrxbuf_edma(struct ath_hw *ah, u32 rxdp,
43 enum ath9k_rx_qtype qtype);
44
45 int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah,
46 struct ath_rx_status *rxs,
47 void *buf_addr);
48
49 #endif