linux/drivers/net/ieee802154/at86rf230.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * AT86RF230/RF231 driver
 *
 * Copyright (C) 2009-2012 Siemens AG
 *
 * Written by:
 * Dmitry Eremin-Solenikov <[email protected]>
 * Alexander Smirnov <[email protected]>
 */

#ifndef _AT86RF230_H
#define _AT86RF230_H

#define RG_TRX_STATUS
#define SR_TRX_STATUS
#define SR_RESERVED_01_3
#define SR_CCA_STATUS
#define SR_CCA_DONE
#define RG_TRX_STATE
#define SR_TRX_CMD
#define SR_TRAC_STATUS
#define RG_TRX_CTRL_0
#define SR_CLKM_CTRL
#define SR_CLKM_SHA_SEL
#define SR_PAD_IO_CLKM
#define SR_PAD_IO
#define RG_TRX_CTRL_1
#define SR_IRQ_POLARITY
#define SR_IRQ_MASK_MODE
#define SR_SPI_CMD_MODE
#define SR_RX_BL_CTRL
#define SR_TX_AUTO_CRC_ON
#define SR_IRQ_2_EXT_EN
#define SR_PA_EXT_EN
#define RG_PHY_TX_PWR
#define SR_TX_PWR_23X
#define SR_PA_LT_230
#define SR_PA_BUF_LT_230
#define SR_TX_PWR_212
#define SR_GC_PA_212
#define SR_PA_BOOST_LT_212
#define RG_PHY_RSSI
#define SR_RSSI
#define SR_RND_VALUE
#define SR_RX_CRC_VALID
#define RG_PHY_ED_LEVEL
#define SR_ED_LEVEL
#define RG_PHY_CC_CCA
#define SR_CHANNEL
#define SR_CCA_MODE
#define SR_CCA_REQUEST
#define RG_CCA_THRES
#define SR_CCA_ED_THRES
#define SR_RESERVED_09_1
#define RG_RX_CTRL
#define SR_PDT_THRES
#define SR_RESERVED_0a_1
#define RG_SFD_VALUE
#define SR_SFD_VALUE
#define RG_TRX_CTRL_2
#define SR_OQPSK_DATA_RATE
#define SR_SUB_MODE
#define SR_BPSK_QPSK
#define SR_OQPSK_SUB1_RC_EN
#define SR_RESERVED_0c_5
#define SR_RX_SAFE_MODE
#define RG_ANT_DIV
#define SR_ANT_CTRL
#define SR_ANT_EXT_SW_EN
#define SR_ANT_DIV_EN
#define SR_RESERVED_0d_2
#define SR_ANT_SEL
#define RG_IRQ_MASK
#define SR_IRQ_MASK
#define RG_IRQ_STATUS
#define SR_IRQ_0_PLL_LOCK
#define SR_IRQ_1_PLL_UNLOCK
#define SR_IRQ_2_RX_START
#define SR_IRQ_3_TRX_END
#define SR_IRQ_4_CCA_ED_DONE
#define SR_IRQ_5_AMI
#define SR_IRQ_6_TRX_UR
#define SR_IRQ_7_BAT_LOW
#define RG_VREG_CTRL
#define SR_RESERVED_10_6
#define SR_DVDD_OK
#define SR_DVREG_EXT
#define SR_RESERVED_10_3
#define SR_AVDD_OK
#define SR_AVREG_EXT
#define RG_BATMON
#define SR_BATMON_VTH
#define SR_BATMON_HR
#define SR_BATMON_OK
#define SR_RESERVED_11_1
#define RG_XOSC_CTRL
#define SR_XTAL_TRIM
#define SR_XTAL_MODE
#define RG_RX_SYN
#define SR_RX_PDT_LEVEL
#define SR_RESERVED_15_2
#define SR_RX_PDT_DIS
#define RG_XAH_CTRL_1
#define SR_RESERVED_17_8
#define SR_AACK_PROM_MODE
#define SR_AACK_ACK_TIME
#define SR_RESERVED_17_5
#define SR_AACK_UPLD_RES_FT
#define SR_AACK_FLTR_RES_FT
#define SR_CSMA_LBT_MODE
#define SR_RESERVED_17_1
#define RG_FTN_CTRL
#define SR_RESERVED_18_2
#define SR_FTN_START
#define RG_PLL_CF
#define SR_RESERVED_1a_2
#define SR_PLL_CF_START
#define RG_PLL_DCU
#define SR_RESERVED_1b_3
#define SR_RESERVED_1b_2
#define SR_PLL_DCU_START
#define RG_PART_NUM
#define SR_PART_NUM
#define RG_VERSION_NUM
#define SR_VERSION_NUM
#define RG_MAN_ID_0
#define SR_MAN_ID_0
#define RG_MAN_ID_1
#define SR_MAN_ID_1
#define RG_SHORT_ADDR_0
#define SR_SHORT_ADDR_0
#define RG_SHORT_ADDR_1
#define SR_SHORT_ADDR_1
#define RG_PAN_ID_0
#define SR_PAN_ID_0
#define RG_PAN_ID_1
#define SR_PAN_ID_1
#define RG_IEEE_ADDR_0
#define SR_IEEE_ADDR_0
#define RG_IEEE_ADDR_1
#define SR_IEEE_ADDR_1
#define RG_IEEE_ADDR_2
#define SR_IEEE_ADDR_2
#define RG_IEEE_ADDR_3
#define SR_IEEE_ADDR_3
#define RG_IEEE_ADDR_4
#define SR_IEEE_ADDR_4
#define RG_IEEE_ADDR_5
#define SR_IEEE_ADDR_5
#define RG_IEEE_ADDR_6
#define SR_IEEE_ADDR_6
#define RG_IEEE_ADDR_7
#define SR_IEEE_ADDR_7
#define RG_XAH_CTRL_0
#define SR_SLOTTED_OPERATION
#define SR_MAX_CSMA_RETRIES
#define SR_MAX_FRAME_RETRIES
#define RG_CSMA_SEED_0
#define SR_CSMA_SEED_0
#define RG_CSMA_SEED_1
#define SR_CSMA_SEED_1
#define SR_AACK_I_AM_COORD
#define SR_AACK_DIS_ACK
#define SR_AACK_SET_PD
#define SR_AACK_FVN_MODE
#define RG_CSMA_BE
#define SR_MIN_BE
#define SR_MAX_BE

