require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&VBE_H)) {
    eval 'sub VBE_H () {1;}' unless defined(&VBE_H);
    eval 'sub BIOS_VIDEO_INTR () {0x10;}' unless defined(&BIOS_VIDEO_INTR);
    eval 'sub KVM86_CALL_TASKVA () {0x2000;}' unless defined(&KVM86_CALL_TASKVA);
    eval 'sub VBECALL_SUPPORT {
        my($v) = @_;
	    eval q(($v & 0xff));
    }' unless defined(&VBECALL_SUPPORT);
    eval 'sub VBECALL_SUPPORTED () {0x4f;}' unless defined(&VBECALL_SUPPORTED);
    eval 'sub VBECALL_SUCESS {
        my($v) = @_;
	    eval q(($v >> 8& 0xff));
    }' unless defined(&VBECALL_SUCESS);
    eval 'sub VBECALL_SUCCEDED () {0x;}' unless defined(&VBECALL_SUCCEDED);
    eval 'sub VBECALL_FAILED () {0x1;}' unless defined(&VBECALL_FAILED);
    eval 'sub VBECALL_MISMATCH () {0x2;}' unless defined(&VBECALL_MISMATCH);
    eval 'sub VBECALL_INVALID () {0x3;}' unless defined(&VBECALL_INVALID);
    eval 'sub VBE_FUNC_CTRLINFO () {0x4f00;}' unless defined(&VBE_FUNC_CTRLINFO);
    eval 'sub VBE_FUNC_MODEINFO () {0x4f01;}' unless defined(&VBE_FUNC_MODEINFO);
    eval 'sub VBE_FUNC_SETMODE () {0x4f02;}' unless defined(&VBE_FUNC_SETMODE);
    eval 'sub VBE_FUNC_GETMODE () {0x4f03;}' unless defined(&VBE_FUNC_GETMODE);
    eval 'sub VBE_FUNC_SAVEREST () {0x4f04;}' unless defined(&VBE_FUNC_SAVEREST);
    eval 'sub VBE_FUNC_DWC () {0x4f05;}' unless defined(&VBE_FUNC_DWC);
    eval 'sub VBE_FUNC_LSLL () {0x4f06;}' unless defined(&VBE_FUNC_LSLL);
    eval 'sub VBE_FUNC_START () {0x4f07;}' unless defined(&VBE_FUNC_START);
    eval 'sub VBE_FUNC_DAC () {0x4f08;}' unless defined(&VBE_FUNC_DAC);
    eval 'sub VBE_FUNC_PALETTE () {0x4f09;}' unless defined(&VBE_FUNC_PALETTE);
    eval 'sub VBE_FUNC_PMI () {0x4f0a;}' unless defined(&VBE_FUNC_PMI);
    eval 'sub VBE_FUNC_PIXELCLOCK () {0x4f0b;}' unless defined(&VBE_FUNC_PIXELCLOCK);
    eval 'sub VBE_FUNC_PM () {0x4f10;}' unless defined(&VBE_FUNC_PM);
    eval 'sub VBE_FUNC_FLATPANEL () {0x4f11;}' unless defined(&VBE_FUNC_FLATPANEL);
    eval 'sub VBE_FUNC_AUDIO () {0x4f13;}' unless defined(&VBE_FUNC_AUDIO);
    eval 'sub VBE_FUNC_OEM () {0x4f14;}' unless defined(&VBE_FUNC_OEM);
    eval 'sub VBE_FUNC_DDC () {0x4f15;}' unless defined(&VBE_FUNC_DDC);
    eval 'sub VBE_CTRLINFO_VERSION {
        my($v) = @_;
	    eval q(($v >> 8));
    }' unless defined(&VBE_CTRLINFO_VERSION);
    eval 'sub VBE_CTRLINFO_REVISION {
        my($v) = @_;
	    eval q(($v & 0xff));
    }' unless defined(&VBE_CTRLINFO_REVISION);
    eval 'sub VBE_DDC_GET () {0x1;}' unless defined(&VBE_DDC_GET);
    eval 'sub EDID_DB_FLAG_INTERLACED () {0x80;}' unless defined(&EDID_DB_FLAG_INTERLACED);
    eval 'sub EDID_DB_FLAG_STEREO () {0x10;}' unless defined(&EDID_DB_FLAG_STEREO);
    eval 'sub EDID_DB_POSITIVE_HSYNC () {0x4;}' unless defined(&EDID_DB_POSITIVE_HSYNC);
    eval 'sub EDID_DB_POSITIVE_VSYNC () {0x2;}' unless defined(&EDID_DB_POSITIVE_VSYNC);
    eval 'sub EDID_DB_BT_MONSERIAL () {0xff;}' unless defined(&EDID_DB_BT_MONSERIAL);
    eval 'sub EDID_DB_BT_ASCIISTR () {0xfe;}' unless defined(&EDID_DB_BT_ASCIISTR);
    eval 'sub EDID_DB_BT_RANGELIMITS () {0xfd;}' unless defined(&EDID_DB_BT_RANGELIMITS);
    eval 'sub EDID_DB_BT_MONITORNAME () {0xfc;}' unless defined(&EDID_DB_BT_MONITORNAME);
    eval 'sub EDID_DB_BT_COLORPOINT () {0xfb;}' unless defined(&EDID_DB_BT_COLORPOINT);
    eval 'sub EDID_DB_BT_STDTIMEDATA () {0xfa;}' unless defined(&EDID_DB_BT_STDTIMEDATA);
    eval 'sub EDID_DB_BT_UNDEF () {0xf9;}' unless defined(&EDID_DB_BT_UNDEF);
    eval 'sub EDID_DB_BT_MANUFDEF () {0xf8;}' unless defined(&EDID_DB_BT_MANUFDEF);
}
1;
