require '_h2ph_pre.ph';

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 () {0x01;}' unless defined(&CCB_ALLOC);
    eval 'sub CCB_ABORT () {0x02;}' 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 {
        local($c) = @_;
	    eval q(( &offsetof(\'struct adv_control\',  $ccbs[0]) + ((($c)) - ( ($sc->{sc_control}->{ccbs[0]})))));
    }' unless defined(&ADV_CCB_OFF);
}
1;
