require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&RT2860_PCI_CFG)) {
    sub RT2860_PCI_CFG () {	0x;}
}
unless(defined(&RT2860_PCI_EECTRL)) {
    sub RT2860_PCI_EECTRL () {	0x4;}
}
unless(defined(&RT2860_PCI_MCUCTRL)) {
    sub RT2860_PCI_MCUCTRL () {	0x8;}
}
unless(defined(&RT2860_PCI_SYSCTRL)) {
    sub RT2860_PCI_SYSCTRL () {	0xc;}
}
unless(defined(&RT2860_PCIE_JTAG)) {
    sub RT2860_PCIE_JTAG () {	0x10;}
}
unless(defined(&RT3070_OPT_14)) {
    sub RT3070_OPT_14 () {	0x114;}
}
unless(defined(&RT2860_INT_STATUS)) {
    sub RT2860_INT_STATUS () {	0x200;}
}
unless(defined(&RT2860_INT_MASK)) {
    sub RT2860_INT_MASK () {	0x204;}
}
unless(defined(&RT2860_WPDMA_GLO_CFG)) {
    sub RT2860_WPDMA_GLO_CFG () {	0x208;}
}
unless(defined(&RT2860_WPDMA_RST_IDX)) {
    sub RT2860_WPDMA_RST_IDX () {	0x20c;}
}
unless(defined(&RT2860_DELAY_INT_CFG)) {
    sub RT2860_DELAY_INT_CFG () {	0x210;}
}
unless(defined(&RT2860_WMM_AIFSN_CFG)) {
    sub RT2860_WMM_AIFSN_CFG () {	0x214;}
}
unless(defined(&RT2860_WMM_CWMIN_CFG)) {
    sub RT2860_WMM_CWMIN_CFG () {	0x218;}
}
unless(defined(&RT2860_WMM_CWMAX_CFG)) {
    sub RT2860_WMM_CWMAX_CFG () {	0x21c;}
}
unless(defined(&RT2860_WMM_TXOP0_CFG)) {
    sub RT2860_WMM_TXOP0_CFG () {	0x220;}
}
unless(defined(&RT2860_WMM_TXOP1_CFG)) {
    sub RT2860_WMM_TXOP1_CFG () {	0x224;}
}
unless(defined(&RT2860_GPIO_CTRL)) {
    sub RT2860_GPIO_CTRL () {	0x228;}
}
unless(defined(&RT2860_MCU_CMD_REG)) {
    sub RT2860_MCU_CMD_REG () {	0x22c;}
}
unless(defined(&RT2860_TX_BASE_PTR)) {
    sub RT2860_TX_BASE_PTR {
	my($qid) = @_;
	eval q((0x230 + ($qid) * 16));
    }
}
unless(defined(&RT2860_TX_MAX_CNT)) {
    sub RT2860_TX_MAX_CNT {
	my($qid) = @_;
	eval q((0x234 + ($qid) * 16));
    }
}
unless(defined(&RT2860_TX_CTX_IDX)) {
    sub RT2860_TX_CTX_IDX {
	my($qid) = @_;
	eval q((0x238 + ($qid) * 16));
    }
}
unless(defined(&RT2860_TX_DTX_IDX)) {
    sub RT2860_TX_DTX_IDX {
	my($qid) = @_;
	eval q((0x23c + ($qid) * 16));
    }
}
unless(defined(&RT2860_RX_BASE_PTR)) {
    sub RT2860_RX_BASE_PTR () {	0x290;}
}
unless(defined(&RT2860_RX_MAX_CNT)) {
    sub RT2860_RX_MAX_CNT () {	0x294;}
}
unless(defined(&RT2860_RX_CALC_IDX)) {
    sub RT2860_RX_CALC_IDX () {	0x298;}
}
unless(defined(&RT2860_FS_DRX_IDX)) {
    sub RT2860_FS_DRX_IDX () {	0x29c;}
}
unless(defined(&RT2860_USB_DMA_CFG)) {
    sub RT2860_USB_DMA_CFG () {	0x2a0;}
}
unless(defined(&RT2860_US_CYC_CNT)) {
    sub RT2860_US_CYC_CNT () {	0x2a4;}
}
unless(defined(&RT2860_SYS_CTRL)) {
    sub RT2860_SYS_CTRL () {	0x400;}
}
unless(defined(&RT2860_HOST_CMD)) {
    sub RT2860_HOST_CMD () {	0x404;}
}
unless(defined(&RT2860_PBF_CFG)) {
    sub RT2860_PBF_CFG () {	0x408;}
}
unless(defined(&RT2860_MAX_PCNT)) {
    sub RT2860_MAX_PCNT () {	0x40c;}
}
unless(defined(&RT2860_BUF_CTRL)) {
    sub RT2860_BUF_CTRL () {	0x410;}
}
unless(defined(&RT2860_MCU_INT_STA)) {
    sub RT2860_MCU_INT_STA () {	0x414;}
}
unless(defined(&RT2860_MCU_INT_ENA)) {
    sub RT2860_MCU_INT_ENA () {	0x418;}
}
unless(defined(&RT2860_TXQ_IO)) {
    sub RT2860_TXQ_IO {
	my($qid) = @_;
	eval q((0x41c + ($qid) * 4));
    }
}
unless(defined(&RT2860_RX0Q_IO)) {
    sub RT2860_RX0Q_IO () {	0x424;}
}
unless(defined(&RT2860_BCN_OFFSET0)) {
    sub RT2860_BCN_OFFSET0 () {	0x42c;}
}
unless(defined(&RT2860_BCN_OFFSET1)) {
    sub RT2860_BCN_OFFSET1 () {	0x430;}
}
unless(defined(&RT2860_TXRXQ_STA)) {
    sub RT2860_TXRXQ_STA () {	0x434;}
}
unless(defined(&RT2860_TXRXQ_PCNT)) {
    sub RT2860_TXRXQ_PCNT () {	0x438;}
}
unless(defined(&RT2860_PBF_DBG)) {
    sub RT2860_PBF_DBG () {	0x43c;}
}
unless(defined(&RT2860_CAP_CTRL)) {
    sub RT2860_CAP_CTRL () {	0x440;}
}
unless(defined(&RT3070_RF_CSR_CFG)) {
    sub RT3070_RF_CSR_CFG () {	0x500;}
}
unless(defined(&RT3070_EFUSE_CTRL)) {
    sub RT3070_EFUSE_CTRL () {	0x580;}
}
unless(defined(&RT3070_EFUSE_DATA0)) {
    sub RT3070_EFUSE_DATA0 () {	0x590;}
}
unless(defined(&RT3070_EFUSE_DATA1)) {
    sub RT3070_EFUSE_DATA1 () {	0x594;}
}
unless(defined(&RT3070_EFUSE_DATA2)) {
    sub RT3070_EFUSE_DATA2 () {	0x598;}
}
unless(defined(&RT3070_EFUSE_DATA3)) {
    sub RT3070_EFUSE_DATA3 () {	0x59c;}
}
unless(defined(&RT3070_LDO_CFG0)) {
    sub RT3070_LDO_CFG0 () {	0x5d4;}
}
unless(defined(&RT3070_GPIO_SWITCH)) {
    sub RT3070_GPIO_SWITCH () {	0x5dc;}
}
unless(defined(&RT2860_ASIC_VER_ID)) {
    sub RT2860_ASIC_VER_ID () {	0x1000;}
}
unless(defined(&RT2860_MAC_SYS_CTRL)) {
    sub RT2860_MAC_SYS_CTRL () {	0x1004;}
}
unless(defined(&RT2860_MAC_ADDR_DW0)) {
    sub RT2860_MAC_ADDR_DW0 () {	0x1008;}
}
unless(defined(&RT2860_MAC_ADDR_DW1)) {
    sub RT2860_MAC_ADDR_DW1 () {	0x100c;}
}
unless(defined(&RT2860_MAC_BSSID_DW0)) {
    sub RT2860_MAC_BSSID_DW0 () {	0x1010;}
}
unless(defined(&RT2860_MAC_BSSID_DW1)) {
    sub RT2860_MAC_BSSID_DW1 () {	0x1014;}
}
unless(defined(&RT2860_MAX_LEN_CFG)) {
    sub RT2860_MAX_LEN_CFG () {	0x1018;}
}
unless(defined(&RT2860_BBP_CSR_CFG)) {
    sub RT2860_BBP_CSR_CFG () {	0x101c;}
}
unless(defined(&RT2860_RF_CSR_CFG0)) {
    sub RT2860_RF_CSR_CFG0 () {	0x1020;}
}
unless(defined(&RT2860_RF_CSR_CFG1)) {
    sub RT2860_RF_CSR_CFG1 () {	0x1024;}
}
unless(defined(&RT2860_RF_CSR_CFG2)) {
    sub RT2860_RF_CSR_CFG2 () {	0x1028;}
}
unless(defined(&RT2860_LED_CFG)) {
    sub RT2860_LED_CFG () {	0x102c;}
}
unless(defined(&RT2860_DEBUG)) {
    sub RT2860_DEBUG () {	0x10f4;}
}
unless(defined(&RT2860_XIFS_TIME_CFG)) {
    sub RT2860_XIFS_TIME_CFG () {	0x1100;}
}
unless(defined(&RT2860_BKOFF_SLOT_CFG)) {
    sub RT2860_BKOFF_SLOT_CFG () {	0x1104;}
}
unless(defined(&RT2860_NAV_TIME_CFG)) {
    sub RT2860_NAV_TIME_CFG () {	0x1108;}
}
unless(defined(&RT2860_CH_TIME_CFG)) {
    sub RT2860_CH_TIME_CFG () {	0x110c;}
}
unless(defined(&RT2860_PBF_LIFE_TIMER)) {
    sub RT2860_PBF_LIFE_TIMER () {	0x1110;}
}
unless(defined(&RT2860_BCN_TIME_CFG)) {
    sub RT2860_BCN_TIME_CFG () {	0x1114;}
}
unless(defined(&RT2860_TBTT_SYNC_CFG)) {
    sub RT2860_TBTT_SYNC_CFG () {	0x1118;}
}
unless(defined(&RT2860_TSF_TIMER_DW0)) {
    sub RT2860_TSF_TIMER_DW0 () {	0x111c;}
}
unless(defined(&RT2860_TSF_TIMER_DW1)) {
    sub RT2860_TSF_TIMER_DW1 () {	0x1120;}
}
unless(defined(&RT2860_TBTT_TIMER)) {
    sub RT2860_TBTT_TIMER () {	0x1124;}
}
unless(defined(&RT2860_INT_TIMER_CFG)) {
    sub RT2860_INT_TIMER_CFG () {	0x1128;}
}
unless(defined(&RT2860_INT_TIMER_EN)) {
    sub RT2860_INT_TIMER_EN () {	0x112c;}
}
unless(defined(&RT2860_CH_IDLE_TIME)) {
    sub RT2860_CH_IDLE_TIME () {	0x1130;}
}
unless(defined(&RT2860_MAC_STATUS_REG)) {
    sub RT2860_MAC_STATUS_REG () {	0x1200;}
}
unless(defined(&RT2860_PWR_PIN_CFG)) {
    sub RT2860_PWR_PIN_CFG () {	0x1204;}
}
unless(defined(&RT2860_AUTO_WAKEUP_CFG)) {
    sub RT2860_AUTO_WAKEUP_CFG () {	0x1208;}
}
unless(defined(&RT2860_EDCA_AC_CFG)) {
    sub RT2860_EDCA_AC_CFG {
	my($aci) = @_;
	eval q((0x1300 + ($aci) * 4));
    }
}
unless(defined(&RT2860_EDCA_TID_AC_MAP)) {
    sub RT2860_EDCA_TID_AC_MAP () {	0x1310;}
}
unless(defined(&RT2860_TX_PWR_CFG)) {
    sub RT2860_TX_PWR_CFG {
	my($ridx) = @_;
	eval q((0x1314 + ($ridx) * 4));
    }
}
unless(defined(&RT2860_TX_PIN_CFG)) {
    sub RT2860_TX_PIN_CFG () {	0x1328;}
}
unless(defined(&RT2860_TX_BAND_CFG)) {
    sub RT2860_TX_BAND_CFG () {	0x132c;}
}
unless(defined(&RT2860_TX_SW_CFG0)) {
    sub RT2860_TX_SW_CFG0 () {	0x1330;}
}
unless(defined(&RT2860_TX_SW_CFG1)) {
    sub RT2860_TX_SW_CFG1 () {	0x1334;}
}
unless(defined(&RT2860_TX_SW_CFG2)) {
    sub RT2860_TX_SW_CFG2 () {	0x1338;}
}
unless(defined(&RT2860_TXOP_THRES_CFG)) {
    sub RT2860_TXOP_THRES_CFG () {	0x133c;}
}
unless(defined(&RT2860_TXOP_CTRL_CFG)) {
    sub RT2860_TXOP_CTRL_CFG () {	0x1340;}
}
unless(defined(&RT2860_TX_RTS_CFG)) {
    sub RT2860_TX_RTS_CFG () {	0x1344;}
}
unless(defined(&RT2860_TX_TIMEOUT_CFG)) {
    sub RT2860_TX_TIMEOUT_CFG () {	0x1348;}
}
unless(defined(&RT2860_TX_RTY_CFG)) {
    sub RT2860_TX_RTY_CFG () {	0x134c;}
}
unless(defined(&RT2860_TX_LINK_CFG)) {
    sub RT2860_TX_LINK_CFG () {	0x1350;}
}
unless(defined(&RT2860_HT_FBK_CFG0)) {
    sub RT2860_HT_FBK_CFG0 () {	0x1354;}
}
unless(defined(&RT2860_HT_FBK_CFG1)) {
    sub RT2860_HT_FBK_CFG1 () {	0x1358;}
}
unless(defined(&RT2860_LG_FBK_CFG0)) {
    sub RT2860_LG_FBK_CFG0 () {	0x135c;}
}
unless(defined(&RT2860_LG_FBK_CFG1)) {
    sub RT2860_LG_FBK_CFG1 () {	0x1360;}
}
unless(defined(&RT2860_CCK_PROT_CFG)) {
    sub RT2860_CCK_PROT_CFG () {	0x1364;}
}
unless(defined(&RT2860_OFDM_PROT_CFG)) {
    sub RT2860_OFDM_PROT_CFG () {	0x1368;}
}
unless(defined(&RT2860_MM20_PROT_CFG)) {
    sub RT2860_MM20_PROT_CFG () {	0x136c;}
}
unless(defined(&RT2860_MM40_PROT_CFG)) {
    sub RT2860_MM40_PROT_CFG () {	0x1370;}
}
unless(defined(&RT2860_GF20_PROT_CFG)) {
    sub RT2860_GF20_PROT_CFG () {	0x1374;}
}
unless(defined(&RT2860_GF40_PROT_CFG)) {
    sub RT2860_GF40_PROT_CFG () {	0x1378;}
}
unless(defined(&RT2860_EXP_CTS_TIME)) {
    sub RT2860_EXP_CTS_TIME () {	0x137c;}
}
unless(defined(&RT2860_EXP_ACK_TIME)) {
    sub RT2860_EXP_ACK_TIME () {	0x1380;}
}
unless(defined(&RT2860_RX_FILTR_CFG)) {
    sub RT2860_RX_FILTR_CFG () {	0x1400;}
}
unless(defined(&RT2860_AUTO_RSP_CFG)) {
    sub RT2860_AUTO_RSP_CFG () {	0x1404;}
}
unless(defined(&RT2860_LEGACY_BASIC_RATE)) {
    sub RT2860_LEGACY_BASIC_RATE () {	0x1408;}
}
unless(defined(&RT2860_HT_BASIC_RATE)) {
    sub RT2860_HT_BASIC_RATE () {	0x140c;}
}
unless(defined(&RT2860_HT_CTRL_CFG)) {
    sub RT2860_HT_CTRL_CFG () {	0x1410;}
}
unless(defined(&RT2860_SIFS_COST_CFG)) {
    sub RT2860_SIFS_COST_CFG () {	0x1414;}
}
unless(defined(&RT2860_RX_PARSER_CFG)) {
    sub RT2860_RX_PARSER_CFG () {	0x1418;}
}
unless(defined(&RT2860_TX_SEC_CNT0)) {
    sub RT2860_TX_SEC_CNT0 () {	0x1500;}
}
unless(defined(&RT2860_RX_SEC_CNT0)) {
    sub RT2860_RX_SEC_CNT0 () {	0x1504;}
}
unless(defined(&RT2860_CCMP_FC_MUTE)) {
    sub RT2860_CCMP_FC_MUTE () {	0x1508;}
}
unless(defined(&RT2860_TXOP_HLDR_ADDR0)) {
    sub RT2860_TXOP_HLDR_ADDR0 () {	0x1600;}
}
unless(defined(&RT2860_TXOP_HLDR_ADDR1)) {
    sub RT2860_TXOP_HLDR_ADDR1 () {	0x1604;}
}
unless(defined(&RT2860_TXOP_HLDR_ET)) {
    sub RT2860_TXOP_HLDR_ET () {	0x1608;}
}
unless(defined(&RT2860_QOS_CFPOLL_RA_DW0)) {
    sub RT2860_QOS_CFPOLL_RA_DW0 () {	0x160c;}
}
unless(defined(&RT2860_QOS_CFPOLL_A1_DW1)) {
    sub RT2860_QOS_CFPOLL_A1_DW1 () {	0x1610;}
}
unless(defined(&RT2860_QOS_CFPOLL_QC)) {
    sub RT2860_QOS_CFPOLL_QC () {	0x1614;}
}
unless(defined(&RT2860_RX_STA_CNT0)) {
    sub RT2860_RX_STA_CNT0 () {	0x1700;}
}
unless(defined(&RT2860_RX_STA_CNT1)) {
    sub RT2860_RX_STA_CNT1 () {	0x1704;}
}
unless(defined(&RT2860_RX_STA_CNT2)) {
    sub RT2860_RX_STA_CNT2 () {	0x1708;}
}
unless(defined(&RT2860_TX_STA_CNT0)) {
    sub RT2860_TX_STA_CNT0 () {	0x170c;}
}
unless(defined(&RT2860_TX_STA_CNT1)) {
    sub RT2860_TX_STA_CNT1 () {	0x1710;}
}
unless(defined(&RT2860_TX_STA_CNT2)) {
    sub RT2860_TX_STA_CNT2 () {	0x1714;}
}
unless(defined(&RT2860_TX_STAT_FIFO)) {
    sub RT2860_TX_STAT_FIFO () {	0x1718;}
}
unless(defined(&RT2860_WCID_ENTRY)) {
    sub RT2860_WCID_ENTRY {
	my($wcid) = @_;
	eval q((0x1800 + ($wcid) * 8));
    }
}
unless(defined(&RT2860_FW_BASE)) {
    sub RT2860_FW_BASE () {	0x2000;}
}
unless(defined(&RT2870_FW_BASE)) {
    sub RT2870_FW_BASE () {	0x3000;}
}
unless(defined(&RT2860_PKEY)) {
    sub RT2860_PKEY {
	my($wcid) = @_;
	eval q((0x4000 + ($wcid) * 32));
    }
}
unless(defined(&RT2860_IVEIV)) {
    sub RT2860_IVEIV {
	my($wcid) = @_;
	eval q((0x6000 + ($wcid) * 8));
    }
}
unless(defined(&RT2860_WCID_ATTR)) {
    sub RT2860_WCID_ATTR {
	my($wcid) = @_;
	eval q((0x6800 + ($wcid) * 4));
    }
}
unless(defined(&RT2860_SKEY)) {
    sub RT2860_SKEY {
	my($vap, $kidx) = @_;
	eval q((0x6c00 + ($vap) * 128+ ($kidx) * 32));
    }
}
unless(defined(&RT2860_SKEY_MODE_0_7)) {
    sub RT2860_SKEY_MODE_0_7 () {	0x7000;}
}
unless(defined(&RT2860_SKEY_MODE_8_15)) {
    sub RT2860_SKEY_MODE_8_15 () {	0x7004;}
}
unless(defined(&RT2860_SKEY_MODE_16_23)) {
    sub RT2860_SKEY_MODE_16_23 () {	0x7008;}
}
unless(defined(&RT2860_SKEY_MODE_24_31)) {
    sub RT2860_SKEY_MODE_24_31 () {	0x700c;}
}
unless(defined(&RT2860_H2M_MAILBOX)) {
    sub RT2860_H2M_MAILBOX () {	0x7010;}
}
unless(defined(&RT2860_H2M_MAILBOX_CID)) {
    sub RT2860_H2M_MAILBOX_CID () {	0x7014;}
}
unless(defined(&RT2860_H2M_MAILBOX_STATUS)) {
    sub RT2860_H2M_MAILBOX_STATUS () {	0x701c;}
}
unless(defined(&RT2860_H2M_BBPAGENT)) {
    sub RT2860_H2M_BBPAGENT () {	0x7028;}
}
unless(defined(&RT2860_BCN_BASE)) {
    sub RT2860_BCN_BASE {
	my($vap) = @_;
	eval q((0x7800 + ($vap) * 512));
    }
}
unless(defined(&RT2860_C)) {
    sub RT2860_C () {	(1<< 0);}
}
unless(defined(&RT2860_S)) {
    sub RT2860_S () {	(1<< 1);}
}
unless(defined(&RT2860_D)) {
    sub RT2860_D () {	(1<< 2);}
}
unless(defined(&RT2860_SHIFT_D)) {
    sub RT2860_SHIFT_D () {	2;}
}
unless(defined(&RT2860_Q)) {
    sub RT2860_Q () {	(1<< 3);}
}
unless(defined(&RT2860_SHIFT_Q)) {
    sub RT2860_SHIFT_Q () {	3;}
}
unless(defined(&RT2860_TX_COHERENT)) {
    sub RT2860_TX_COHERENT () {	(1<< 17);}
}
unless(defined(&RT2860_RX_COHERENT)) {
    sub RT2860_RX_COHERENT () {	(1<< 16);}
}
unless(defined(&RT2860_MAC_INT_4)) {
    sub RT2860_MAC_INT_4 () {	(1<< 15);}
}
unless(defined(&RT2860_MAC_INT_3)) {
    sub RT2860_MAC_INT_3 () {	(1<< 14);}
}
unless(defined(&RT2860_MAC_INT_2)) {
    sub RT2860_MAC_INT_2 () {	(1<< 13);}
}
unless(defined(&RT2860_MAC_INT_1)) {
    sub RT2860_MAC_INT_1 () {	(1<< 12);}
}
unless(defined(&RT2860_MAC_INT_0)) {
    sub RT2860_MAC_INT_0 () {	(1<< 11);}
}
unless(defined(&RT2860_TX_RX_COHERENT)) {
    sub RT2860_TX_RX_COHERENT () {	(1<< 10);}
}
unless(defined(&RT2860_MCU_CMD_INT)) {
    sub RT2860_MCU_CMD_INT () {	(1<< 9);}
}
unless(defined(&RT2860_TX_DONE_INT5)) {
    sub RT2860_TX_DONE_INT5 () {	(1<< 8);}
}
unless(defined(&RT2860_TX_DONE_INT4)) {
    sub RT2860_TX_DONE_INT4 () {	(1<< 7);}
}
unless(defined(&RT2860_TX_DONE_INT3)) {
    sub RT2860_TX_DONE_INT3 () {	(1<< 6);}
}
unless(defined(&RT2860_TX_DONE_INT2)) {
    sub RT2860_TX_DONE_INT2 () {	(1<< 5);}
}
unless(defined(&RT2860_TX_DONE_INT1)) {
    sub RT2860_TX_DONE_INT1 () {	(1<< 4);}
}
unless(defined(&RT2860_TX_DONE_INT0)) {
    sub RT2860_TX_DONE_INT0 () {	(1<< 3);}
}
unless(defined(&RT2860_RX_DONE_INT)) {
    sub RT2860_RX_DONE_INT () {	(1<< 2);}
}
unless(defined(&RT2860_TX_DLY_INT)) {
    sub RT2860_TX_DLY_INT () {	(1<< 1);}
}
unless(defined(&RT2860_RX_DLY_INT)) {
    sub RT2860_RX_DLY_INT () {	(1<< 0);}
}
unless(defined(&RT2860_HDR_SEG_LEN_SHIFT)) {
    sub RT2860_HDR_SEG_LEN_SHIFT () {	8;}
}
unless(defined(&RT2860_BIG_ENDIAN)) {
    sub RT2860_BIG_ENDIAN () {	(1<< 7);}
}
unless(defined(&RT2860_TX_WB_DDONE)) {
    sub RT2860_TX_WB_DDONE () {	(1<< 6);}
}
unless(defined(&RT2860_WPDMA_BT_SIZE_SHIFT)) {
    sub RT2860_WPDMA_BT_SIZE_SHIFT () {	4;}
}
unless(defined(&RT2860_WPDMA_BT_SIZE16)) {
    sub RT2860_WPDMA_BT_SIZE16 () {	0;}
}
unless(defined(&RT2860_WPDMA_BT_SIZE32)) {
    sub RT2860_WPDMA_BT_SIZE32 () {	1;}
}
unless(defined(&RT2860_WPDMA_BT_SIZE64)) {
    sub RT2860_WPDMA_BT_SIZE64 () {	2;}
}
unless(defined(&RT2860_WPDMA_BT_SIZE128)) {
    sub RT2860_WPDMA_BT_SIZE128 () {	3;}
}
unless(defined(&RT2860_RX_DMA_BUSY)) {
    sub RT2860_RX_DMA_BUSY () {	(1<< 3);}
}
unless(defined(&RT2860_RX_DMA_EN)) {
    sub RT2860_RX_DMA_EN () {	(1<< 2);}
}
unless(defined(&RT2860_TX_DMA_BUSY)) {
    sub RT2860_TX_DMA_BUSY () {	(1<< 1);}
}
unless(defined(&RT2860_TX_DMA_EN)) {
    sub RT2860_TX_DMA_EN () {	(1<< 0);}
}
unless(defined(&RT2860_TXDLY_INT_EN)) {
    sub RT2860_TXDLY_INT_EN () {	(1<< 31);}
}
unless(defined(&RT2860_TXMAX_PINT_SHIFT)) {
    sub RT2860_TXMAX_PINT_SHIFT () {	24;}
}
unless(defined(&RT2860_TXMAX_PTIME_SHIFT)) {
    sub RT2860_TXMAX_PTIME_SHIFT () {	16;}
}
unless(defined(&RT2860_RXDLY_INT_EN)) {
    sub RT2860_RXDLY_INT_EN () {	(1<< 15);}
}
unless(defined(&RT2860_RXMAX_PINT_SHIFT)) {
    sub RT2860_RXMAX_PINT_SHIFT () {	8;}
}
unless(defined(&RT2860_RXMAX_PTIME_SHIFT)) {
    sub RT2860_RXMAX_PTIME_SHIFT () {	0;}
}
unless(defined(&RT2860_GPIO_D_SHIFT)) {
    sub RT2860_GPIO_D_SHIFT () {	8;}
}
unless(defined(&RT2860_GPIO_O_SHIFT)) {
    sub RT2860_GPIO_O_SHIFT () {	0;}
}
unless(defined(&RT2860_USB_TX_BUSY)) {
    sub RT2860_USB_TX_BUSY () {	(1<< 31);}
}
unless(defined(&RT2860_USB_RX_BUSY)) {
    sub RT2860_USB_RX_BUSY () {	(1<< 30);}
}
unless(defined(&RT2860_USB_EPOUT_VLD_SHIFT)) {
    sub RT2860_USB_EPOUT_VLD_SHIFT () {	24;}
}
unless(defined(&RT2860_USB_TX_EN)) {
    sub RT2860_USB_TX_EN () {	(1<< 23);}
}
unless(defined(&RT2860_USB_RX_EN)) {
    sub RT2860_USB_RX_EN () {	(1<< 22);}
}
unless(defined(&RT2860_USB_RX_AGG_EN)) {
    sub RT2860_USB_RX_AGG_EN () {	(1<< 21);}
}
unless(defined(&RT2860_USB_TXOP_HALT)) {
    sub RT2860_USB_TXOP_HALT () {	(1<< 20);}
}
unless(defined(&RT2860_USB_TX_CLEAR)) {
    sub RT2860_USB_TX_CLEAR () {	(1<< 19);}
}
unless(defined(&RT2860_USB_PHY_WD_EN)) {
    sub RT2860_USB_PHY_WD_EN () {	(1<< 16);}
}
unless(defined(&RT2860_USB_PHY_MAN_RST)) {
    sub RT2860_USB_PHY_MAN_RST () {	(1<< 15);}
}
unless(defined(&RT2860_USB_RX_AGG_LMT)) {
    sub RT2860_USB_RX_AGG_LMT {
	my($x) = @_;
	eval q((($x) << 8));
    }
}
unless(defined(&RT2860_USB_RX_AGG_TO)) {
    sub RT2860_USB_RX_AGG_TO {
	my($x) = @_;
	eval q((($x) & 0xff));
    }
}
unless(defined(&RT2860_TEST_EN)) {
    sub RT2860_TEST_EN () {	(1<< 24);}
}
unless(defined(&RT2860_TEST_SEL_SHIFT)) {
    sub RT2860_TEST_SEL_SHIFT () {	16;}
}
unless(defined(&RT2860_BT_MODE_EN)) {
    sub RT2860_BT_MODE_EN () {	(1<< 8);}
}
unless(defined(&RT2860_US_CYC_CNT_SHIFT)) {
    sub RT2860_US_CYC_CNT_SHIFT () {	0;}
}
unless(defined(&RT2860_HST_PM_SEL)) {
    sub RT2860_HST_PM_SEL () {	(1<< 16);}
}
unless(defined(&RT2860_CAP_MODE)) {
    sub RT2860_CAP_MODE () {	(1<< 14);}
}
unless(defined(&RT2860_PME_OEN)) {
    sub RT2860_PME_OEN () {	(1<< 13);}
}
unless(defined(&RT2860_CLKSELECT)) {
    sub RT2860_CLKSELECT () {	(1<< 12);}
}
unless(defined(&RT2860_PBF_CLK_EN)) {
    sub RT2860_PBF_CLK_EN () {	(1<< 11);}
}
unless(defined(&RT2860_MAC_CLK_EN)) {
    sub RT2860_MAC_CLK_EN () {	(1<< 10);}
}
unless(defined(&RT2860_DMA_CLK_EN)) {
    sub RT2860_DMA_CLK_EN () {	(1<< 9);}
}
unless(defined(&RT2860_MCU_READY)) {
    sub RT2860_MCU_READY () {	(1<< 7);}
}
unless(defined(&RT2860_ASY_RESET)) {
    sub RT2860_ASY_RESET () {	(1<< 4);}
}
unless(defined(&RT2860_PBF_RESET)) {
    sub RT2860_PBF_RESET () {	(1<< 3);}
}
unless(defined(&RT2860_MAC_RESET)) {
    sub RT2860_MAC_RESET () {	(1<< 2);}
}
unless(defined(&RT2860_DMA_RESET)) {
    sub RT2860_DMA_RESET () {	(1<< 1);}
}
unless(defined(&RT2860_MCU_RESET)) {
    sub RT2860_MCU_RESET () {	(1<< 0);}
}
unless(defined(&RT2860_MCU_CMD_SLEEP)) {
    sub RT2860_MCU_CMD_SLEEP () {	0x30;}
}
unless(defined(&RT2860_MCU_CMD_WAKEUP)) {
    sub RT2860_MCU_CMD_WAKEUP () {	0x31;}
}
unless(defined(&RT2860_MCU_CMD_LEDS)) {
    sub RT2860_MCU_CMD_LEDS () {	0x50;}
}
unless(defined(&RT2860_MCU_CMD_LED_RSSI)) {
    sub RT2860_MCU_CMD_LED_RSSI () {	0x51;}
}
unless(defined(&RT2860_MCU_CMD_LED1)) {
    sub RT2860_MCU_CMD_LED1 () {	0x52;}
}
unless(defined(&RT2860_MCU_CMD_LED2)) {
    sub RT2860_MCU_CMD_LED2 () {	0x53;}
}
unless(defined(&RT2860_MCU_CMD_LED3)) {
    sub RT2860_MCU_CMD_LED3 () {	0x54;}
}
unless(defined(&RT2860_MCU_CMD_RFRESET)) {
    sub RT2860_MCU_CMD_RFRESET () {	0x72;}
}
unless(defined(&RT2860_MCU_CMD_ANTSEL)) {
    sub RT2860_MCU_CMD_ANTSEL () {	0x73;}
}
unless(defined(&RT2860_MCU_CMD_BBP)) {
    sub RT2860_MCU_CMD_BBP () {	0x80;}
}
unless(defined(&RT2860_MCU_CMD_PSLEVEL)) {
    sub RT2860_MCU_CMD_PSLEVEL () {	0x83;}
}
unless(defined(&RT2860_TX1Q_NUM_SHIFT)) {
    sub RT2860_TX1Q_NUM_SHIFT () {	21;}
}
unless(defined(&RT2860_TX2Q_NUM_SHIFT)) {
    sub RT2860_TX2Q_NUM_SHIFT () {	16;}
}
unless(defined(&RT2860_NULL0_MODE)) {
    sub RT2860_NULL0_MODE () {	(1<< 15);}
}
unless(defined(&RT2860_NULL1_MODE)) {
    sub RT2860_NULL1_MODE () {	(1<< 14);}
}
unless(defined(&RT2860_RX_DROP_MODE)) {
    sub RT2860_RX_DROP_MODE () {	(1<< 13);}
}
unless(defined(&RT2860_TX0Q_MANUAL)) {
    sub RT2860_TX0Q_MANUAL () {	(1<< 12);}
}
unless(defined(&RT2860_TX1Q_MANUAL)) {
    sub RT2860_TX1Q_MANUAL () {	(1<< 11);}
}
unless(defined(&RT2860_TX2Q_MANUAL)) {
    sub RT2860_TX2Q_MANUAL () {	(1<< 10);}
}
unless(defined(&RT2860_RX0Q_MANUAL)) {
    sub RT2860_RX0Q_MANUAL () {	(1<< 9);}
}
unless(defined(&RT2860_HCCA_EN)) {
    sub RT2860_HCCA_EN () {	(1<< 8);}
}
unless(defined(&RT2860_TX0Q_EN)) {
    sub RT2860_TX0Q_EN () {	(1<< 4);}
}
unless(defined(&RT2860_TX1Q_EN)) {
    sub RT2860_TX1Q_EN () {	(1<< 3);}
}
unless(defined(&RT2860_TX2Q_EN)) {
    sub RT2860_TX2Q_EN () {	(1<< 2);}
}
unless(defined(&RT2860_RX0Q_EN)) {
    sub RT2860_RX0Q_EN () {	(1<< 1);}
}
unless(defined(&RT2860_WRITE_TXQ)) {
    sub RT2860_WRITE_TXQ {
	my($qid) = @_;
	eval q((1<< (11- ($qid))));
    }
}
unless(defined(&RT2860_NULL0_KICK)) {
    sub RT2860_NULL0_KICK () {	(1<< 7);}
}
unless(defined(&RT2860_NULL1_KICK)) {
    sub RT2860_NULL1_KICK () {	(1<< 6);}
}
unless(defined(&RT2860_BUF_RESET)) {
    sub RT2860_BUF_RESET () {	(1<< 5);}
}
unless(defined(&RT2860_READ_TXQ)) {
    sub RT2860_READ_TXQ {
	my($qid) = @_;
	eval q((1<< (3- ($qid)));
    }
}
unless(defined(&RT2860_READ_RX0Q)) {
    sub RT2860_READ_RX0Q () {	(1<< 0);}
}
unless(defined(&RT2860_MCU_MAC_INT_8)) {
    sub RT2860_MCU_MAC_INT_8 () {	(1<< 24);}
}
unless(defined(&RT2860_MCU_MAC_INT_7)) {
    sub RT2860_MCU_MAC_INT_7 () {	(1<< 23);}
}
unless(defined(&RT2860_MCU_MAC_INT_6)) {
    sub RT2860_MCU_MAC_INT_6 () {	(1<< 22);}
}
unless(defined(&RT2860_MCU_MAC_INT_4)) {
    sub RT2860_MCU_MAC_INT_4 () {	(1<< 20);}
}
unless(defined(&RT2860_MCU_MAC_INT_3)) {
    sub RT2860_MCU_MAC_INT_3 () {	(1<< 19);}
}
unless(defined(&RT2860_MCU_MAC_INT_2)) {
    sub RT2860_MCU_MAC_INT_2 () {	(1<< 18);}
}
unless(defined(&RT2860_MCU_MAC_INT_1)) {
    sub RT2860_MCU_MAC_INT_1 () {	(1<< 17);}
}
unless(defined(&RT2860_MCU_MAC_INT_0)) {
    sub RT2860_MCU_MAC_INT_0 () {	(1<< 16);}
}
unless(defined(&RT2860_DTX0_INT)) {
    sub RT2860_DTX0_INT () {	(1<< 11);}
}
unless(defined(&RT2860_DTX1_INT)) {
    sub RT2860_DTX1_INT () {	(1<< 10);}
}
unless(defined(&RT2860_DTX2_INT)) {
    sub RT2860_DTX2_INT () {	(1<< 9);}
}
unless(defined(&RT2860_DRX0_INT)) {
    sub RT2860_DRX0_INT () {	(1<< 8);}
}
unless(defined(&RT2860_HCMD_INT)) {
    sub RT2860_HCMD_INT () {	(1<< 7);}
}
unless(defined(&RT2860_N0TX_INT)) {
    sub RT2860_N0TX_INT () {	(1<< 6);}
}
unless(defined(&RT2860_N1TX_INT)) {
    sub RT2860_N1TX_INT () {	(1<< 5);}
}
unless(defined(&RT2860_BCNTX_INT)) {
    sub RT2860_BCNTX_INT () {	(1<< 4);}
}
unless(defined(&RT2860_MTX0_INT)) {
    sub RT2860_MTX0_INT () {	(1<< 3);}
}
unless(defined(&RT2860_MTX1_INT)) {
    sub RT2860_MTX1_INT () {	(1<< 2);}
}
unless(defined(&RT2860_MTX2_INT)) {
    sub RT2860_MTX2_INT () {	(1<< 1);}
}
unless(defined(&RT2860_MRX0_INT)) {
    sub RT2860_MRX0_INT () {	(1<< 0);}
}
unless(defined(&RT2860_RX0Q_PCNT_MASK)) {
    sub RT2860_RX0Q_PCNT_MASK () {	0xff000000;}
}
unless(defined(&RT2860_TX2Q_PCNT_MASK)) {
    sub RT2860_TX2Q_PCNT_MASK () {	0xff0000;}
}
unless(defined(&RT2860_TX1Q_PCNT_MASK)) {
    sub RT2860_TX1Q_PCNT_MASK () {	0xff00;}
}
unless(defined(&RT2860_TX0Q_PCNT_MASK)) {
    sub RT2860_TX0Q_PCNT_MASK () {	0xff;}
}
unless(defined(&RT2860_CAP_ADC_FEQ)) {
    sub RT2860_CAP_ADC_FEQ () {	(1<< 31);}
}
unless(defined(&RT2860_CAP_START)) {
    sub RT2860_CAP_START () {	(1<< 30);}
}
unless(defined(&RT2860_MAN_TRIG)) {
    sub RT2860_MAN_TRIG () {	(1<< 29);}
}
unless(defined(&RT2860_TRIG_OFFSET_SHIFT)) {
    sub RT2860_TRIG_OFFSET_SHIFT () {	16;}
}
unless(defined(&RT2860_START_ADDR_SHIFT)) {
    sub RT2860_START_ADDR_SHIFT () {	0;}
}
unless(defined(&RT3070_RF_KICK)) {
    sub RT3070_RF_KICK () {	(1<< 17);}
}
unless(defined(&RT3070_RF_WRITE)) {
    sub RT3070_RF_WRITE () {	(1<< 16);}
}
unless(defined(&RT3070_SEL_EFUSE)) {
    sub RT3070_SEL_EFUSE () {	(1<< 31);}
}
unless(defined(&RT3070_EFSROM_KICK)) {
    sub RT3070_EFSROM_KICK () {	(1<< 30);}
}
unless(defined(&RT3070_EFSROM_AIN_MASK)) {
    sub RT3070_EFSROM_AIN_MASK () {	0x3ff0000;}
}
unless(defined(&RT3070_EFSROM_AIN_SHIFT)) {
    sub RT3070_EFSROM_AIN_SHIFT () {	16;}
}
unless(defined(&RT3070_EFSROM_MODE_MASK)) {
    sub RT3070_EFSROM_MODE_MASK () {	0xc0;}
}
unless(defined(&RT3070_EFUSE_AOUT_MASK)) {
    sub RT3070_EFUSE_AOUT_MASK () {	0x3f;}
}
unless(defined(&RT2860_RX_TS_EN)) {
    sub RT2860_RX_TS_EN () {	(1<< 7);}
}
unless(defined(&RT2860_WLAN_HALT_EN)) {
    sub RT2860_WLAN_HALT_EN () {	(1<< 6);}
}
unless(defined(&RT2860_PBF_LOOP_EN)) {
    sub RT2860_PBF_LOOP_EN () {	(1<< 5);}
}
unless(defined(&RT2860_CONT_TX_TEST)) {
    sub RT2860_CONT_TX_TEST () {	(1<< 4);}
}
unless(defined(&RT2860_MAC_RX_EN)) {
    sub RT2860_MAC_RX_EN () {	(1<< 3);}
}
unless(defined(&RT2860_MAC_TX_EN)) {
    sub RT2860_MAC_TX_EN () {	(1<< 2);}
}
unless(defined(&RT2860_BBP_HRST)) {
    sub RT2860_BBP_HRST () {	(1<< 1);}
}
unless(defined(&RT2860_MAC_SRST)) {
    sub RT2860_MAC_SRST () {	(1<< 0);}
}
unless(defined(&RT2860_MULTI_BCN_NUM_SHIFT)) {
    sub RT2860_MULTI_BCN_NUM_SHIFT () {	18;}
}
unless(defined(&RT2860_MULTI_BSSID_MODE_SHIFT)) {
    sub RT2860_MULTI_BSSID_MODE_SHIFT () {	16;}
}
unless(defined(&RT2860_MIN_MPDU_LEN_SHIFT)) {
    sub RT2860_MIN_MPDU_LEN_SHIFT () {	16;}
}
unless(defined(&RT2860_MAX_PSDU_LEN_SHIFT)) {
    sub RT2860_MAX_PSDU_LEN_SHIFT () {	12;}
}
unless(defined(&RT2860_MAX_PSDU_LEN8K)) {
    sub RT2860_MAX_PSDU_LEN8K () {	0;}
}
unless(defined(&RT2860_MAX_PSDU_LEN16K)) {
    sub RT2860_MAX_PSDU_LEN16K () {	1;}
}
unless(defined(&RT2860_MAX_PSDU_LEN32K)) {
    sub RT2860_MAX_PSDU_LEN32K () {	2;}
}
unless(defined(&RT2860_MAX_PSDU_LEN64K)) {
    sub RT2860_MAX_PSDU_LEN64K () {	3;}
}
unless(defined(&RT2860_MAX_MPDU_LEN_SHIFT)) {
    sub RT2860_MAX_MPDU_LEN_SHIFT () {	0;}
}
unless(defined(&RT2860_BBP_RW_PARALLEL)) {
    sub RT2860_BBP_RW_PARALLEL () {	(1<< 19);}
}
unless(defined(&RT2860_BBP_PAR_DUR_112_5)) {
    sub RT2860_BBP_PAR_DUR_112_5 () {	(1<< 18);}
}
unless(defined(&RT2860_BBP_CSR_KICK)) {
    sub RT2860_BBP_CSR_KICK () {	(1<< 17);}
}
unless(defined(&RT2860_BBP_CSR_READ)) {
    sub RT2860_BBP_CSR_READ () {	(1<< 16);}
}
unless(defined(&RT2860_BBP_ADDR_SHIFT)) {
    sub RT2860_BBP_ADDR_SHIFT () {	8;}
}
unless(defined(&RT2860_BBP_DATA_SHIFT)) {
    sub RT2860_BBP_DATA_SHIFT () {	0;}
}
unless(defined(&RT2860_RF_REG_CTRL)) {
    sub RT2860_RF_REG_CTRL () {	(1<< 31);}
}
unless(defined(&RT2860_RF_LE_SEL1)) {
    sub RT2860_RF_LE_SEL1 () {	(1<< 30);}
}
unless(defined(&RT2860_RF_LE_STBY)) {
    sub RT2860_RF_LE_STBY () {	(1<< 29);}
}
unless(defined(&RT2860_RF_REG_WIDTH_SHIFT)) {
    sub RT2860_RF_REG_WIDTH_SHIFT () {	24;}
}
unless(defined(&RT2860_RF_REG_0_SHIFT)) {
    sub RT2860_RF_REG_0_SHIFT () {	0;}
}
unless(defined(&RT2860_RF_DUR_5)) {
    sub RT2860_RF_DUR_5 () {	(1<< 24);}
}
unless(defined(&RT2860_RF_REG_1_SHIFT)) {
    sub RT2860_RF_REG_1_SHIFT () {	0;}
}
unless(defined(&RT2860_LED_POL)) {
    sub RT2860_LED_POL () {	(1<< 30);}
}
unless(defined(&RT2860_Y_LED_MODE_SHIFT)) {
    sub RT2860_Y_LED_MODE_SHIFT () {	28;}
}
unless(defined(&RT2860_G_LED_MODE_SHIFT)) {
    sub RT2860_G_LED_MODE_SHIFT () {	26;}
}
unless(defined(&RT2860_R_LED_MODE_SHIFT)) {
    sub RT2860_R_LED_MODE_SHIFT () {	24;}
}
unless(defined(&RT2860_LED_MODE_OFF)) {
    sub RT2860_LED_MODE_OFF () {	0;}
}
unless(defined(&RT2860_LED_MODE_BLINK_TX)) {
    sub RT2860_LED_MODE_BLINK_TX () {	1;}
}
unless(defined(&RT2860_LED_MODE_SLOW_BLINK)) {
    sub RT2860_LED_MODE_SLOW_BLINK () {	2;}
}
unless(defined(&RT2860_LED_MODE_ON)) {
    sub RT2860_LED_MODE_ON () {	3;}
}
unless(defined(&RT2860_SLOW_BLK_TIME_SHIFT)) {
    sub RT2860_SLOW_BLK_TIME_SHIFT () {	16;}
}
unless(defined(&RT2860_LED_OFF_TIME_SHIFT)) {
    sub RT2860_LED_OFF_TIME_SHIFT () {	8;}
}
unless(defined(&RT2860_LED_ON_TIME_SHIFT)) {
    sub RT2860_LED_ON_TIME_SHIFT () {	0;}
}
unless(defined(&RT2860_BB_RXEND_EN)) {
    sub RT2860_BB_RXEND_EN () {	(1<< 29);}
}
unless(defined(&RT2860_EIFS_TIME_SHIFT)) {
    sub RT2860_EIFS_TIME_SHIFT () {	20;}
}
unless(defined(&RT2860_OFDM_XIFS_TIME_SHIFT)) {
    sub RT2860_OFDM_XIFS_TIME_SHIFT () {	16;}
}
unless(defined(&RT2860_OFDM_SIFS_TIME_SHIFT)) {
    sub RT2860_OFDM_SIFS_TIME_SHIFT () {	8;}
}
unless(defined(&RT2860_CCK_SIFS_TIME_SHIFT)) {
    sub RT2860_CCK_SIFS_TIME_SHIFT () {	0;}
}
unless(defined(&RT2860_CC_DELAY_TIME_SHIFT)) {
    sub RT2860_CC_DELAY_TIME_SHIFT () {	8;}
}
unless(defined(&RT2860_SLOT_TIME)) {
    sub RT2860_SLOT_TIME () {	0;}
}
unless(defined(&RT2860_NAV_UPD)) {
    sub RT2860_NAV_UPD () {	(1<< 31);}
}
unless(defined(&RT2860_NAV_UPD_VAL_SHIFT)) {
    sub RT2860_NAV_UPD_VAL_SHIFT () {	16;}
}
unless(defined(&RT2860_NAV_CLR_EN)) {
    sub RT2860_NAV_CLR_EN () {	(1<< 15);}
}
unless(defined(&RT2860_NAV_TIMER_SHIFT)) {
    sub RT2860_NAV_TIMER_SHIFT () {	0;}
}
unless(defined(&RT2860_EIFS_AS_CH_BUSY)) {
    sub RT2860_EIFS_AS_CH_BUSY () {	(1<< 4);}
}
unless(defined(&RT2860_NAV_AS_CH_BUSY)) {
    sub RT2860_NAV_AS_CH_BUSY () {	(1<< 3);}
}
unless(defined(&RT2860_RX_AS_CH_BUSY)) {
    sub RT2860_RX_AS_CH_BUSY () {	(1<< 2);}
}
unless(defined(&RT2860_TX_AS_CH_BUSY)) {
    sub RT2860_TX_AS_CH_BUSY () {	(1<< 1);}
}
unless(defined(&RT2860_CH_STA_TIMER_EN)) {
    sub RT2860_CH_STA_TIMER_EN () {	(1<< 0);}
}
unless(defined(&RT2860_TSF_INS_COMP_SHIFT)) {
    sub RT2860_TSF_INS_COMP_SHIFT () {	24;}
}
unless(defined(&RT2860_BCN_TX_EN)) {
    sub RT2860_BCN_TX_EN () {	(1<< 20);}
}
unless(defined(&RT2860_TBTT_TIMER_EN)) {
    sub RT2860_TBTT_TIMER_EN () {	(1<< 19);}
}
unless(defined(&RT2860_TSF_SYNC_MODE_SHIFT)) {
    sub RT2860_TSF_SYNC_MODE_SHIFT () {	17;}
}
unless(defined(&RT2860_TSF_SYNC_MODE_DIS)) {
    sub RT2860_TSF_SYNC_MODE_DIS () {	0;}
}
unless(defined(&RT2860_TSF_SYNC_MODE_STA)) {
    sub RT2860_TSF_SYNC_MODE_STA () {	1;}
}
unless(defined(&RT2860_TSF_SYNC_MODE_IBSS)) {
    sub RT2860_TSF_SYNC_MODE_IBSS () {	2;}
}
unless(defined(&RT2860_TSF_SYNC_MODE_HOSTAP)) {
    sub RT2860_TSF_SYNC_MODE_HOSTAP () {	3;}
}
unless(defined(&RT2860_TSF_TIMER_EN)) {
    sub RT2860_TSF_TIMER_EN () {	(1<< 16);}
}
unless(defined(&RT2860_BCN_INTVAL_SHIFT)) {
    sub RT2860_BCN_INTVAL_SHIFT () {	0;}
}
unless(defined(&RT2860_BCN_CWMIN_SHIFT)) {
    sub RT2860_BCN_CWMIN_SHIFT () {	20;}
}
unless(defined(&RT2860_BCN_AIFSN_SHIFT)) {
    sub RT2860_BCN_AIFSN_SHIFT () {	16;}
}
unless(defined(&RT2860_BCN_EXP_WIN_SHIFT)) {
    sub RT2860_BCN_EXP_WIN_SHIFT () {	8;}
}
unless(defined(&RT2860_TBTT_ADJUST_SHIFT)) {
    sub RT2860_TBTT_ADJUST_SHIFT () {	0;}
}
unless(defined(&RT2860_GP_TIMER_SHIFT)) {
    sub RT2860_GP_TIMER_SHIFT () {	16;}
}
unless(defined(&RT2860_PRE_TBTT_TIMER_SHIFT)) {
    sub RT2860_PRE_TBTT_TIMER_SHIFT () {	0;}
}
unless(defined(&RT2860_GP_TIMER_EN)) {
    sub RT2860_GP_TIMER_EN () {	(1<< 1);}
}
unless(defined(&RT2860_PRE_TBTT_INT_EN)) {
    sub RT2860_PRE_TBTT_INT_EN () {	(1<< 0);}
}
unless(defined(&RT2860_RX_STATUS_BUSY)) {
    sub RT2860_RX_STATUS_BUSY () {	(1<< 1);}
}
unless(defined(&RT2860_TX_STATUS_BUSY)) {
    sub RT2860_TX_STATUS_BUSY () {	(1<< 0);}
}
unless(defined(&RT2860_IO_ADDA_PD)) {
    sub RT2860_IO_ADDA_PD () {	(1<< 3);}
}
unless(defined(&RT2860_IO_PLL_PD)) {
    sub RT2860_IO_PLL_PD () {	(1<< 2);}
}
unless(defined(&RT2860_IO_RA_PE)) {
    sub RT2860_IO_RA_PE () {	(1<< 1);}
}
unless(defined(&RT2860_IO_RF_PE)) {
    sub RT2860_IO_RF_PE () {	(1<< 0);}
}
unless(defined(&RT2860_AUTO_WAKEUP_EN)) {
    sub RT2860_AUTO_WAKEUP_EN () {	(1<< 15);}
}
unless(defined(&RT2860_SLEEP_TBTT_NUM_SHIFT)) {
    sub RT2860_SLEEP_TBTT_NUM_SHIFT () {	8;}
}
unless(defined(&RT2860_WAKEUP_LEAD_TIME_SHIFT)) {
    sub RT2860_WAKEUP_LEAD_TIME_SHIFT () {	0;}
}
unless(defined(&RT2860_TRSW_POL)) {
    sub RT2860_TRSW_POL () {	(1<< 19);}
}
unless(defined(&RT2860_TRSW_EN)) {
    sub RT2860_TRSW_EN () {	(1<< 18);}
}
unless(defined(&RT2860_RFTR_POL)) {
    sub RT2860_RFTR_POL () {	(1<< 17);}
}
unless(defined(&RT2860_RFTR_EN)) {
    sub RT2860_RFTR_EN () {	(1<< 16);}
}
unless(defined(&RT2860_LNA_PE_G1_POL)) {
    sub RT2860_LNA_PE_G1_POL () {	(1<< 15);}
}
unless(defined(&RT2860_LNA_PE_A1_POL)) {
    sub RT2860_LNA_PE_A1_POL () {	(1<< 14);}
}
unless(defined(&RT2860_LNA_PE_G0_POL)) {
    sub RT2860_LNA_PE_G0_POL () {	(1<< 13);}
}
unless(defined(&RT2860_LNA_PE_A0_POL)) {
    sub RT2860_LNA_PE_A0_POL () {	(1<< 12);}
}
unless(defined(&RT2860_LNA_PE_G1_EN)) {
    sub RT2860_LNA_PE_G1_EN () {	(1<< 11);}
}
unless(defined(&RT2860_LNA_PE_A1_EN)) {
    sub RT2860_LNA_PE_A1_EN () {	(1<< 10);}
}
unless(defined(&RT2860_LNA_PE_G0_EN)) {
    sub RT2860_LNA_PE_G0_EN () {	(1<< 9);}
}
unless(defined(&RT2860_LNA_PE_A0_EN)) {
    sub RT2860_LNA_PE_A0_EN () {	(1<< 8);}
}
unless(defined(&RT2860_PA_PE_G1_POL)) {
    sub RT2860_PA_PE_G1_POL () {	(1<< 7);}
}
unless(defined(&RT2860_PA_PE_A1_POL)) {
    sub RT2860_PA_PE_A1_POL () {	(1<< 6);}
}
unless(defined(&RT2860_PA_PE_G0_POL)) {
    sub RT2860_PA_PE_G0_POL () {	(1<< 5);}
}
unless(defined(&RT2860_PA_PE_A0_POL)) {
    sub RT2860_PA_PE_A0_POL () {	(1<< 4);}
}
unless(defined(&RT2860_PA_PE_G1_EN)) {
    sub RT2860_PA_PE_G1_EN () {	(1<< 3);}
}
unless(defined(&RT2860_PA_PE_A1_EN)) {
    sub RT2860_PA_PE_A1_EN () {	(1<< 2);}
}
unless(defined(&RT2860_PA_PE_G0_EN)) {
    sub RT2860_PA_PE_G0_EN () {	(1<< 1);}
}
unless(defined(&RT2860_PA_PE_A0_EN)) {
    sub RT2860_PA_PE_A0_EN () {	(1<< 0);}
}
unless(defined(&RT2860_5G_BAND_SEL_N)) {
    sub RT2860_5G_BAND_SEL_N () {	(1<< 2);}
}
unless(defined(&RT2860_5G_BAND_SEL_P)) {
    sub RT2860_5G_BAND_SEL_P () {	(1<< 1);}
}
unless(defined(&RT2860_TX_BAND_SEL)) {
    sub RT2860_TX_BAND_SEL () {	(1<< 0);}
}
unless(defined(&RT2860_DLY_RFTR_EN_SHIFT)) {
    sub RT2860_DLY_RFTR_EN_SHIFT () {	24;}
}
unless(defined(&RT2860_DLY_TRSW_EN_SHIFT)) {
    sub RT2860_DLY_TRSW_EN_SHIFT () {	16;}
}
unless(defined(&RT2860_DLY_PAPE_EN_SHIFT)) {
    sub RT2860_DLY_PAPE_EN_SHIFT () {	8;}
}
unless(defined(&RT2860_DLY_TXPE_EN_SHIFT)) {
    sub RT2860_DLY_TXPE_EN_SHIFT () {	0;}
}
unless(defined(&RT2860_DLY_RFTR_DIS_SHIFT)) {
    sub RT2860_DLY_RFTR_DIS_SHIFT () {	16;}
}
unless(defined(&RT2860_DLY_TRSW_DIS_SHIFT)) {
    sub RT2860_DLY_TRSW_DIS_SHIFT () {	8;}
}
unless(defined(&RT2860_DLY_PAPE_DIS)) {
    sub RT2860_DLY_PAPE_DIS () {	 &SHIFT 0;}
}
unless(defined(&RT2860_DLY_LNA_EN_SHIFT)) {
    sub RT2860_DLY_LNA_EN_SHIFT () {	24;}
}
unless(defined(&RT2860_DLY_LNA_DIS_SHIFT)) {
    sub RT2860_DLY_LNA_DIS_SHIFT () {	16;}
}
unless(defined(&RT2860_DLY_DAC_EN_SHIFT)) {
    sub RT2860_DLY_DAC_EN_SHIFT () {	8;}
}
unless(defined(&RT2860_DLY_DAC_DIS_SHIFT)) {
    sub RT2860_DLY_DAC_DIS_SHIFT () {	0;}
}
unless(defined(&RT2860_TXOP_REM_THRES_SHIFT)) {
    sub RT2860_TXOP_REM_THRES_SHIFT () {	24;}
}
unless(defined(&RT2860_CF_END_THRES_SHIFT)) {
    sub RT2860_CF_END_THRES_SHIFT () {	16;}
}
unless(defined(&RT2860_RDG_IN_THRES)) {
    sub RT2860_RDG_IN_THRES () {	8;}
}
unless(defined(&RT2860_RDG_OUT_THRES)) {
    sub RT2860_RDG_OUT_THRES () {	0;}
}
unless(defined(&RT2860_EXT_CW_MIN_SHIFT)) {
    sub RT2860_EXT_CW_MIN_SHIFT () {	16;}
}
unless(defined(&RT2860_EXT_CCA_DLY_SHIFT)) {
    sub RT2860_EXT_CCA_DLY_SHIFT () {	8;}
}
unless(defined(&RT2860_EXT_CCA_EN)) {
    sub RT2860_EXT_CCA_EN () {	(1<< 7);}
}
unless(defined(&RT2860_LSIG_TXOP_EN)) {
    sub RT2860_LSIG_TXOP_EN () {	(1<< 6);}
}
unless(defined(&RT2860_TXOP_TRUN_EN_MIMOPS)) {
    sub RT2860_TXOP_TRUN_EN_MIMOPS () {	(1<< 4);}
}
unless(defined(&RT2860_TXOP_TRUN_EN_TXOP)) {
    sub RT2860_TXOP_TRUN_EN_TXOP () {	(1<< 3);}
}
unless(defined(&RT2860_TXOP_TRUN_EN_RATE)) {
    sub RT2860_TXOP_TRUN_EN_RATE () {	(1<< 2);}
}
unless(defined(&RT2860_TXOP_TRUN_EN_AC)) {
    sub RT2860_TXOP_TRUN_EN_AC () {	(1<< 1);}
}
unless(defined(&RT2860_TXOP_TRUN_EN_TIMEOUT)) {
    sub RT2860_TXOP_TRUN_EN_TIMEOUT () {	(1<< 0);}
}
unless(defined(&RT2860_RTS_FBK_EN)) {
    sub RT2860_RTS_FBK_EN () {	(1<< 24);}
}
unless(defined(&RT2860_RTS_THRES_SHIFT)) {
    sub RT2860_RTS_THRES_SHIFT () {	8;}
}
unless(defined(&RT2860_RTS_RTY_LIMIT_SHIFT)) {
    sub RT2860_RTS_RTY_LIMIT_SHIFT () {	0;}
}
unless(defined(&RT2860_TXOP_TIMEOUT_SHIFT)) {
    sub RT2860_TXOP_TIMEOUT_SHIFT () {	16;}
}
unless(defined(&RT2860_RX_ACK_TIMEOUT_SHIFT)) {
    sub RT2860_RX_ACK_TIMEOUT_SHIFT () {	8;}
}
unless(defined(&RT2860_MPDU_LIFE_TIME_SHIFT)) {
    sub RT2860_MPDU_LIFE_TIME_SHIFT () {	4;}
}
unless(defined(&RT2860_TX_AUTOFB_EN)) {
    sub RT2860_TX_AUTOFB_EN () {	(1<< 30);}
}
unless(defined(&RT2860_AGG_RTY_MODE_TIMER)) {
    sub RT2860_AGG_RTY_MODE_TIMER () {	(1<< 29);}
}
unless(defined(&RT2860_NAG_RTY_MODE_TIMER)) {
    sub RT2860_NAG_RTY_MODE_TIMER () {	(1<< 28);}
}
unless(defined(&RT2860_LONG_RTY_THRES_SHIFT)) {
    sub RT2860_LONG_RTY_THRES_SHIFT () {	16;}
}
unless(defined(&RT2860_LONG_RTY_LIMIT_SHIFT)) {
    sub RT2860_LONG_RTY_LIMIT_SHIFT () {	8;}
}
unless(defined(&RT2860_SHORT_RTY_LIMIT_SHIFT)) {
    sub RT2860_SHORT_RTY_LIMIT_SHIFT () {	0;}
}
unless(defined(&RT2860_REMOTE_MFS_SHIFT)) {
    sub RT2860_REMOTE_MFS_SHIFT () {	24;}
}
unless(defined(&RT2860_REMOTE_MFB_SHIFT)) {
    sub RT2860_REMOTE_MFB_SHIFT () {	16;}
}
unless(defined(&RT2860_TX_CFACK_EN)) {
    sub RT2860_TX_CFACK_EN () {	(1<< 12);}
}
unless(defined(&RT2860_TX_RDG_EN)) {
    sub RT2860_TX_RDG_EN () {	(1<< 11);}
}
unless(defined(&RT2860_TX_MRQ_EN)) {
    sub RT2860_TX_MRQ_EN () {	(1<< 10);}
}
unless(defined(&RT2860_REMOTE_UMFS_EN)) {
    sub RT2860_REMOTE_UMFS_EN () {	(1<< 9);}
}
unless(defined(&RT2860_TX_MFB_EN)) {
    sub RT2860_TX_MFB_EN () {	(1<< 8);}
}
unless(defined(&RT2860_REMOTE_MFB_LT_SHIFT)) {
    sub RT2860_REMOTE_MFB_LT_SHIFT () {	0;}
}
unless(defined(&RT2860_RTSTH_EN)) {
    sub RT2860_RTSTH_EN () {	(1<< 26);}
}
unless(defined(&RT2860_TXOP_ALLOW_GF40)) {
    sub RT2860_TXOP_ALLOW_GF40 () {	(1<< 25);}
}
unless(defined(&RT2860_TXOP_ALLOW_GF20)) {
    sub RT2860_TXOP_ALLOW_GF20 () {	(1<< 24);}
}
unless(defined(&RT2860_TXOP_ALLOW_MM40)) {
    sub RT2860_TXOP_ALLOW_MM40 () {	(1<< 23);}
}
unless(defined(&RT2860_TXOP_ALLOW_MM20)) {
    sub RT2860_TXOP_ALLOW_MM20 () {	(1<< 22);}
}
unless(defined(&RT2860_TXOP_ALLOW_OFDM)) {
    sub RT2860_TXOP_ALLOW_OFDM () {	(1<< 21);}
}
unless(defined(&RT2860_TXOP_ALLOW_CCK)) {
    sub RT2860_TXOP_ALLOW_CCK () {	(1<< 20);}
}
unless(defined(&RT2860_TXOP_ALLOW_ALL)) {
    sub RT2860_TXOP_ALLOW_ALL () {	(0x3f << 20);}
}
unless(defined(&RT2860_PROT_NAV_SHORT)) {
    sub RT2860_PROT_NAV_SHORT () {	(1<< 18);}
}
unless(defined(&RT2860_PROT_NAV_LONG)) {
    sub RT2860_PROT_NAV_LONG () {	(2<< 18);}
}
unless(defined(&RT2860_PROT_CTRL_RTS_CTS)) {
    sub RT2860_PROT_CTRL_RTS_CTS () {	(1<< 16);}
}
unless(defined(&RT2860_PROT_CTRL_CTS)) {
    sub RT2860_PROT_CTRL_CTS () {	(2<< 16);}
}
unless(defined(&RT2860_EXP_OFDM_TIME_SHIFT)) {
    sub RT2860_EXP_OFDM_TIME_SHIFT () {	16;}
}
unless(defined(&RT2860_EXP_CCK_TIME_SHIFT)) {
    sub RT2860_EXP_CCK_TIME_SHIFT () {	0;}
}
unless(defined(&RT2860_DROP_CTRL_RSV)) {
    sub RT2860_DROP_CTRL_RSV () {	(1<< 16);}
}
unless(defined(&RT2860_DROP_BAR)) {
    sub RT2860_DROP_BAR () {	(1<< 15);}
}
unless(defined(&RT2860_DROP_BA)) {
    sub RT2860_DROP_BA () {	(1<< 14);}
}
unless(defined(&RT2860_DROP_PSPOLL)) {
    sub RT2860_DROP_PSPOLL () {	(1<< 13);}
}
unless(defined(&RT2860_DROP_RTS)) {
    sub RT2860_DROP_RTS () {	(1<< 12);}
}
unless(defined(&RT2860_DROP_CTS)) {
    sub RT2860_DROP_CTS () {	(1<< 11);}
}
unless(defined(&RT2860_DROP_ACK)) {
    sub RT2860_DROP_ACK () {	(1<< 10);}
}
unless(defined(&RT2860_DROP_CFEND)) {
    sub RT2860_DROP_CFEND () {	(1<< 9);}
}
unless(defined(&RT2860_DROP_CFACK)) {
    sub RT2860_DROP_CFACK () {	(1<< 8);}
}
unless(defined(&RT2860_DROP_DUPL)) {
    sub RT2860_DROP_DUPL () {	(1<< 7);}
}
unless(defined(&RT2860_DROP_BC)) {
    sub RT2860_DROP_BC () {	(1<< 6);}
}
unless(defined(&RT2860_DROP_MC)) {
    sub RT2860_DROP_MC () {	(1<< 5);}
}
unless(defined(&RT2860_DROP_VER_ERR)) {
    sub RT2860_DROP_VER_ERR () {	(1<< 4);}
}
unless(defined(&RT2860_DROP_NOT_MYBSS)) {
    sub RT2860_DROP_NOT_MYBSS () {	(1<< 3);}
}
unless(defined(&RT2860_DROP_UC_NOME)) {
    sub RT2860_DROP_UC_NOME () {	(1<< 2);}
}
unless(defined(&RT2860_DROP_PHY_ERR)) {
    sub RT2860_DROP_PHY_ERR () {	(1<< 1);}
}
unless(defined(&RT2860_DROP_CRC_ERR)) {
    sub RT2860_DROP_CRC_ERR () {	(1<< 0);}
}
unless(defined(&RT2860_CTRL_PWR_BIT)) {
    sub RT2860_CTRL_PWR_BIT () {	(1<< 7);}
}
unless(defined(&RT2860_BAC_ACK_POLICY)) {
    sub RT2860_BAC_ACK_POLICY () {	(1<< 6);}
}
unless(defined(&RT2860_CCK_SHORT_EN)) {
    sub RT2860_CCK_SHORT_EN () {	(1<< 4);}
}
unless(defined(&RT2860_CTS_40M_REF_EN)) {
    sub RT2860_CTS_40M_REF_EN () {	(1<< 3);}
}
unless(defined(&RT2860_CTS_40M_MODE_EN)) {
    sub RT2860_CTS_40M_MODE_EN () {	(1<< 2);}
}
unless(defined(&RT2860_BAC_ACKPOLICY_EN)) {
    sub RT2860_BAC_ACKPOLICY_EN () {	(1<< 1);}
}
unless(defined(&RT2860_AUTO_RSP_EN)) {
    sub RT2860_AUTO_RSP_EN () {	(1<< 0);}
}
unless(defined(&RT2860_OFDM_SIFS_COST_SHIFT)) {
    sub RT2860_OFDM_SIFS_COST_SHIFT () {	8;}
}
unless(defined(&RT2860_CCK_SIFS_COST_SHIFT)) {
    sub RT2860_CCK_SIFS_COST_SHIFT () {	0;}
}
unless(defined(&RT2860_TXOP_ETM1_EN)) {
    sub RT2860_TXOP_ETM1_EN () {	(1<< 25);}
}
unless(defined(&RT2860_TXOP_ETM0_EN)) {
    sub RT2860_TXOP_ETM0_EN () {	(1<< 24);}
}
unless(defined(&RT2860_TXOP_ETM_THRES_SHIFT)) {
    sub RT2860_TXOP_ETM_THRES_SHIFT () {	16;}
}
unless(defined(&RT2860_TXOP_ETO_EN)) {
    sub RT2860_TXOP_ETO_EN () {	(1<< 8);}
}
unless(defined(&RT2860_TXOP_ETO_THRES_SHIFT)) {
    sub RT2860_TXOP_ETO_THRES_SHIFT () {	1;}
}
unless(defined(&RT2860_PER_RX_RST_EN)) {
    sub RT2860_PER_RX_RST_EN () {	(1<< 0);}
}
unless(defined(&RT2860_TXQ_MCS_SHIFT)) {
    sub RT2860_TXQ_MCS_SHIFT () {	16;}
}
unless(defined(&RT2860_TXQ_WCID_SHIFT)) {
    sub RT2860_TXQ_WCID_SHIFT () {	8;}
}
unless(defined(&RT2860_TXQ_ACKREQ)) {
    sub RT2860_TXQ_ACKREQ () {	(1<< 7);}
}
unless(defined(&RT2860_TXQ_AGG)) {
    sub RT2860_TXQ_AGG () {	(1<< 6);}
}
unless(defined(&RT2860_TXQ_OK)) {
    sub RT2860_TXQ_OK () {	(1<< 5);}
}
unless(defined(&RT2860_TXQ_PID_SHIFT)) {
    sub RT2860_TXQ_PID_SHIFT () {	1;}
}
unless(defined(&RT2860_TXQ_VLD)) {
    sub RT2860_TXQ_VLD () {	(1<< 0);}
}
unless(defined(&RT2860_MODE_NOSEC)) {
    sub RT2860_MODE_NOSEC () {	0;}
}
unless(defined(&RT2860_MODE_WEP40)) {
    sub RT2860_MODE_WEP40 () {	1;}
}
unless(defined(&RT2860_MODE_WEP104)) {
    sub RT2860_MODE_WEP104 () {	2;}
}
unless(defined(&RT2860_MODE_TKIP)) {
    sub RT2860_MODE_TKIP () {	3;}
}
unless(defined(&RT2860_MODE_AES_CCMP)) {
    sub RT2860_MODE_AES_CCMP () {	4;}
}
unless(defined(&RT2860_MODE_CKIP40)) {
    sub RT2860_MODE_CKIP40 () {	5;}
}
unless(defined(&RT2860_MODE_CKIP104)) {
    sub RT2860_MODE_CKIP104 () {	6;}
}
unless(defined(&RT2860_MODE_CKIP128)) {
    sub RT2860_MODE_CKIP128 () {	7;}
}
unless(defined(&RT2860_RX_PKEY_EN)) {
    sub RT2860_RX_PKEY_EN () {	(1<< 0);}
}
unless(defined(&RT2860_H2M_BUSY)) {
    sub RT2860_H2M_BUSY () {	(1<< 24);}
}
unless(defined(&RT2860_TOKEN_NO_INTR)) {
    sub RT2860_TOKEN_NO_INTR () {	0xff;}
}
unless(defined(&RT2860_LED_RADIO)) {
    sub RT2860_LED_RADIO () {	(1<< 13);}
}
unless(defined(&RT2860_LED_LINK_2GHZ)) {
    sub RT2860_LED_LINK_2GHZ () {	(1<< 14);}
}
unless(defined(&RT2860_LED_LINK_5GHZ)) {
    sub RT2860_LED_LINK_5GHZ () {	(1<< 15);}
}
unless(defined(&RT3070_RF_BLOCK)) {
    sub RT3070_RF_BLOCK () {	(1<< 0);}
}
unless(defined(&RT3070_RX0_PD)) {
    sub RT3070_RX0_PD () {	(1<< 2);}
}
unless(defined(&RT3070_TX0_PD)) {
    sub RT3070_TX0_PD () {	(1<< 3);}
}
unless(defined(&RT3070_RX1_PD)) {
    sub RT3070_RX1_PD () {	(1<< 4);}
}
unless(defined(&RT3070_TX1_PD)) {
    sub RT3070_TX1_PD () {	(1<< 5);}
}
unless(defined(&RT3070_TX_LO2)) {
    sub RT3070_TX_LO2 () {	(1<< 3);}
}
unless(defined(&RT3070_TX_LO1)) {
    sub RT3070_TX_LO1 () {	(1<< 3);}
}
unless(defined(&RT3070_RX_LO1)) {
    sub RT3070_RX_LO1 () {	(1<< 3);}
}
unless(defined(&RT3070_RX_LO2)) {
    sub RT3070_RX_LO2 () {	(1<< 3);}
}
unless(defined(&RT2860_TX_BURST)) {
    sub RT2860_TX_BURST () {	(1<< 15);}
}
unless(defined(&RT2860_TX_LS1)) {
    sub RT2860_TX_LS1 () {	(1<< 14);}
}
unless(defined(&RT2860_TX_DDONE)) {
    sub RT2860_TX_DDONE () {	(1<< 15);}
}
unless(defined(&RT2860_TX_LS0)) {
    sub RT2860_TX_LS0 () {	(1<< 14);}
}
unless(defined(&RT2860_TX_QSEL_SHIFT)) {
    sub RT2860_TX_QSEL_SHIFT () {	1;}
}
unless(defined(&RT2860_TX_QSEL_MGMT)) {
    sub RT2860_TX_QSEL_MGMT () {	(0<< 1);}
}
unless(defined(&RT2860_TX_QSEL_HCCA)) {
    sub RT2860_TX_QSEL_HCCA () {	(1<< 1);}
}
unless(defined(&RT2860_TX_QSEL_EDCA)) {
    sub RT2860_TX_QSEL_EDCA () {	(2<< 1);}
}
unless(defined(&RT2860_TX_WIV)) {
    sub RT2860_TX_WIV () {	(1<< 0);}
}
unless(defined(&RT2860_TX_MPDU_DSITY_SHIFT)) {
    sub RT2860_TX_MPDU_DSITY_SHIFT () {	5;}
}
unless(defined(&RT2860_TX_AMPDU)) {
    sub RT2860_TX_AMPDU () {	(1<< 4);}
}
unless(defined(&RT2860_TX_TS)) {
    sub RT2860_TX_TS () {	(1<< 3);}
}
unless(defined(&RT2860_TX_CFACK)) {
    sub RT2860_TX_CFACK () {	(1<< 2);}
}
unless(defined(&RT2860_TX_MMPS)) {
    sub RT2860_TX_MMPS () {	(1<< 1);}
}
unless(defined(&RT2860_TX_FRAG)) {
    sub RT2860_TX_FRAG () {	(1<< 0);}
}
unless(defined(&RT2860_TX_TXOP_HT)) {
    sub RT2860_TX_TXOP_HT () {	0;}
}
unless(defined(&RT2860_TX_TXOP_PIFS)) {
    sub RT2860_TX_TXOP_PIFS () {	1;}
}
unless(defined(&RT2860_TX_TXOP_SIFS)) {
    sub RT2860_TX_TXOP_SIFS () {	2;}
}
unless(defined(&RT2860_TX_TXOP_BACKOFF)) {
    sub RT2860_TX_TXOP_BACKOFF () {	3;}
}
unless(defined(&RT2860_PHY_MODE)) {
    sub RT2860_PHY_MODE () {	0xc000;}
}
unless(defined(&RT2860_PHY_CCK)) {
    sub RT2860_PHY_CCK () {	(0<< 14);}
}
unless(defined(&RT2860_PHY_OFDM)) {
    sub RT2860_PHY_OFDM () {	(1<< 14);}
}
unless(defined(&RT2860_PHY_HT)) {
    sub RT2860_PHY_HT () {	(2<< 14);}
}
unless(defined(&RT2860_PHY_HT_GF)) {
    sub RT2860_PHY_HT_GF () {	(3<< 14);}
}
unless(defined(&RT2860_PHY_SGI)) {
    sub RT2860_PHY_SGI () {	(1<< 8);}
}
unless(defined(&RT2860_PHY_BW40)) {
    sub RT2860_PHY_BW40 () {	(1<< 7);}
}
unless(defined(&RT2860_PHY_MCS)) {
    sub RT2860_PHY_MCS () {	0x7f;}
}
unless(defined(&RT2860_PHY_SHPRE)) {
    sub RT2860_PHY_SHPRE () {	(1<< 3);}
}
unless(defined(&RT2860_TX_BAWINSIZE_SHIFT)) {
    sub RT2860_TX_BAWINSIZE_SHIFT () {	2;}
}
unless(defined(&RT2860_TX_NSEQ)) {
    sub RT2860_TX_NSEQ () {	(1<< 1);}
}
unless(defined(&RT2860_TX_ACK)) {
    sub RT2860_TX_ACK () {	(1<< 0);}
}
unless(defined(&RT2860_TX_PID_SHIFT)) {
    sub RT2860_TX_PID_SHIFT () {	12;}
}
unless(defined(&RT2860_RX_DDONE)) {
    sub RT2860_RX_DDONE () {	(1<< 15);}
}
unless(defined(&RT2860_RX_LS0)) {
    sub RT2860_RX_LS0 () {	(1<< 14);}
}
unless(defined(&RT2860_RX_DEC)) {
    sub RT2860_RX_DEC () {	(1<< 16);}
}
unless(defined(&RT2860_RX_AMPDU)) {
    sub RT2860_RX_AMPDU () {	(1<< 15);}
}
unless(defined(&RT2860_RX_L2PAD)) {
    sub RT2860_RX_L2PAD () {	(1<< 14);}
}
unless(defined(&RT2860_RX_RSSI)) {
    sub RT2860_RX_RSSI () {	(1<< 13);}
}
unless(defined(&RT2860_RX_HTC)) {
    sub RT2860_RX_HTC () {	(1<< 12);}
}
unless(defined(&RT2860_RX_AMSDU)) {
    sub RT2860_RX_AMSDU () {	(1<< 11);}
}
unless(defined(&RT2860_RX_MICERR)) {
    sub RT2860_RX_MICERR () {	(1<< 10);}
}
unless(defined(&RT2860_RX_ICVERR)) {
    sub RT2860_RX_ICVERR () {	(1<< 9);}
}
unless(defined(&RT2860_RX_CRCERR)) {
    sub RT2860_RX_CRCERR () {	(1<< 8);}
}
unless(defined(&RT2860_RX_MYBSS)) {
    sub RT2860_RX_MYBSS () {	(1<< 7);}
}
unless(defined(&RT2860_RX_BC)) {
    sub RT2860_RX_BC () {	(1<< 6);}
}
unless(defined(&RT2860_RX_MC)) {
    sub RT2860_RX_MC () {	(1<< 5);}
}
unless(defined(&RT2860_RX_UC2ME)) {
    sub RT2860_RX_UC2ME () {	(1<< 4);}
}
unless(defined(&RT2860_RX_FRAG)) {
    sub RT2860_RX_FRAG () {	(1<< 3);}
}
unless(defined(&RT2860_RX_NULL)) {
    sub RT2860_RX_NULL () {	(1<< 2);}
}
unless(defined(&RT2860_RX_DATA)) {
    sub RT2860_RX_DATA () {	(1<< 1);}
}
unless(defined(&RT2860_RX_BA)) {
    sub RT2860_RX_BA () {	(1<< 0);}
}
unless(defined(&RT2860_RX_UDF_SHIFT)) {
    sub RT2860_RX_UDF_SHIFT () {	5;}
}
unless(defined(&RT2860_RX_BSS_IDX_SHIFT)) {
    sub RT2860_RX_BSS_IDX_SHIFT () {	2;}
}
unless(defined(&RT2860_RX_TID_SHIFT)) {
    sub RT2860_RX_TID_SHIFT () {	12;}
}
unless(defined(&RT2860_TXWI_DMASZ)) {
    sub RT2860_TXWI_DMASZ () {	($sizeof{'struct rt2860_txwi'} + $sizeof{'struct ieee80211_htframe'} + $sizeof{ &uint16_t});}
}
unless(defined(&RT2860_RF1)) {
    sub RT2860_RF1 () {	0;}
}
unless(defined(&RT2860_RF2)) {
    sub RT2860_RF2 () {	2;}
}
unless(defined(&RT2860_RF3)) {
    sub RT2860_RF3 () {	1;}
}
unless(defined(&RT2860_RF4)) {
    sub RT2860_RF4 () {	3;}
}
unless(defined(&RT2860_RF_2820)) {
    sub RT2860_RF_2820 () {	1;}
}
unless(defined(&RT2860_RF_2850)) {
    sub RT2860_RF_2850 () {	2;}
}
unless(defined(&RT2860_RF_2720)) {
    sub RT2860_RF_2720 () {	3;}
}
unless(defined(&RT2860_RF_2750)) {
    sub RT2860_RF_2750 () {	4;}
}
unless(defined(&RT3070_RF_3020)) {
    sub RT3070_RF_3020 () {	5;}
}
unless(defined(&RT3070_RF_2020)) {
    sub RT3070_RF_2020 () {	6;}
}
unless(defined(&RT3070_RF_3021)) {
    sub RT3070_RF_3021 () {	7;}
}
unless(defined(&RT3070_RF_3022)) {
    sub RT3070_RF_3022 () {	8;}
}
unless(defined(&RT3070_RF_3052)) {
    sub RT3070_RF_3052 () {	9;}
}
unless(defined(&RT2870_RESET)) {
    sub RT2870_RESET () {	1;}
}
unless(defined(&RT2870_WRITE_2)) {
    sub RT2870_WRITE_2 () {	2;}
}
unless(defined(&RT2870_WRITE_REGION_1)) {
    sub RT2870_WRITE_REGION_1 () {	6;}
}
unless(defined(&RT2870_READ_REGION_1)) {
    sub RT2870_READ_REGION_1 () {	7;}
}
unless(defined(&RT2870_EEPROM_READ)) {
    sub RT2870_EEPROM_READ () {	9;}
}
unless(defined(&RT2860_EEPROM_DELAY)) {
    sub RT2860_EEPROM_DELAY () {	1;}
}
unless(defined(&RT2860_EEPROM_VERSION)) {
    sub RT2860_EEPROM_VERSION () {	0x1;}
}
unless(defined(&RT2860_EEPROM_MAC01)) {
    sub RT2860_EEPROM_MAC01 () {	0x2;}
}
unless(defined(&RT2860_EEPROM_MAC23)) {
    sub RT2860_EEPROM_MAC23 () {	0x3;}
}
unless(defined(&RT2860_EEPROM_MAC45)) {
    sub RT2860_EEPROM_MAC45 () {	0x4;}
}
unless(defined(&RT2860_EEPROM_PCIE_PSLEVEL)) {
    sub RT2860_EEPROM_PCIE_PSLEVEL () {	0x11;}
}
unless(defined(&RT2860_EEPROM_REV)) {
    sub RT2860_EEPROM_REV () {	0x12;}
}
unless(defined(&RT2860_EEPROM_ANTENNA)) {
    sub RT2860_EEPROM_ANTENNA () {	0x1a;}
}
unless(defined(&RT2860_EEPROM_CONFIG)) {
    sub RT2860_EEPROM_CONFIG () {	0x1b;}
}
unless(defined(&RT2860_EEPROM_COUNTRY)) {
    sub RT2860_EEPROM_COUNTRY () {	0x1c;}
}
unless(defined(&RT2860_EEPROM_FREQ_LEDS)) {
    sub RT2860_EEPROM_FREQ_LEDS () {	0x1d;}
}
unless(defined(&RT2860_EEPROM_LED1)) {
    sub RT2860_EEPROM_LED1 () {	0x1e;}
}
unless(defined(&RT2860_EEPROM_LED2)) {
    sub RT2860_EEPROM_LED2 () {	0x1f;}
}
unless(defined(&RT2860_EEPROM_LED3)) {
    sub RT2860_EEPROM_LED3 () {	0x20;}
}
unless(defined(&RT2860_EEPROM_LNA)) {
    sub RT2860_EEPROM_LNA () {	0x22;}
}
unless(defined(&RT2860_EEPROM_RSSI1_2GHZ)) {
    sub RT2860_EEPROM_RSSI1_2GHZ () {	0x23;}
}
unless(defined(&RT2860_EEPROM_RSSI2_2GHZ)) {
    sub RT2860_EEPROM_RSSI2_2GHZ () {	0x24;}
}
unless(defined(&RT2860_EEPROM_RSSI1_5GHZ)) {
    sub RT2860_EEPROM_RSSI1_5GHZ () {	0x25;}
}
unless(defined(&RT2860_EEPROM_RSSI2_5GHZ)) {
    sub RT2860_EEPROM_RSSI2_5GHZ () {	0x26;}
}
unless(defined(&RT2860_EEPROM_DELTAPWR)) {
    sub RT2860_EEPROM_DELTAPWR () {	0x28;}
}
unless(defined(&RT2860_EEPROM_PWR2GHZ_BASE1)) {
    sub RT2860_EEPROM_PWR2GHZ_BASE1 () {	0x29;}
}
unless(defined(&RT2860_EEPROM_PWR2GHZ_BASE2)) {
    sub RT2860_EEPROM_PWR2GHZ_BASE2 () {	0x30;}
}
unless(defined(&RT2860_EEPROM_TSSI1_2GHZ)) {
    sub RT2860_EEPROM_TSSI1_2GHZ () {	0x37;}
}
unless(defined(&RT2860_EEPROM_TSSI2_2GHZ)) {
    sub RT2860_EEPROM_TSSI2_2GHZ () {	0x38;}
}
unless(defined(&RT2860_EEPROM_TSSI3_2GHZ)) {
    sub RT2860_EEPROM_TSSI3_2GHZ () {	0x39;}
}
unless(defined(&RT2860_EEPROM_TSSI4_2GHZ)) {
    sub RT2860_EEPROM_TSSI4_2GHZ () {	0x3a;}
}
unless(defined(&RT2860_EEPROM_TSSI5_2GHZ)) {
    sub RT2860_EEPROM_TSSI5_2GHZ () {	0x3b;}
}
unless(defined(&RT2860_EEPROM_PWR5GHZ_BASE1)) {
    sub RT2860_EEPROM_PWR5GHZ_BASE1 () {	0x3c;}
}
unless(defined(&RT2860_EEPROM_PWR5GHZ_BASE2)) {
    sub RT2860_EEPROM_PWR5GHZ_BASE2 () {	0x53;}
}
unless(defined(&RT2860_EEPROM_TSSI1_5GHZ)) {
    sub RT2860_EEPROM_TSSI1_5GHZ () {	0x6a;}
}
unless(defined(&RT2860_EEPROM_TSSI2_5GHZ)) {
    sub RT2860_EEPROM_TSSI2_5GHZ () {	0x6b;}
}
unless(defined(&RT2860_EEPROM_TSSI3_5GHZ)) {
    sub RT2860_EEPROM_TSSI3_5GHZ () {	0x6c;}
}
unless(defined(&RT2860_EEPROM_TSSI4_5GHZ)) {
    sub RT2860_EEPROM_TSSI4_5GHZ () {	0x6d;}
}
unless(defined(&RT2860_EEPROM_TSSI5_5GHZ)) {
    sub RT2860_EEPROM_TSSI5_5GHZ () {	0x6e;}
}
unless(defined(&RT2860_EEPROM_RPWR)) {
    sub RT2860_EEPROM_RPWR () {	0x6f;}
}
unless(defined(&RT2860_EEPROM_BBP_BASE)) {
    sub RT2860_EEPROM_BBP_BASE () {	0x78;}
}
unless(defined(&RT3071_EEPROM_RF_BASE)) {
    sub RT3071_EEPROM_RF_BASE () {	0x82;}
}
unless(defined(&RT2860_RIDX_CCK1)) {
    sub RT2860_RIDX_CCK1 () {	0;}
}
unless(defined(&RT2860_RIDX_CCK11)) {
    sub RT2860_RIDX_CCK11 () {	3;}
}
unless(defined(&RT2860_RIDX_OFDM6)) {
    sub RT2860_RIDX_OFDM6 () {	4;}
}
unless(defined(&RT2860_RIDX_MAX)) {
    sub RT2860_RIDX_MAX () {	11;}
}
unless(defined(&RAL_READ)) {
    sub RAL_READ {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_4(($sc)-> &sc_st, ($sc)-> &sc_sh, ($reg)));
    }
}
unless(defined(&RAL_WRITE)) {
    sub RAL_WRITE {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_4(($sc)-> &sc_st, ($sc)-> &sc_sh, ($reg), ($val)));
    }
}
unless(defined(&RAL_BARRIER_WRITE)) {
    sub RAL_BARRIER_WRITE {
	my($sc) = @_;
	eval q( &bus_space_barrier(($sc)-> &sc_st, ($sc)-> &sc_sh, 0, 0x1800,  &BUS_SPACE_BARRIER_WRITE));
    }
}
unless(defined(&RAL_BARRIER_READ_WRITE)) {
    sub RAL_BARRIER_READ_WRITE {
	my($sc) = @_;
	eval q( &bus_space_barrier(($sc)-> &sc_st, ($sc)-> &sc_sh, 0, 0x1800,  &BUS_SPACE_BARRIER_READ |  &BUS_SPACE_BARRIER_WRITE));
    }
}
unless(defined(&RAL_WRITE_REGION_1)) {
    sub RAL_WRITE_REGION_1 {
	my($sc, $offset, $datap, $count) = @_;
	eval q( &bus_space_write_region_1(($sc)-> &sc_st, ($sc)-> &sc_sh, ($offset), ($datap), ($count)));
    }
}
unless(defined(&RAL_SET_REGION_4)) {
    sub RAL_SET_REGION_4 {
	my($sc, $offset, $val, $count) = @_;
	eval q( &bus_space_set_region_4(($sc)-> &sc_st, ($sc)-> &sc_sh, ($offset), ($val), ($count)));
    }
}
unless(defined(&RT2860_EEPROM_CTL)) {
    sub RT2860_EEPROM_CTL {
	my($sc, $val) = @_;
	eval q( &do {  &RAL_WRITE(($sc),  &RT2860_PCI_EECTRL, ($val));  &RAL_BARRIER_READ_WRITE(($sc));  &DELAY( &RT2860_EEPROM_DELAY); }  &while ( 0));
    }
}
unless(defined(&RT2860_DEF_MAC)) {
    sub RT2860_DEF_MAC () {	{  &RT2860_BCN_OFFSET0, 0xf8f0e8e0 }, {  &RT2860_LEGACY_BASIC_RATE, 0x13f }, {  &RT2860_HT_BASIC_RATE, 0x8003 }, {  &RT2860_MAC_SYS_CTRL, 0x }, {  &RT2860_BKOFF_SLOT_CFG, 0x209 }, {  &RT2860_TX_SW_CFG0, 0x }, {  &RT2860_TX_SW_CFG1, 0x80606 }, {  &RT2860_TX_LINK_CFG, 0x1020 }, {  &RT2860_TX_TIMEOUT_CFG, 0xa2090 }, {  &RT2860_LED_CFG, 0x7f031e46 }, {  &RT2860_WMM_AIFSN_CFG, 0x2273 }, {  &RT2860_WMM_CWMIN_CFG, 0x2344 }, {  &RT2860_WMM_CWMAX_CFG, 0x34aa }, {  &RT2860_MAX_PCNT, 0x1f3fbf9f }, {  &RT2860_TX_RTY_CFG, 0x47d01f0f }, {  &RT2860_AUTO_RSP_CFG, 0x13 }, {  &RT2860_CCK_PROT_CFG, 0x5740003 }, {  &RT2860_OFDM_PROT_CFG, 0x5740003 }, {  &RT2860_GF20_PROT_CFG, 0x1744004 }, {  &RT2860_GF40_PROT_CFG, 0x3f44084 }, {  &RT2860_MM20_PROT_CFG, 0x1744004 }, {  &RT2860_MM40_PROT_CFG, 0x3f54084 }, {  &RT2860_TXOP_CTRL_CFG, 0x583f }, {  &RT2860_TXOP_HLDR_ET, 0x2 }, {  &RT2860_TX_RTS_CFG, 0x92b20 }, {  &RT2860_EXP_ACK_TIME, 0x2400ca }, {  &RT2860_XIFS_TIME_CFG, 0x33a41010 }, {  &RT2860_PWR_PIN_CFG, 0x3 };}
}
unless(defined(&RT2870_DEF_MAC)) {
    sub RT2870_DEF_MAC () {	{  &RT2860_BCN_OFFSET0, 0xf8f0e8e0 }, {  &RT2860_LEGACY_BASIC_RATE, 0x13f }, {  &RT2860_HT_BASIC_RATE, 0x8003 }, {  &RT2860_MAC_SYS_CTRL, 0x }, {  &RT2860_BKOFF_SLOT_CFG, 0x209 }, {  &RT2860_TX_SW_CFG0, 0x }, {  &RT2860_TX_SW_CFG1, 0x80606 }, {  &RT2860_TX_LINK_CFG, 0x1020 }, {  &RT2860_TX_TIMEOUT_CFG, 0xa2090 }, {  &RT2860_LED_CFG, 0x7f031e46 }, {  &RT2860_WMM_AIFSN_CFG, 0x2273 }, {  &RT2860_WMM_CWMIN_CFG, 0x2344 }, {  &RT2860_WMM_CWMAX_CFG, 0x34aa }, {  &RT2860_MAX_PCNT, 0x1f3fbf9f }, {  &RT2860_TX_RTY_CFG, 0x47d01f0f }, {  &RT2860_AUTO_RSP_CFG, 0x13 }, {  &RT2860_CCK_PROT_CFG, 0x5740003 }, {  &RT2860_OFDM_PROT_CFG, 0x5740003 }, {  &RT2860_PBF_CFG, 0xf40006 }, {  &RT2860_WPDMA_GLO_CFG, 0x30 }, {  &RT2860_GF20_PROT_CFG, 0x1744004 }, {  &RT2860_GF40_PROT_CFG, 0x3f44084 }, {  &RT2860_MM20_PROT_CFG, 0x1744004 }, {  &RT2860_MM40_PROT_CFG, 0x3f44084 }, {  &RT2860_TXOP_CTRL_CFG, 0x583f }, {  &RT2860_TXOP_HLDR_ET, 0x2 }, {  &RT2860_TX_RTS_CFG, 0x92b20 }, {  &RT2860_EXP_ACK_TIME, 0x2400ca }, {  &RT2860_XIFS_TIME_CFG, 0x33a41010 }, {  &RT2860_PWR_PIN_CFG, 0x3 };}
}
unless(defined(&RT2860_DEF_BBP)) {
    sub RT2860_DEF_BBP () {	{ 65, 0x2c }, { 66, 0x38 }, { 69, 0x12 }, { 70, 0xa }, { 73, 0x10 }, { 81, 0x37 }, { 82, 0x62 }, { 83, 0x6a }, { 84, 0x99 }, { 86, 0x }, { 91, 0x4 }, { 92, 0x }, { 103, 0x }, { 105, 0x5 }, { 106, 0x35 };}
}
unless(defined(&RT2860_RF2850)) {
    sub RT2860_RF2850 () {	{ 1, 0x100bb3, 0x1301e1, 0x5a014, 0x1402 }, { 2, 0x100bb3, 0x1301e1, 0x5a014, 0x1407 }, { 3, 0x100bb3, 0x1301e2, 0x5a014, 0x1402 }, { 4, 0x100bb3, 0x1301e2, 0x5a014, 0x1407 }, { 5, 0x100bb3, 0x1301e3, 0x5a014, 0x1402 }, { 6, 0x100bb3, 0x1301e3, 0x5a014, 0x1407 }, { 7, 0x100bb3, 0x1301e4, 0x5a014, 0x1402 }, { 8, 0x100bb3, 0x1301e4, 0x5a014, 0x1407 }, { 9, 0x100bb3, 0x1301e5, 0x5a014, 0x1402 }, { 10, 0x100bb3, 0x1301e5, 0x5a014, 0x1407 }, { 11, 0x100bb3, 0x1301e6, 0x5a014, 0x1402 }, { 12, 0x100bb3, 0x1301e6, 0x5a014, 0x1407 }, { 13, 0x100bb3, 0x1301e7, 0x5a014, 0x1402 }, { 14, 0x100bb3, 0x1301e8, 0x5a014, 0x1404 }, { 36, 0x100bb3, 0x130266, 0x56014, 0x1408 }, { 38, 0x100bb3, 0x130267, 0x56014, 0x1404 }, { 40, 0x100bb2, 0x1301a0, 0x56014, 0x1400 }, { 44, 0x100bb2, 0x1301a0, 0x56014, 0x1408 }, { 46, 0x100bb2, 0x1301a1, 0x56014, 0x1402 }, { 48, 0x100bb2, 0x1301a1, 0x56014, 0x1406 }, { 52, 0x100bb2, 0x1301a2, 0x56014, 0x1404 }, { 54, 0x100bb2, 0x1301a2, 0x56014, 0x1408 }, { 56, 0x100bb2, 0x1301a3, 0x56014, 0x1402 }, { 60, 0x100bb2, 0x1301a4, 0x56014, 0x1400 }, { 62, 0x100bb2, 0x1301a4, 0x56014, 0x1404 }, { 64, 0x100bb2, 0x1301a4, 0x56014, 0x1408 }, { 100, 0x100bb2, 0x1301ac, 0x5e014, 0x1400 }, { 102, 0x100bb2, 0x1701ac, 0x15e014, 0x1404 }, { 104, 0x100bb2, 0x1701ac, 0x15e014, 0x1408 }, { 108, 0x100bb3, 0x17028c, 0x15e014, 0x1404 }, { 110, 0x100bb3, 0x13028d, 0x5e014, 0x1400 }, { 112, 0x100bb3, 0x13028d, 0x5e014, 0x1406 }, { 116, 0x100bb3, 0x13028e, 0x5e014, 0x1408 }, { 118, 0x100bb3, 0x13028f, 0x5e014, 0x1404 }, { 120, 0x100bb1, 0x1300e0, 0x5e014, 0x1400 }, { 124, 0x100bb1, 0x1300e0, 0x5e014, 0x1404 }, { 126, 0x100bb1, 0x1300e0, 0x5e014, 0x1406 }, { 128, 0x100bb1, 0x1300e0, 0x5e014, 0x1408 }, { 132, 0x100bb1, 0x1300e1, 0x5e014, 0x1402 }, { 134, 0x100bb1, 0x1300e1, 0x5e014, 0x1404 }, { 136, 0x100bb1, 0x1300e1, 0x5e014, 0x1406 }, { 140, 0x100bb1, 0x1300e2, 0x5e014, 0x1400 }, { 149, 0x100bb1, 0x1300e2, 0x5e014, 0x1409 }, { 151, 0x100bb1, 0x1300e3, 0x5e014, 0x1401 }, { 153, 0x100bb1, 0x1300e3, 0x5e014, 0x1403 }, { 157, 0x100bb1, 0x1300e3, 0x5e014, 0x1407 }, { 159, 0x100bb1, 0x1300e3, 0x5e014, 0x1409 }, { 161, 0x100bb1, 0x1300e4, 0x5e014, 0x1401 }, { 165, 0x100bb1, 0x1300e4, 0x5e014, 0x1405 }, { 167, 0x100bb1, 0x1300f4, 0x5e014, 0x1407 }, { 169, 0x100bb1, 0x1300f4, 0x5e014, 0x1409 }, { 171, 0x100bb1, 0x1300f5, 0x5e014, 0x1401 }, { 173, 0x100bb1, 0x1300f5, 0x5e014, 0x1403 };}
}
unless(defined(&RT3070_RF3052)) {
    sub RT3070_RF3052 () {	{ 0xf1, 2, 2}, { 0xf1, 2, 7}, { 0xf2, 2, 2}, { 0xf2, 2, 7}, { 0xf3, 2, 2}, { 0xf3, 2, 7}, { 0xf4, 2, 2}, { 0xf4, 2, 7}, { 0xf5, 2, 2}, { 0xf5, 2, 7}, { 0xf6, 2, 2}, { 0xf6, 2, 7}, { 0xf7, 2, 2}, { 0xf8, 2, 4}, { 0x56, 0, 4}, { 0x56, 0, 6}, { 0x56, 0, 8}, { 0x57, 0, 0}, { 0x57, 0, 2}, { 0x57, 0, 4}, { 0x57, 0, 8}, { 0x57, 0, 10}, { 0x58, 0, 0}, { 0x58, 0, 4}, { 0x58, 0, 6}, { 0x58, 0, 8}, { 0x5b, 0, 8}, { 0x5b, 0, 10}, { 0x5c, 0, 0}, { 0x5c, 0, 4}, { 0x5c, 0, 6}, { 0x5c, 0, 8}, { 0x5d, 0, 0}, { 0x5d, 0, 2}, { 0x5d, 0, 4}, { 0x5d, 0, 8}, { 0x5d, 0, 10}, { 0x5e, 0, 0}, { 0x5e, 0, 4}, { 0x5e, 0, 6}, { 0x5e, 0, 8}, { 0x5f, 0, 0}, { 0x5f, 0, 9}, { 0x5f, 0, 11}, { 0x60, 0, 1}, { 0x60, 0, 5}, { 0x60, 0, 7}, { 0x60, 0, 9}, { 0x61, 0, 1}, { 0x61, 0, 3}, { 0x61, 0, 5}, { 0x61, 0, 7}, { 0x61, 0, 9};}
}
unless(defined(&RT3070_DEF_RF)) {
    sub RT3070_DEF_RF () {	{ 4, 0x40 }, { 5, 0x3 }, { 6, 0x2 }, { 7, 0x70 }, { 9, 0xf }, { 10, 0x41 }, { 11, 0x21 }, { 12, 0x7b }, { 14, 0x90 }, { 15, 0x58 }, { 16, 0xb3 }, { 17, 0x92 }, { 18, 0x2c }, { 19, 0x2 }, { 20, 0xba }, { 21, 0xdb }, { 24, 0x16 }, { 25, 0x1 }, { 29, 0x1f };}
}
unless(defined(&RT3572_DEF_RF)) {
    sub RT3572_DEF_RF () {	{ 0, 0x70 }, { 1, 0x81 }, { 2, 0xf1 }, { 3, 0x2 }, { 4, 0x4c }, { 5, 0x5 }, { 6, 0x4a }, { 7, 0xd8 }, { 9, 0xc3 }, { 10, 0xf1 }, { 11, 0xb9 }, { 12, 0x70 }, { 13, 0x65 }, { 14, 0xa0 }, { 15, 0x53 }, { 16, 0x4c }, { 17, 0x23 }, { 18, 0xac }, { 19, 0x93 }, { 20, 0xb3 }, { 21, 0xd0 }, { 22, 0x }, { 23, 0x3c }, { 24, 0x16 }, { 25, 0x15 }, { 26, 0x85 }, { 27, 0x }, { 28, 0x }, { 29, 0x9b }, { 30, 0x9 }, { 31, 0x10 };}
}
1;
