require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ADVANSYS_NARROW_H_)) {
    eval 'sub _ADVANSYS_NARROW_H_ () {1;}' unless defined(&_ADVANSYS_NARROW_H_);
    require 'dev/ic/advlib.ph';
    eval 'sub CCB_ALLOC () {0x1;}' unless defined(&CCB_ALLOC);
    eval 'sub CCB_ABORT () {0x2;}' unless defined(&CCB_ABORT);
    eval 'sub CCB_WATCHDOG () {0x10;}' unless defined(&CCB_WATCHDOG);
    eval 'sub ADV_MAX_CCB () {32;}' unless defined(&ADV_MAX_CCB);
    eval 'sub ADV_CCB_OFF {
        my($c) = @_;
	    eval q(( &offsetof(\'struct adv_control\',  $ccbs[0]) + ((($c)) - ( ($s$c->{s$c_control}->{c$cbs[0]})))));
    }' unless defined(&ADV_CCB_OFF);
}
1;
