require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ADVANSYS_WIDE_H_)) {
    eval 'sub _ADVANSYS_WIDE_H_ () {1;}' unless defined(&_ADVANSYS_WIDE_H_);
    eval 'sub ADW_MAX_SG_LIST () {255;}' unless defined(&ADW_MAX_SG_LIST);
    eval 'sub NO_OF_SG_PER_BLOCK () {15;}' unless defined(&NO_OF_SG_PER_BLOCK);
    eval 'sub ADW_NUM_SG_BLOCK () {(( &ADW_MAX_SG_LIST + ( &NO_OF_SG_PER_BLOCK - 1))/ &NO_OF_SG_PER_BLOCK);}' unless defined(&ADW_NUM_SG_BLOCK);
    eval 'sub CCB_ALLOC () {0x1;}' unless defined(&CCB_ALLOC);
    eval 'sub CCB_ABORTING () {0x2;}' unless defined(&CCB_ABORTING);
    eval 'sub CCB_ABORTED () {0x4;}' unless defined(&CCB_ABORTED);
    eval 'sub ADW_MAX_CCB () {63;}' unless defined(&ADW_MAX_CCB);
    eval 'sub ADW_CCB_OFF {
        my($c) = @_;
	    eval q(( &offsetof(\'struct adw_control\',  $ccbs[0]) + ((($c)) - ( ($s$c->{s$c_control}->{c$cbs[0]})))));
    }' unless defined(&ADW_CCB_OFF);
}
1;
