linux/drivers/net/wireless/ath/ath9k/ar9003_mac.h

/*
 * Copyright (c) 2010-2011 Atheros Communications Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef AR9003_MAC_H
#define AR9003_MAC_H

#define AR_DescId
#define AR_DescId_S
#define AR_CtrlStat
#define AR_CtrlStat_S
#define AR_TxRxDesc
#define AR_TxRxDesc_S
#define AR_TxQcuNum
#define AR_TxQcuNum_S

#define AR_BufLen
#define AR_BufLen_S

#define AR_TxDescId
#define AR_TxDescId_S
#define AR_TxPtrChkSum

#define AR_LowRxChain

#define AR_Not_Sounding

/* ctl 12 */
#define AR_PAPRDChainMask
#define AR_PAPRDChainMask_S

#define MAP_ISR_S2_CST
#define MAP_ISR_S2_GTT
#define MAP_ISR_S2_TIM
#define MAP_ISR_S2_CABEND
#define MAP_ISR_S2_DTIMSYNC
#define MAP_ISR_S2_DTIM
#define MAP_ISR_S2_TSFOOR
#define MAP_ISR_S2_BB_WATCHDOG

#define AR9003TXC_CONST(_ds)

struct ar9003_rxs {} __packed __aligned();

/* Transmit Control Descriptor */
struct ar9003_txc {} __packed __aligned();

struct ar9003_txs {} __packed __aligned();

void ar9003_hw_attach_mac_ops(struct ath_hw *hw);
void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size);
void ath9k_hw_addrxbuf_edma(struct ath_hw *ah, u32 rxdp,
			    enum ath9k_rx_qtype qtype);

int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah,
				 struct ath_rx_status *rxs,
				 void *buf_addr);
void ath9k_hw_reset_txstatus_ring(struct ath_hw *ah);
void ath9k_hw_setup_statusring(struct ath_hw *ah, void *ts_start,
			       u32 ts_paddr_start,
			       u16 size);
#endif