require '_h2ph_pre.ph';

eval("sub AWI_ST_OFF () { 0; }") unless defined(&AWI_ST_OFF);
eval("sub AWI_ST_SELFTEST () { 1; }") unless defined(&AWI_ST_SELFTEST);
eval("sub AWI_ST_IFTEST () { 2; }") unless defined(&AWI_ST_IFTEST);
eval("sub AWI_ST_MIB_GET () { 3; }") unless defined(&AWI_ST_MIB_GET);
eval("sub AWI_ST_MIB_SET () { 4; }") unless defined(&AWI_ST_MIB_SET);
eval("sub AWI_ST_TXINIT () { 5; }") unless defined(&AWI_ST_TXINIT);
eval("sub AWI_ST_RXINIT () { 6; }") unless defined(&AWI_ST_RXINIT);
eval("sub AWI_ST_SCAN () { 7; }") unless defined(&AWI_ST_SCAN);
eval("sub AWI_ST_SYNCED () { 8; }") unless defined(&AWI_ST_SYNCED);
eval("sub AWI_ST_AUTHED () { 9; }") unless defined(&AWI_ST_AUTHED);
eval("sub AWI_ST_RUNNING () { 10; }") unless defined(&AWI_ST_RUNNING);
eval("sub AWI_ST_INSANE () { 11; }") unless defined(&AWI_ST_INSANE);
unless(defined(&AWI_FL_CMD_INPROG)) {
    sub AWI_FL_CMD_INPROG () {	0x0001;}
}
unless(defined(&AWI_SSID_LEN)) {
    sub AWI_SSID_LEN () {	33;}
}
unless(defined(&NBND)) {
    sub NBND () {	4;}
}
unless(defined(&NTXD)) {
    sub NTXD () {	4;}
}
unless(defined(&awi_read_1)) {
    sub awi_read_1 {
	local($sc, $off) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{read_1}))( ($sc->{sc_chip}), $off));
    }
}
unless(defined(&awi_read_2)) {
    sub awi_read_2 {
	local($sc, $off) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{read_2}))( ($sc->{sc_chip}), $off));
    }
}
unless(defined(&awi_read_4)) {
    sub awi_read_4 {
	local($sc, $off) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{read_4}))( ($sc->{sc_chip}), $off));
    }
}
unless(defined(&awi_read_bytes)) {
    sub awi_read_bytes {
	local($sc, $off, $ptr, $len) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{read_bytes}))( ($sc->{sc_chip}), $off, $ptr, $len));
    }
}
unless(defined(&awi_write_1)) {
    sub awi_write_1 {
	local($sc, $off, $val) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{write_1}))( ($sc->{sc_chip}), $off, $val));
    }
}
unless(defined(&awi_write_2)) {
    sub awi_write_2 {
	local($sc, $off, $val) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{write_2}))( ($sc->{sc_chip}), $off, $val));
    }
}
unless(defined(&awi_write_4)) {
    sub awi_write_4 {
	local($sc, $off, $val) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{write_4}))( ($sc->{sc_chip}), $off, $val));
    }
}
unless(defined(&awi_write_bytes)) {
    sub awi_write_bytes {
	local($sc, $off, $ptr, $len) = @_;
	eval q((($sc)-> ($sc_chip->{sc_ops}->{write_bytes}))( ($sc->{sc_chip}), $off, $ptr, $len));
    }
}
unless(defined(&awi_drvstate)) {
    sub awi_drvstate {
	local($sc, $state) = @_;
	eval q( &awi_write_1($sc,  &AWI_DRIVERSTATE, (($state) |  &AWI_DRV_AUTORXLED| &AWI_DRV_AUTOTXLED)););
    }
}
unless(defined(&AWI_LOCKOUT_SPIN)) {
    sub AWI_LOCKOUT_SPIN () {	10000;}
}
unless(defined(&AWI_FRAME_SIZE)) {
    sub AWI_FRAME_SIZE () {	1532;}
}
unless(defined(&AWI_ASSOC_REFRESH)) {
    sub AWI_ASSOC_REFRESH () {	300;}
}
1;
