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

/*
 * Copyright (c) 2015 Qualcomm Atheros 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 REG_WOW_H
#define REG_WOW_H

#define AR_WOW_PATTERN
#define AR_WOW_COUNT
#define AR_WOW_BCN_EN
#define AR_WOW_BCN_TIMO
#define AR_WOW_KEEP_ALIVE_TIMO
#define AR_WOW_KEEP_ALIVE
#define AR_WOW_KEEP_ALIVE_DELAY
#define AR_WOW_PATTERN_MATCH

/*
 * AR_WOW_LENGTH1
 * bit 31:24 pattern 0 length
 * bit 23:16 pattern 1 length
 * bit 15:8 pattern 2 length
 * bit 7:0 pattern 3 length
 *
 * AR_WOW_LENGTH2
 * bit 31:24 pattern 4 length
 * bit 23:16 pattern 5 length
 * bit 15:8 pattern 6 length
 * bit 7:0 pattern 7 length
 *
 * AR_WOW_LENGTH3
 * bit 31:24 pattern 8 length
 * bit 23:16 pattern 9 length
 * bit 15:8 pattern 10 length
 * bit 7:0 pattern 11 length
 *
 * AR_WOW_LENGTH4
 * bit 31:24 pattern 12 length
 * bit 23:16 pattern 13 length
 * bit 15:8 pattern 14 length
 * bit 7:0 pattern 15 length
 */
#define AR_WOW_LENGTH1
#define AR_WOW_LENGTH2
#define AR_WOW_LENGTH3
#define AR_WOW_LENGTH4

#define AR_WOW_PATTERN_MATCH_LT_256B
#define AR_MAC_PCU_WOW4

#define AR_SW_WOW_CONTROL
#define AR_SW_WOW_ENABLE
#define AR_SWITCH_TO_REFCLK
#define AR_RESET_CONTROL
#define AR_RESET_VALUE_MASK
#define AR_HW_WOW_DISABLE
#define AR_CLR_MAC_INTERRUPT
#define AR_CLR_KA_INTERRUPT

#define AR_WOW_BACK_OFF_SHIFT(x)
#define AR_WOW_MAC_INTR_EN
#define AR_WOW_MAGIC_EN
#define AR_WOW_PATTERN_EN(x)
#define AR_WOW_PAT_FOUND_SHIFT
#define AR_WOW_PATTERN_FOUND(x)
#define AR_WOW_PATTERN_FOUND_MASK
#define AR_WOW_MAGIC_PAT_FOUND
#define AR_WOW_MAC_INTR
#define AR_WOW_KEEP_ALIVE_FAIL
#define AR_WOW_BEACON_FAIL

#define AR_WOW_STATUS(x)
#define AR_WOW_CLEAR_EVENTS(x)

#define AR_WOW2_PATTERN_EN(x)
#define AR_WOW2_PATTERN_FOUND_SHIFT
#define AR_WOW2_PATTERN_FOUND(x)
#define AR_WOW2_PATTERN_FOUND_MASK

#define AR_WOW_STATUS2(x)
#define AR_WOW_CLEAR_EVENTS2(x)

#define AR_WOW_AIFS_CNT(x)
#define AR_WOW_SLOT_CNT(x)
#define AR_WOW_KEEP_ALIVE_CNT(x)

#define AR_WOW_BEACON_FAIL_EN
#define AR_WOW_BEACON_TIMO
#define AR_WOW_KEEP_ALIVE_NEVER
#define AR_WOW_KEEP_ALIVE_AUTO_DIS
#define AR_WOW_KEEP_ALIVE_FAIL_DIS
#define AR_WOW_KEEP_ALIVE_DELAY_VALUE
#define AR_WOW_BMISSTHRESHOLD
#define AR_WOW_PAT_END_OF_PKT(x)
#define AR_WOW_PAT_OFF_MATCH(x)
#define AR_WOW_PAT_BACKOFF
#define AR_WOW_CNT_AIFS_CNT
#define AR_WOW_CNT_SLOT_CNT
#define AR_WOW_CNT_KA_CNT

#define AR_WOW_TRANSMIT_BUFFER
#define AR_WOW_TXBUF(i)
#define AR_WOW_KA_DESC_WORD2
#define AR_WOW_TB_PATTERN(i)
#define AR_WOW_TB_MASK(i)
#define AR_WOW_PATTERN_SUPPORTED_LEGACY
#define AR_WOW_PATTERN_SUPPORTED
#define AR_WOW_LENGTH_MAX
#define AR_WOW_LEN1_SHIFT(_i)
#define AR_WOW_LENGTH1_MASK(_i)
#define AR_WOW_LEN2_SHIFT(_i)
#define AR_WOW_LENGTH2_MASK(_i)
#define AR_WOW_LEN3_SHIFT(_i)
#define AR_WOW_LENGTH3_MASK(_i)
#define AR_WOW_LEN4_SHIFT(_i)
#define AR_WOW_LENGTH4_MASK(_i)

#endif /* REG_WOW_H */