require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ACXREG_H)) {
    eval 'sub _ACXREG_H () {1;}' unless defined(&_ACXREG_H);
    eval 'sub ACXREG_SOFT_RESET () {0;}' unless defined(&ACXREG_SOFT_RESET);
    eval 'sub ACXREG_FWMEM_ADDR () {1;}' unless defined(&ACXREG_FWMEM_ADDR);
    eval 'sub ACXREG_FWMEM_DATA () {2;}' unless defined(&ACXREG_FWMEM_DATA);
    eval 'sub ACXREG_FWMEM_CTRL () {3;}' unless defined(&ACXREG_FWMEM_CTRL);
    eval 'sub ACXREG_FWMEM_START () {4;}' unless defined(&ACXREG_FWMEM_START);
    eval 'sub ACXREG_EVENT_MASK () {5;}' unless defined(&ACXREG_EVENT_MASK);
    eval 'sub ACXREG_INTR_TRIG () {6;}' unless defined(&ACXREG_INTR_TRIG);
    eval 'sub ACXREG_INTR_MASK () {7;}' unless defined(&ACXREG_INTR_MASK);
    eval 'sub ACXREG_INTR_STATUS () {8;}' unless defined(&ACXREG_INTR_STATUS);
    eval 'sub ACXREG_INTR_STATUS_CLR () {9;}' unless defined(&ACXREG_INTR_STATUS_CLR);
    eval 'sub ACXREG_INTR_ACK () {10;}' unless defined(&ACXREG_INTR_ACK);
    eval 'sub ACXREG_HINTR_TRIG () {11;}' unless defined(&ACXREG_HINTR_TRIG);
    eval 'sub ACXREG_RADIO_ENABLE () {12;}' unless defined(&ACXREG_RADIO_ENABLE);
    eval 'sub ACXREG_EEPROM_INIT () {13;}' unless defined(&ACXREG_EEPROM_INIT);
    eval 'sub ACXREG_EEPROM_CTRL () {14;}' unless defined(&ACXREG_EEPROM_CTRL);
    eval 'sub ACXREG_EEPROM_ADDR () {15;}' unless defined(&ACXREG_EEPROM_ADDR);
    eval 'sub ACXREG_EEPROM_DATA () {16;}' unless defined(&ACXREG_EEPROM_DATA);
    eval 'sub ACXREG_EEPROM_CONF () {17;}' unless defined(&ACXREG_EEPROM_CONF);
    eval 'sub ACXREG_EEPROM_INFO () {18;}' unless defined(&ACXREG_EEPROM_INFO);
    eval 'sub ACXREG_PHY_ADDR () {19;}' unless defined(&ACXREG_PHY_ADDR);
    eval 'sub ACXREG_PHY_DATA () {20;}' unless defined(&ACXREG_PHY_DATA);
    eval 'sub ACXREG_PHY_CTRL () {21;}' unless defined(&ACXREG_PHY_CTRL);
    eval 'sub ACXREG_GPIO_OUT_ENABLE () {22;}' unless defined(&ACXREG_GPIO_OUT_ENABLE);
    eval 'sub ACXREG_GPIO_OUT () {23;}' unless defined(&ACXREG_GPIO_OUT);
    eval 'sub ACXREG_CMD_REG_OFFSET () {24;}' unless defined(&ACXREG_CMD_REG_OFFSET);
    eval 'sub ACXREG_INFO_REG_OFFSET () {25;}' unless defined(&ACXREG_INFO_REG_OFFSET);
    eval 'sub ACXREG_RESET_SENSE () {26;}' unless defined(&ACXREG_RESET_SENSE);
    eval 'sub ACXREG_ECPU_CTRL () {27;}' unless defined(&ACXREG_ECPU_CTRL);
    eval 'sub ACXREG_MAX () {28;}' unless defined(&ACXREG_MAX);
    eval 'sub ACXREG {
        my($reg, $val) = @_;
	    eval q([ &ACXREG_$reg] = $val);
    }' unless defined(&ACXREG);
    eval 'sub ACX_EEINFO_RADIO_TYPE_SHIFT () {8;}' unless defined(&ACX_EEINFO_RADIO_TYPE_SHIFT);
    eval 'sub ACX_EEINFO_RADIO_TYPE_MASK () {(0xff <<  &ACX_EEINFO_RADIO_TYPE_SHIFT);}' unless defined(&ACX_EEINFO_RADIO_TYPE_MASK);
    eval 'sub ACX_EEINFO_FORM_FACTOR_MASK () {0xff;}' unless defined(&ACX_EEINFO_FORM_FACTOR_MASK);
    eval 'sub ACX_EEINFO_HAS_RADIO_TYPE {
        my($info) = @_;
	    eval q((($info) &  &ACX_EEINFO_RADIO_TYPE_MASK));
    }' unless defined(&ACX_EEINFO_HAS_RADIO_TYPE);
    eval 'sub ACX_EEINFO_RADIO_TYPE {
        my($info) = @_;
	    eval q((($info) >>  &ACX_EEINFO_RADIO_TYPE_SHIFT));
    }' unless defined(&ACX_EEINFO_RADIO_TYPE);
    eval 'sub ACX_EEINFO_FORM_FACTOR {
        my($info) = @_;
	    eval q((($info) &  &ACX_EEINFO_FORM_FACTOR_MASK));
    }' unless defined(&ACX_EEINFO_FORM_FACTOR);
    eval 'sub ACX_CMD_REG_SIZE () {4;}' unless defined(&ACX_CMD_REG_SIZE);
    eval 'sub ACX_INFO_REG_SIZE () {4;}' unless defined(&ACX_INFO_REG_SIZE);
    eval 'sub ACX_EE_VERSION_OFS () {0x5;}' unless defined(&ACX_EE_VERSION_OFS);
    eval 'sub ACXRV_SOFT_RESET () {0x1;}' unless defined(&ACXRV_SOFT_RESET);
    eval 'sub ACXRV_FWMEM_START_OP () {0x;}' unless defined(&ACXRV_FWMEM_START_OP);
    eval 'sub ACXRV_FWMEM_ADDR_AUTOINC () {0x10000;}' unless defined(&ACXRV_FWMEM_ADDR_AUTOINC);
    eval 'sub ACXRV_EVENT_DISABLE () {0x8000;}' unless defined(&ACXRV_EVENT_DISABLE);
    eval 'sub ACXRV_TRIG_CMD_FINI () {0x1;}' unless defined(&ACXRV_TRIG_CMD_FINI);
    eval 'sub ACXRV_TRIG_TX_FINI () {0x4;}' unless defined(&ACXRV_TRIG_TX_FINI);
    eval 'sub ACXRV_INTR_RX_DATA () {0x1;}' unless defined(&ACXRV_INTR_RX_DATA);
    eval 'sub ACXRV_INTR_TX_FINI () {0x2;}' unless defined(&ACXRV_INTR_TX_FINI);
    eval 'sub ACXRV_INTR_TX_XFER () {0x4;}' unless defined(&ACXRV_INTR_TX_XFER);
    eval 'sub ACXRV_INTR_RX_FINI () {0x8;}' unless defined(&ACXRV_INTR_RX_FINI);
    eval 'sub ACXRV_INTR_DTIM () {0x10;}' unless defined(&ACXRV_INTR_DTIM);
    eval 'sub ACXRV_INTR_BEACON () {0x20;}' unless defined(&ACXRV_INTR_BEACON);
    eval 'sub ACXRV_INTR_TIMER () {0x40;}' unless defined(&ACXRV_INTR_TIMER);
    eval 'sub ACXRV_INTR_KEY_MISS () {0x80;}' unless defined(&ACXRV_INTR_KEY_MISS);
    eval 'sub ACXRV_INTR_WEP_FAIL () {0x100;}' unless defined(&ACXRV_INTR_WEP_FAIL);
    eval 'sub ACXRV_INTR_CMD_FINI () {0x200;}' unless defined(&ACXRV_INTR_CMD_FINI);
    eval 'sub ACXRV_INTR_INFO () {0x400;}' unless defined(&ACXRV_INTR_INFO);
    eval 'sub ACXRV_INTR_OVERFLOW () {0x800;}' unless defined(&ACXRV_INTR_OVERFLOW);
    eval 'sub ACXRV_INTR_PROC_ERR () {0x1000;}' unless defined(&ACXRV_INTR_PROC_ERR);
    eval 'sub ACXRV_INTR_SCAN_FINI () {0x2000;}' unless defined(&ACXRV_INTR_SCAN_FINI);
    eval 'sub ACXRV_INTR_FCS_THRESH () {0x4000;}' unless defined(&ACXRV_INTR_FCS_THRESH);
    eval 'sub ACXRV_INTR_UNKN () {0x8000;}' unless defined(&ACXRV_INTR_UNKN);
    eval 'sub ACXRV_INTR_ALL () {0xffff;}' unless defined(&ACXRV_INTR_ALL);
    eval 'sub ACXRV_EEPROM_INIT () {0x1;}' unless defined(&ACXRV_EEPROM_INIT);
    eval 'sub ACXRV_EEPROM_READ () {0x2;}' unless defined(&ACXRV_EEPROM_READ);
    eval 'sub ACXRV_PHY_WRITE () {0x1;}' unless defined(&ACXRV_PHY_WRITE);
    eval 'sub ACXRV_PHY_READ () {0x2;}' unless defined(&ACXRV_PHY_READ);
    eval 'sub ACXRV_PHYREG_TXPOWER () {0x11;}' unless defined(&ACXRV_PHYREG_TXPOWER);
    eval 'sub ACXRV_PHYREG_SENSITIVITY () {0x30;}' unless defined(&ACXRV_PHYREG_SENSITIVITY);
    eval 'sub ACXRV_ECPU_HALT () {0x1;}' unless defined(&ACXRV_ECPU_HALT);
    eval 'sub ACXRV_ECPU_START () {0x;}' unless defined(&ACXRV_ECPU_START);
    eval 'sub ACXCMD_GET_CONF () {0x1;}' unless defined(&ACXCMD_GET_CONF);
    eval 'sub ACXCMD_SET_CONF () {0x2;}' unless defined(&ACXCMD_SET_CONF);
    eval 'sub ACXCMD_ENABLE_RXCHAN () {0x3;}' unless defined(&ACXCMD_ENABLE_RXCHAN);
    eval 'sub ACXCMD_ENABLE_TXCHAN () {0x4;}' unless defined(&ACXCMD_ENABLE_TXCHAN);
    eval 'sub ACXCMD_TMPLT_TIM () {0xa;}' unless defined(&ACXCMD_TMPLT_TIM);
    eval 'sub ACXCMD_JOIN_BSS () {0xb;}' unless defined(&ACXCMD_JOIN_BSS);
    eval 'sub ACXCMD_WEP_MGMT () {0xc;}' unless defined(&ACXCMD_WEP_MGMT);
    eval 'sub ACXCMD_SLEEP () {0xf;}' unless defined(&ACXCMD_SLEEP);
    eval 'sub ACXCMD_WAKEUP () {0x10;}' unless defined(&ACXCMD_WAKEUP);
    eval 'sub ACXCMD_INIT_MEM () {0x12;}' unless defined(&ACXCMD_INIT_MEM);
    eval 'sub ACXCMD_TMPLT_BEACON () {0x13;}' unless defined(&ACXCMD_TMPLT_BEACON);
    eval 'sub ACXCMD_TMPLT_PROBE_RESP () {0x14;}' unless defined(&ACXCMD_TMPLT_PROBE_RESP);
    eval 'sub ACXCMD_TMPLT_NULL_DATA () {0x15;}' unless defined(&ACXCMD_TMPLT_NULL_DATA);
    eval 'sub ACXCMD_TMPLT_PROBE_REQ () {0x16;}' unless defined(&ACXCMD_TMPLT_PROBE_REQ);
    eval 'sub ACXCMD_INIT_RADIO () {0x18;}' unless defined(&ACXCMD_INIT_RADIO);
    if(0) {
	eval 'sub ACX_CONF_FW_RING () {0x3;}' unless defined(&ACX_CONF_FW_RING);
	eval 'sub ACX_CONF_MEMOPT () {0x5;}' unless defined(&ACX_CONF_MEMOPT);
    }
    eval 'sub ACX_CONF_MEMBLK_SIZE () {0x4;}' unless defined(&ACX_CONF_MEMBLK_SIZE);
    eval 'sub ACX_CONF_RATE_FALLBACK () {0x6;}' unless defined(&ACX_CONF_RATE_FALLBACK);
    eval 'sub ACX_CONF_WEPOPT () {0x7;}' unless defined(&ACX_CONF_WEPOPT);
    eval 'sub ACX_CONF_MMAP () {0x8;}' unless defined(&ACX_CONF_MMAP);
    eval 'sub ACX_CONF_FWREV () {0xd;}' unless defined(&ACX_CONF_FWREV);
    eval 'sub ACX_CONF_RXOPT () {0x10;}' unless defined(&ACX_CONF_RXOPT);
    eval 'sub ACX_CONF_OPTION () {0x15;}' unless defined(&ACX_CONF_OPTION);
    eval 'sub ACX_CONF_EADDR () {0x1001;}' unless defined(&ACX_CONF_EADDR);
    eval 'sub ACX_CONF_NRETRY_SHORT () {0x1005;}' unless defined(&ACX_CONF_NRETRY_SHORT);
    eval 'sub ACX_CONF_NRETRY_LONG () {0x1006;}' unless defined(&ACX_CONF_NRETRY_LONG);
    eval 'sub ACX_CONF_WEPKEY () {0x1007;}' unless defined(&ACX_CONF_WEPKEY);
    eval 'sub ACX_CONF_MSDU_LIFETIME () {0x1008;}' unless defined(&ACX_CONF_MSDU_LIFETIME);
    eval 'sub ACX_CONF_REGDOM () {0x100a;}' unless defined(&ACX_CONF_REGDOM);
    eval 'sub ACX_CONF_ANTENNA () {0x100b;}' unless defined(&ACX_CONF_ANTENNA);
    eval 'sub ACX_CONF_TXPOWER () {0x100d;}' unless defined(&ACX_CONF_TXPOWER);
    eval 'sub ACX_CONF_CCA_MODE () {0x100e;}' unless defined(&ACX_CONF_CCA_MODE);
    eval 'sub ACX_CONF_ED_THRESH () {0x100f;}' unless defined(&ACX_CONF_ED_THRESH);
    eval 'sub ACX_CONF_WEP_TXKEY () {0x1010;}' unless defined(&ACX_CONF_WEP_TXKEY);
    eval 'sub WEPOPT_HDWEP () {0;}' unless defined(&WEPOPT_HDWEP);
    eval 'sub ACX_FWREV_LEN () {20;}' unless defined(&ACX_FWREV_LEN);
    eval 'sub RXOPT1_INCL_RXBUF_HDR () {0x2000;}' unless defined(&RXOPT1_INCL_RXBUF_HDR);
    eval 'sub RXOPT1_RECV_SSID () {0x400;}' unless defined(&RXOPT1_RECV_SSID);
    eval 'sub RXOPT1_FILT_BCAST () {0x200;}' unless defined(&RXOPT1_FILT_BCAST);
    eval 'sub RXOPT1_RECV_MCAST1 () {0x100;}' unless defined(&RXOPT1_RECV_MCAST1);
    eval 'sub RXOPT1_RECV_MCAST0 () {0x80;}' unless defined(&RXOPT1_RECV_MCAST0);
    eval 'sub RXOPT1_FILT_ALLMULTI () {0x40;}' unless defined(&RXOPT1_FILT_ALLMULTI);
    eval 'sub RXOPT1_FILT_FSSID () {0x20;}' unless defined(&RXOPT1_FILT_FSSID);
    eval 'sub RXOPT1_FILT_FDEST () {0x10;}' unless defined(&RXOPT1_FILT_FDEST);
    eval 'sub RXOPT1_PROMISC () {0x8;}' unless defined(&RXOPT1_PROMISC);
    eval 'sub RXOPT1_INCL_FCS () {0x4;}' unless defined(&RXOPT1_INCL_FCS);
    eval 'sub RXOPT1_INCL_PHYHDR () {0x;}' unless defined(&RXOPT1_INCL_PHYHDR);
    eval 'sub RXOPT2_RECV_ASSOC_REQ () {0x800;}' unless defined(&RXOPT2_RECV_ASSOC_REQ);
    eval 'sub RXOPT2_RECV_AUTH () {0x400;}' unless defined(&RXOPT2_RECV_AUTH);
    eval 'sub RXOPT2_RECV_BEACON () {0x200;}' unless defined(&RXOPT2_RECV_BEACON);
    eval 'sub RXOPT2_RECV_CF () {0x100;}' unless defined(&RXOPT2_RECV_CF);
    eval 'sub RXOPT2_RECV_CTRL () {0x80;}' unless defined(&RXOPT2_RECV_CTRL);
    eval 'sub RXOPT2_RECV_DATA () {0x40;}' unless defined(&RXOPT2_RECV_DATA);
    eval 'sub RXOPT2_RECV_BROKEN () {0x20;}' unless defined(&RXOPT2_RECV_BROKEN);
    eval 'sub RXOPT2_RECV_MGMT () {0x10;}' unless defined(&RXOPT2_RECV_MGMT);
    eval 'sub RXOPT2_RECV_PROBE_REQ () {0x8;}' unless defined(&RXOPT2_RECV_PROBE_REQ);
    eval 'sub RXOPT2_RECV_PROBE_RESP () {0x4;}' unless defined(&RXOPT2_RECV_PROBE_RESP);
    eval 'sub RXOPT2_RECV_ACK () {0x2;}' unless defined(&RXOPT2_RECV_ACK);
    eval 'sub RXOPT2_RECV_OTHER () {0x1;}' unless defined(&RXOPT2_RECV_OTHER);
    eval 'sub ACX_TMPLT_PROBE_REQ_SIZ {
        my($var_len) = @_;
	    eval q(($sizeof{ &uint16_t} + $sizeof{\'struct ieee80211_frame\'} + ($var_len)));
    }' unless defined(&ACX_TMPLT_PROBE_REQ_SIZ);
    eval 'sub ACX_TMPLT_PROBE_RESP_SIZ {
        my($var_len) = @_;
	    eval q(($sizeof{ &uint16_t} + $sizeof{\'struct ieee80211_frame\'} + 8* $sizeof{ &uint8_t} + $sizeof{ &uint16_t} + $sizeof{ &uint16_t} + ($var_len)));
    }' unless defined(&ACX_TMPLT_PROBE_RESP_SIZ);
    eval 'sub ACX_TMPLT_BEACON_SIZ {
        my($var_len) = @_;
	    eval q(($sizeof{ &uint16_t} + $sizeof{\'struct ieee80211_frame\'} + 8* $sizeof{ &uint8_t} + $sizeof{ &uint16_t} + $sizeof{ &uint16_t} + ($var_len)));
    }' unless defined(&ACX_TMPLT_BEACON_SIZ);
    eval 'sub ACX_TIM_LEN {
        my($bitmap_len) = @_;
	    eval q(($sizeof{\'struct tim_head\'} - (2* $sizeof{ &uint8_t}) + ($bitmap_len)));
    }' unless defined(&ACX_TIM_LEN);
    eval 'sub ACX_TIM_BITMAP_LEN () {1;}' unless defined(&ACX_TIM_BITMAP_LEN);
    eval 'sub tim_eid () { ($data->{u_data}->{th}->{eid});}' unless defined(&tim_eid);
    eval 'sub tim_len () { ($data->{u_data}->{th}->{len});}' unless defined(&tim_len);
    eval 'sub tim_dtim_count () { ($data->{u_data}->{th}->{dtim_count});}' unless defined(&tim_dtim_count);
    eval 'sub tim_dtim_period () { ($data->{u_data}->{th}->{dtim_period});}' unless defined(&tim_dtim_period);
    eval 'sub tim_bitmap_ctrl () { ($data->{u_data}->{th}->{bitmap_ctrl});}' unless defined(&tim_bitmap_ctrl);
    eval 'sub tim_bitmap () { ($data->{u_data}->{bitmap});}' unless defined(&tim_bitmap);
    eval 'sub ACX_TMPLT_TIM_SIZ {
        my($bitmap_len) = @_;
	    eval q(($sizeof{ &uint16_t} + $sizeof{\'struct tim_head\'} + ($bitmap_len)));
    }' unless defined(&ACX_TMPLT_TIM_SIZ);
    eval 'sub CMDPRM_WRITE_REGION_1 {
        my($sc, $r, $rlen) = @_;
	    eval q( &bus_space_write_region_1(($sc)-> &sc_mem2_bt, ($sc)-> &sc_mem2_bh, ($sc)-> &sc_cmd_param, ( &const  &uint8_t *)($r), ($rlen)));
    }' unless defined(&CMDPRM_WRITE_REGION_1);
    eval 'sub CMDPRM_READ_REGION_1 {
        my($sc, $r, $rlen) = @_;
	    eval q( &bus_space_read_region_1(($sc)-> &sc_mem2_bt, ($sc)-> &sc_mem2_bh, ($sc)-> &sc_cmd_param, ( &uint8_t *)($r), ($rlen)));
    }' unless defined(&CMDPRM_READ_REGION_1);
    eval 'sub CMD_WRITE_4 {
        my($sc, $val) = @_;
	    eval q( &bus_space_write_4(($sc)-> &sc_mem2_bt, ($sc)-> &sc_mem2_bh, ($sc)-> &sc_cmd, ($val)));
    }' unless defined(&CMD_WRITE_4);
    eval 'sub CMD_READ_4 {
        my($sc) = @_;
	    eval q( &bus_space_read_4(($sc)-> &sc_mem2_bt, ($sc)-> &sc_mem2_bh, ($sc)-> &sc_cmd));
    }' unless defined(&CMD_READ_4);
    eval 'sub ACX_CMD_STATUS_SHIFT () {16;}' unless defined(&ACX_CMD_STATUS_SHIFT);
    eval 'sub ACX_CMD_STATUS_OK () {1;}' unless defined(&ACX_CMD_STATUS_OK);
    eval 'sub ACX_NDATA_TXRATE_2 () {20;}' unless defined(&ACX_NDATA_TXRATE_2);
    eval 'sub ACX_NDATA_TXOPT_PBCC () {0x40;}' unless defined(&ACX_NDATA_TXOPT_PBCC);
    eval 'sub ACX_NDATA_TXOPT_OFDM () {0x20;}' unless defined(&ACX_NDATA_TXOPT_OFDM);
    eval 'sub ACX_NDATA_TXOPT_SHORT_PREAMBLE () {0x10;}' unless defined(&ACX_NDATA_TXOPT_SHORT_PREAMBLE);
    eval 'sub BSS_JOIN_BUFLEN () {($sizeof{\'struct bss_join_hdr\'} +  &IEEE80211_NWID_LEN - 1);}' unless defined(&BSS_JOIN_BUFLEN);
    eval 'sub BSS_JOIN_PARAM_SIZE {
        my($bj) = @_;
	    eval q(($sizeof{\'struct bss_join_hdr\'} + ($bj)-> &esslen));
    }' unless defined(&BSS_JOIN_PARAM_SIZE);
    eval 'sub PCIR_BAR {
        my($x) = @_;
	    eval q(( &PCI_MAPS + ($x) * 4));
    }' unless defined(&PCIR_BAR);
}
1;