#define CMD_REG
#define CMD_REG_MASK
#define CMD_WRITE
#define CMD_FB

#define IRQ_BAT_LOW
#define IRQ_TRX_UR
#define IRQ_AMI
#define IRQ_CCA_ED
#define IRQ_TRX_END
#define IRQ_RX_START
#define IRQ_PLL_UNL
#define IRQ_PLL_LOCK

#define IRQ_ACTIVE_HIGH
#define IRQ_ACTIVE_LOW

#define STATE_P_ON
#define STATE_BUSY_RX
#define STATE_BUSY_TX
#define STATE_FORCE_TRX_OFF
#define STATE_FORCE_TX_ON
/* 0x05 */				/* INVALID_PARAMETER */
#define STATE_RX_ON
/* 0x07 */				/* SUCCESS */
#define STATE_TRX_OFF
#define STATE_TX_ON
/* 0x0a - 0x0e */			/* 0x0a - UNSUPPORTED_ATTRIBUTE */
#define STATE_SLEEP
#define STATE_PREP_DEEP_SLEEP
#define STATE_BUSY_RX_AACK
#define STATE_BUSY_TX_ARET
#define STATE_RX_AACK_ON
#define STATE_TX_ARET_ON
#define STATE_RX_ON_NOCLK
#define STATE_RX_AACK_ON_NOCLK
#define STATE_BUSY_RX_AACK_NOCLK
#define STATE_TRANSITION_IN_PROGRESS

#define TRX_STATE_MASK
#define TRAC_MASK(x)

#define TRAC_SUCCESS
#define TRAC_SUCCESS_DATA_PENDING
#define TRAC_SUCCESS_WAIT_FOR_ACK
#define TRAC_CHANNEL_ACCESS_FAILURE
#define TRAC_NO_ACK
#define TRAC_INVALID

#endif /* !_AT86RF230_H */