require '_h2ph_pre.ph';

unless(defined(&_VTX_H)) {
    eval 'sub _VTX_H () {1;}' unless defined(&_VTX_H);
    eval 'sub VTXIOCGETINFO () {0x7101;}' unless defined(&VTXIOCGETINFO);
    eval 'sub VTXIOCCLRPAGE () {0x7102;}' unless defined(&VTXIOCCLRPAGE);
    eval 'sub VTXIOCCLRFOUND () {0x7103;}' unless defined(&VTXIOCCLRFOUND);
    eval 'sub VTXIOCPAGEREQ () {0x7104;}' unless defined(&VTXIOCPAGEREQ);
    eval 'sub VTXIOCGETSTAT () {0x7105;}' unless defined(&VTXIOCGETSTAT);
    eval 'sub VTXIOCGETPAGE () {0x7106;}' unless defined(&VTXIOCGETPAGE);
    eval 'sub VTXIOCSTOPDAU () {0x7107;}' unless defined(&VTXIOCSTOPDAU);
    eval 'sub VTXIOCPUTPAGE () {0x7108;}' unless defined(&VTXIOCPUTPAGE);
    eval 'sub VTXIOCSETDISP () {0x7109;}' unless defined(&VTXIOCSETDISP);
    eval 'sub VTXIOCPUTSTAT () {0x710a;}' unless defined(&VTXIOCPUTSTAT);
    eval 'sub VTXIOCCLRCACHE () {0x710b;}' unless defined(&VTXIOCCLRCACHE);
    eval 'sub VTXIOCSETVIRT () {0x710c;}' unless defined(&VTXIOCSETVIRT);
    eval 'sub SAA5243 () {0;}' unless defined(&SAA5243);
    eval 'sub SAA5246 () {1;}' unless defined(&SAA5246);
    eval 'sub SAA5249 () {2;}' unless defined(&SAA5249);
    eval 'sub SAA5248 () {3;}' unless defined(&SAA5248);
    eval 'sub XSTV5346 () {4;}' unless defined(&XSTV5346);
    eval 'sub MIN_UNIT () {(1<<0);}' unless defined(&MIN_UNIT);
    eval 'sub MIN_TEN () {(1<<1);}' unless defined(&MIN_TEN);
    eval 'sub HR_UNIT () {(1<<2);}' unless defined(&HR_UNIT);
    eval 'sub HR_TEN () {(1<<3);}' unless defined(&HR_TEN);
    eval 'sub PG_UNIT () {(1<<4);}' unless defined(&PG_UNIT);
    eval 'sub PG_TEN () {(1<<5);}' unless defined(&PG_TEN);
    eval 'sub PG_HUND () {(1<<6);}' unless defined(&PG_HUND);
    eval 'sub PGMASK_MAX () {(1<<7);}' unless defined(&PGMASK_MAX);
    eval 'sub PGMASK_PAGE () {( &PG_HUND |  &PG_TEN |  &PG_UNIT);}' unless defined(&PGMASK_PAGE);
    eval 'sub PGMASK_HOUR () {( &HR_TEN |  &HR_UNIT);}' unless defined(&PGMASK_HOUR);
    eval 'sub PGMASK_MINUTE () {( &MIN_TEN |  &MIN_UNIT);}' unless defined(&PGMASK_MINUTE);
    eval 'sub VTX_PAGESIZE () {(40* 24);}' unless defined(&VTX_PAGESIZE);
    eval 'sub VTX_VIRTUALSIZE () {(40* 49);}' unless defined(&VTX_VIRTUALSIZE);
    eval("sub DISPOFF () { 0; }") unless defined(&DISPOFF);
    eval("sub DISPNORM () { 1; }") unless defined(&DISPNORM);
    eval("sub DISPTRANS () { 2; }") unless defined(&DISPTRANS);
    eval("sub DISPINS () { 3; }") unless defined(&DISPINS);
    eval("sub INTERLACE_OFFSET () { 4; }") unless defined(&INTERLACE_OFFSET);
    eval 'sub TUNIOCGETINFO () {0x7201;}' unless defined(&TUNIOCGETINFO);
    eval 'sub TUNIOCRESET () {0x7202;}' unless defined(&TUNIOCRESET);
    eval 'sub TUNIOCSETFREQ () {0x7203;}' unless defined(&TUNIOCSETFREQ);
    eval 'sub TUNIOCGETFREQ () {0x7204;}' unless defined(&TUNIOCGETFREQ);
    eval 'sub TUNIOCSETCHAN () {0x7205;}' unless defined(&TUNIOCSETCHAN);
    eval 'sub TUNIOCGETCHAN () {0x7206;}' unless defined(&TUNIOCGETCHAN);
}
1;
