require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&RAL_RX_DESC_SIZE)) {
    sub RAL_RX_DESC_SIZE () {	($sizeof{'struct ural_rx_desc'});}
}
unless(defined(&RAL_TX_DESC_SIZE)) {
    sub RAL_TX_DESC_SIZE () {	($sizeof{'struct ural_tx_desc'});}
}
unless(defined(&RAL_CONFIG_NO)) {
    sub RAL_CONFIG_NO () {	1;}
}
unless(defined(&RAL_IFACE_INDEX)) {
    sub RAL_IFACE_INDEX () {	0;}
}
unless(defined(&RAL_WRITE_MAC)) {
    sub RAL_WRITE_MAC () {	0x2;}
}
unless(defined(&RAL_READ_MAC)) {
    sub RAL_READ_MAC () {	0x3;}
}
unless(defined(&RAL_WRITE_MULTI_MAC)) {
    sub RAL_WRITE_MULTI_MAC () {	0x6;}
}
unless(defined(&RAL_READ_MULTI_MAC)) {
    sub RAL_READ_MULTI_MAC () {	0x7;}
}
unless(defined(&RAL_READ_EEPROM)) {
    sub RAL_READ_EEPROM () {	0x9;}
}
unless(defined(&RAL_MAC_CSR0)) {
    sub RAL_MAC_CSR0 () {	0x400;}
}
unless(defined(&RAL_MAC_CSR1)) {
    sub RAL_MAC_CSR1 () {	0x402;}
}
unless(defined(&RAL_MAC_CSR2)) {
    sub RAL_MAC_CSR2 () {	0x404;}
}
unless(defined(&RAL_MAC_CSR3)) {
    sub RAL_MAC_CSR3 () {	0x406;}
}
unless(defined(&RAL_MAC_CSR4)) {
    sub RAL_MAC_CSR4 () {	0x408;}
}
unless(defined(&RAL_MAC_CSR5)) {
    sub RAL_MAC_CSR5 () {	0x40a;}
}
unless(defined(&RAL_MAC_CSR6)) {
    sub RAL_MAC_CSR6 () {	0x40c;}
}
unless(defined(&RAL_MAC_CSR7)) {
    sub RAL_MAC_CSR7 () {	0x40e;}
}
unless(defined(&RAL_MAC_CSR8)) {
    sub RAL_MAC_CSR8 () {	0x410;}
}
unless(defined(&RAL_MAC_CSR9)) {
    sub RAL_MAC_CSR9 () {	0x412;}
}
unless(defined(&RAL_MAC_CSR10)) {
    sub RAL_MAC_CSR10 () {	0x414;}
}
unless(defined(&RAL_MAC_CSR11)) {
    sub RAL_MAC_CSR11 () {	0x416;}
}
unless(defined(&RAL_MAC_CSR12)) {
    sub RAL_MAC_CSR12 () {	0x418;}
}
unless(defined(&RAL_MAC_CSR13)) {
    sub RAL_MAC_CSR13 () {	0x41a;}
}
unless(defined(&RAL_MAC_CSR14)) {
    sub RAL_MAC_CSR14 () {	0x41c;}
}
unless(defined(&RAL_MAC_CSR15)) {
    sub RAL_MAC_CSR15 () {	0x41e;}
}
unless(defined(&RAL_MAC_CSR16)) {
    sub RAL_MAC_CSR16 () {	0x420;}
}
unless(defined(&RAL_MAC_CSR17)) {
    sub RAL_MAC_CSR17 () {	0x422;}
}
unless(defined(&RAL_MAC_CSR18)) {
    sub RAL_MAC_CSR18 () {	0x424;}
}
unless(defined(&RAL_MAC_CSR19)) {
    sub RAL_MAC_CSR19 () {	0x426;}
}
unless(defined(&RAL_MAC_CSR20)) {
    sub RAL_MAC_CSR20 () {	0x428;}
}
unless(defined(&RAL_MAC_CSR22)) {
    sub RAL_MAC_CSR22 () {	0x42c;}
}
unless(defined(&RAL_TXRX_CSR0)) {
    sub RAL_TXRX_CSR0 () {	0x440;}
}
unless(defined(&RAL_TXRX_CSR2)) {
    sub RAL_TXRX_CSR2 () {	0x444;}
}
unless(defined(&RAL_TXRX_CSR5)) {
    sub RAL_TXRX_CSR5 () {	0x44a;}
}
unless(defined(&RAL_TXRX_CSR6)) {
    sub RAL_TXRX_CSR6 () {	0x44c;}
}
unless(defined(&RAL_TXRX_CSR7)) {
    sub RAL_TXRX_CSR7 () {	0x44e;}
}
unless(defined(&RAL_TXRX_CSR8)) {
    sub RAL_TXRX_CSR8 () {	0x450;}
}
unless(defined(&RAL_TXRX_CSR10)) {
    sub RAL_TXRX_CSR10 () {	0x454;}
}
unless(defined(&RAL_TXRX_CSR11)) {
    sub RAL_TXRX_CSR11 () {	0x456;}
}
unless(defined(&RAL_TXRX_CSR18)) {
    sub RAL_TXRX_CSR18 () {	0x464;}
}
unless(defined(&RAL_TXRX_CSR19)) {
    sub RAL_TXRX_CSR19 () {	0x466;}
}
unless(defined(&RAL_TXRX_CSR20)) {
    sub RAL_TXRX_CSR20 () {	0x468;}
}
unless(defined(&RAL_TXRX_CSR21)) {
    sub RAL_TXRX_CSR21 () {	0x46a;}
}
unless(defined(&RAL_SEC_CSR0)) {
    sub RAL_SEC_CSR0 () {	0x480;}
}
unless(defined(&RAL_PHY_CSR2)) {
    sub RAL_PHY_CSR2 () {	0x4c4;}
}
unless(defined(&RAL_PHY_CSR4)) {
    sub RAL_PHY_CSR4 () {	0x4c8;}
}
unless(defined(&RAL_PHY_CSR5)) {
    sub RAL_PHY_CSR5 () {	0x4ca;}
}
unless(defined(&RAL_PHY_CSR6)) {
    sub RAL_PHY_CSR6 () {	0x4cc;}
}
unless(defined(&RAL_PHY_CSR7)) {
    sub RAL_PHY_CSR7 () {	0x4ce;}
}
unless(defined(&RAL_PHY_CSR8)) {
    sub RAL_PHY_CSR8 () {	0x4d0;}
}
unless(defined(&RAL_PHY_CSR9)) {
    sub RAL_PHY_CSR9 () {	0x4d2;}
}
unless(defined(&RAL_PHY_CSR10)) {
    sub RAL_PHY_CSR10 () {	0x4d4;}
}
unless(defined(&RAL_STA_CSR0)) {
    sub RAL_STA_CSR0 () {	0x4e0;}
}
unless(defined(&RAL_DISABLE_RX)) {
    sub RAL_DISABLE_RX () {	(1<< 0);}
}
unless(defined(&RAL_DROP_CRC_ERROR)) {
    sub RAL_DROP_CRC_ERROR () {	(1<< 1);}
}
unless(defined(&RAL_DROP_PHY_ERROR)) {
    sub RAL_DROP_PHY_ERROR () {	(1<< 2);}
}
unless(defined(&RAL_DROP_CTL)) {
    sub RAL_DROP_CTL () {	(1<< 3);}
}
unless(defined(&RAL_DROP_NOT_TO_ME)) {
    sub RAL_DROP_NOT_TO_ME () {	(1<< 4);}
}
unless(defined(&RAL_DROP_TODS)) {
    sub RAL_DROP_TODS () {	(1<< 5);}
}
unless(defined(&RAL_DROP_VERSION_ERROR)) {
    sub RAL_DROP_VERSION_ERROR () {	(1<< 6);}
}
unless(defined(&RAL_DROP_MULTICAST)) {
    sub RAL_DROP_MULTICAST () {	(1<< 9);}
}
unless(defined(&RAL_DROP_BROADCAST)) {
    sub RAL_DROP_BROADCAST () {	(1<< 10);}
}
unless(defined(&RAL_SHORT_PREAMBLE)) {
    sub RAL_SHORT_PREAMBLE () {	(1<< 2);}
}
unless(defined(&RAL_RESET_ASIC)) {
    sub RAL_RESET_ASIC () {	(1<< 0);}
}
unless(defined(&RAL_RESET_BBP)) {
    sub RAL_RESET_BBP () {	(1<< 1);}
}
unless(defined(&RAL_HOST_READY)) {
    sub RAL_HOST_READY () {	(1<< 2);}
}
unless(defined(&RAL_ENABLE_TSF)) {
    sub RAL_ENABLE_TSF () {	(1<< 0);}
}
unless(defined(&RAL_ENABLE_TSF_SYNC)) {
    sub RAL_ENABLE_TSF_SYNC {
	my($x) = @_;
	eval q(((($x) & 0x3) << 1));
    }
}
unless(defined(&RAL_ENABLE_TBCN)) {
    sub RAL_ENABLE_TBCN () {	(1<< 3);}
}
unless(defined(&RAL_ENABLE_BEACON_GENERATOR)) {
    sub RAL_ENABLE_BEACON_GENERATOR () {	(1<< 4);}
}
unless(defined(&RAL_RF_AWAKE)) {
    sub RAL_RF_AWAKE () {	(3<< 7);}
}
unless(defined(&RAL_BBP_AWAKE)) {
    sub RAL_BBP_AWAKE () {	(3<< 5);}
}
unless(defined(&RAL_BBP_WRITE)) {
    sub RAL_BBP_WRITE () {	(1<< 15);}
}
unless(defined(&RAL_BBP_BUSY)) {
    sub RAL_BBP_BUSY () {	(1<< 0);}
}
unless(defined(&RAL_RF1_AUTOTUNE)) {
    sub RAL_RF1_AUTOTUNE () {	0x8000;}
}
unless(defined(&RAL_RF3_AUTOTUNE)) {
    sub RAL_RF3_AUTOTUNE () {	0x40;}
}
unless(defined(&RAL_RF_2522)) {
    sub RAL_RF_2522 () {	0x;}
}
unless(defined(&RAL_RF_2523)) {
    sub RAL_RF_2523 () {	0x1;}
}
unless(defined(&RAL_RF_2524)) {
    sub RAL_RF_2524 () {	0x2;}
}
unless(defined(&RAL_RF_2525)) {
    sub RAL_RF_2525 () {	0x3;}
}
unless(defined(&RAL_RF_2525E)) {
    sub RAL_RF_2525E () {	0x4;}
}
unless(defined(&RAL_RF_2526)) {
    sub RAL_RF_2526 () {	0x5;}
}
unless(defined(&RAL_RF_5222)) {
    sub RAL_RF_5222 () {	0x10;}
}
unless(defined(&RAL_BBP_VERSION)) {
    sub RAL_BBP_VERSION () {	0;}
}
unless(defined(&RAL_BBP_TX)) {
    sub RAL_BBP_TX () {	2;}
}
unless(defined(&RAL_BBP_RX)) {
    sub RAL_BBP_RX () {	14;}
}
unless(defined(&RAL_BBP_ANTA)) {
    sub RAL_BBP_ANTA () {	0x;}
}
unless(defined(&RAL_BBP_DIVERSITY)) {
    sub RAL_BBP_DIVERSITY () {	0x1;}
}
unless(defined(&RAL_BBP_ANTB)) {
    sub RAL_BBP_ANTB () {	0x2;}
}
unless(defined(&RAL_BBP_ANTMASK)) {
    sub RAL_BBP_ANTMASK () {	0x3;}
}
unless(defined(&RAL_BBP_FLIPIQ)) {
    sub RAL_BBP_FLIPIQ () {	0x4;}
}
unless(defined(&RAL_JAPAN_FILTER)) {
    sub RAL_JAPAN_FILTER () {	0x8;}
}
unless(defined(&RAL_TX_RETRY)) {
    sub RAL_TX_RETRY {
	my($x) = @_;
	eval q((($x) << 4));
    }
}
unless(defined(&RAL_TX_MORE_FRAG)) {
    sub RAL_TX_MORE_FRAG () {	(1<< 8);}
}
unless(defined(&RAL_TX_NEED_ACK)) {
    sub RAL_TX_NEED_ACK () {	(1<< 9);}
}
unless(defined(&RAL_TX_TIMESTAMP)) {
    sub RAL_TX_TIMESTAMP () {	(1<< 10);}
}
unless(defined(&RAL_TX_OFDM)) {
    sub RAL_TX_OFDM () {	(1<< 11);}
}
unless(defined(&RAL_TX_NEWSEQ)) {
    sub RAL_TX_NEWSEQ () {	(1<< 12);}
}
unless(defined(&RAL_TX_IFS_MASK)) {
    sub RAL_TX_IFS_MASK () {	0x6000;}
}
unless(defined(&RAL_TX_IFS_BACKOFF)) {
    sub RAL_TX_IFS_BACKOFF () {	(0<< 13);}
}
unless(defined(&RAL_TX_IFS_SIFS)) {
    sub RAL_TX_IFS_SIFS () {	(1<< 13);}
}
unless(defined(&RAL_TX_IFS_NEWBACKOFF)) {
    sub RAL_TX_IFS_NEWBACKOFF () {	(2<< 13);}
}
unless(defined(&RAL_TX_IFS_NONE)) {
    sub RAL_TX_IFS_NONE () {	(3<< 13);}
}
unless(defined(&RAL_LOGCWMAX)) {
    sub RAL_LOGCWMAX {
	my($x) = @_;
	eval q(((($x) & 0xf) << 12));
    }
}
unless(defined(&RAL_LOGCWMIN)) {
    sub RAL_LOGCWMIN {
	my($x) = @_;
	eval q(((($x) & 0xf) << 8));
    }
}
unless(defined(&RAL_AIFSN)) {
    sub RAL_AIFSN {
	my($x) = @_;
	eval q(((($x) & 0x3) << 6));
    }
}
unless(defined(&RAL_IVOFFSET)) {
    sub RAL_IVOFFSET {
	my($x) = @_;
	eval q(((($x) & 0x3f)));
    }
}
unless(defined(&RAL_PLCP_LENGEXT)) {
    sub RAL_PLCP_LENGEXT () {	0x80;}
}
unless(defined(&RAL_RX_CRC_ERROR)) {
    sub RAL_RX_CRC_ERROR () {	(1<< 5);}
}
unless(defined(&RAL_RX_OFDM)) {
    sub RAL_RX_OFDM () {	(1<< 6);}
}
unless(defined(&RAL_RX_PHY_ERROR)) {
    sub RAL_RX_PHY_ERROR () {	(1<< 7);}
}
unless(defined(&RAL_RF_LOBUSY)) {
    sub RAL_RF_LOBUSY () {	(1<< 15);}
}
unless(defined(&RAL_RF_BUSY)) {
    sub RAL_RF_BUSY () {	(1<< 31);}
}
unless(defined(&RAL_RF_20BIT)) {
    sub RAL_RF_20BIT () {	(20<< 24);}
}
unless(defined(&RAL_RF1)) {
    sub RAL_RF1 () {	0;}
}
unless(defined(&RAL_RF2)) {
    sub RAL_RF2 () {	2;}
}
unless(defined(&RAL_RF3)) {
    sub RAL_RF3 () {	1;}
}
unless(defined(&RAL_RF4)) {
    sub RAL_RF4 () {	3;}
}
unless(defined(&RAL_EEPROM_MACBBP)) {
    sub RAL_EEPROM_MACBBP () {	0x;}
}
unless(defined(&RAL_EEPROM_ADDRESS)) {
    sub RAL_EEPROM_ADDRESS () {	0x4;}
}
unless(defined(&RAL_EEPROM_TXPOWER)) {
    sub RAL_EEPROM_TXPOWER () {	0x3c;}
}
unless(defined(&RAL_EEPROM_CONFIG0)) {
    sub RAL_EEPROM_CONFIG0 () {	0x16;}
}
unless(defined(&RAL_EEPROM_BBP_BASE)) {
    sub RAL_EEPROM_BBP_BASE () {	0x1c;}
}
unless(defined(&RAL_DEF_MAC)) {
    sub RAL_DEF_MAC () {	{  &RAL_TXRX_CSR5, 0x8c8d }, {  &RAL_TXRX_CSR6, 0x8b8a }, {  &RAL_TXRX_CSR7, 0x8687 }, {  &RAL_TXRX_CSR8, 0x85 }, {  &RAL_MAC_CSR13, 0x1111 }, {  &RAL_MAC_CSR14, 0x1e11 }, {  &RAL_TXRX_CSR21, 0xe78f }, {  &RAL_MAC_CSR9, 0xff1d }, {  &RAL_MAC_CSR11, 0x2 }, {  &RAL_MAC_CSR22, 0x53 }, {  &RAL_MAC_CSR15, 0x }, {  &RAL_MAC_CSR8, 0x780 }, {  &RAL_TXRX_CSR19, 0x }, {  &RAL_TXRX_CSR18, 0x5a }, {  &RAL_PHY_CSR2, 0x }, {  &RAL_TXRX_CSR0, 0x1ec0 }, {  &RAL_PHY_CSR4, 0xf };}
}
unless(defined(&RAL_DEF_BBP)) {
    sub RAL_DEF_BBP () {	{ 3, 0x2 }, { 4, 0x19 }, { 14, 0x1c }, { 15, 0x30 }, { 16, 0xac }, { 17, 0x48 }, { 18, 0x18 }, { 19, 0xff }, { 20, 0x1e }, { 21, 0x8 }, { 22, 0x8 }, { 23, 0x8 }, { 24, 0x80 }, { 25, 0x50 }, { 26, 0x8 }, { 27, 0x23 }, { 30, 0x10 }, { 31, 0x2b }, { 32, 0xb9 }, { 34, 0x12 }, { 35, 0x50 }, { 39, 0xc4 }, { 40, 0x2 }, { 41, 0x60 }, { 53, 0x10 }, { 54, 0x18 }, { 56, 0x8 }, { 57, 0x10 }, { 58, 0x8 }, { 61, 0x60 }, { 62, 0x10 }, { 75, 0xff };}
}
unless(defined(&RAL_RF2522_R2)) {
    sub RAL_RF2522_R2 () {	{ 0x307f6, 0x307fb, 0x30800, 0x30805, 0x3080a, 0x3080f, 0x30814, 0x30819, 0x3081e, 0x30823, 0x30828, 0x3082d, 0x30832, 0x3083e };}
}
unless(defined(&RAL_RF2523_R2)) {
    sub RAL_RF2523_R2 () {	{ 0x327, 0x328, 0x329, 0x32a, 0x32b, 0x32c, 0x32d, 0x32e, 0x32f, 0x340, 0x341, 0x342, 0x343, 0x346 };}
}
unless(defined(&RAL_RF2524_R2)) {
    sub RAL_RF2524_R2 () {	{ 0x327, 0x328, 0x329, 0x32a, 0x32b, 0x32c, 0x32d, 0x32e, 0x32f, 0x340, 0x341, 0x342, 0x343, 0x346 };}
}
unless(defined(&RAL_RF2525_R2)) {
    sub RAL_RF2525_R2 () {	{ 0x20327, 0x20328, 0x20329, 0x2032a, 0x2032b, 0x2032c, 0x2032d, 0x2032e, 0x2032f, 0x20340, 0x20341, 0x20342, 0x20343, 0x20346 };}
}
unless(defined(&RAL_RF2525_HI_R2)) {
    sub RAL_RF2525_HI_R2 () {	{ 0x2032f, 0x20340, 0x20341, 0x20342, 0x20343, 0x20344, 0x20345, 0x20346, 0x20347, 0x20348, 0x20349, 0x2034a, 0x2034b, 0x2034e };}
}
unless(defined(&RAL_RF2525E_R2)) {
    sub RAL_RF2525E_R2 () {	{ 0x2044d, 0x2044e, 0x2044f, 0x20460, 0x20461, 0x20462, 0x20463, 0x20464, 0x20465, 0x20466, 0x20467, 0x20468, 0x20469, 0x2046b };}
}
unless(defined(&RAL_RF2526_HI_R2)) {
    sub RAL_RF2526_HI_R2 () {	{ 0x22a, 0x22b, 0x22b, 0x22c, 0x22c, 0x22d, 0x22d, 0x22e, 0x22e, 0x22f, 0x22d, 0x240, 0x240, 0x241 };}
}
unless(defined(&RAL_RF2526_R2)) {
    sub RAL_RF2526_R2 () {	{ 0x226, 0x227, 0x227, 0x228, 0x228, 0x229, 0x229, 0x22a, 0x22a, 0x22b, 0x22b, 0x22c, 0x22c, 0x22d };}
}
1;
