require '_h2ph_pre.ph';

unless(defined(&__LINUX_MATROXFB_H__)) {
    eval 'sub __LINUX_MATROXFB_H__ () {1;}' unless defined(&__LINUX_MATROXFB_H__);
    require 'asm/ioctl.ph';
    require 'asm/types.ph';
    eval 'sub MATROXFB_OUTPUT_PRIMARY () {0x;}' unless defined(&MATROXFB_OUTPUT_PRIMARY);
    eval 'sub MATROXFB_OUTPUT_SECONDARY () {0x1;}' unless defined(&MATROXFB_OUTPUT_SECONDARY);
    eval 'sub MATROXFB_OUTPUT_DFP () {0x2;}' unless defined(&MATROXFB_OUTPUT_DFP);
    eval 'sub MATROXFB_OUTPUT_MODE_PAL () {0x1;}' unless defined(&MATROXFB_OUTPUT_MODE_PAL);
    eval 'sub MATROXFB_OUTPUT_MODE_NTSC () {0x2;}' unless defined(&MATROXFB_OUTPUT_MODE_NTSC);
    eval 'sub MATROXFB_OUTPUT_MODE_MONITOR () {0x80;}' unless defined(&MATROXFB_OUTPUT_MODE_MONITOR);
    eval 'sub MATROXFB_SET_OUTPUT_MODE () { &_IOW(ord(\'n\'),0xfa,$sizeof{\'struct matroxioc_output_mode\'});}' unless defined(&MATROXFB_SET_OUTPUT_MODE);
    eval 'sub MATROXFB_GET_OUTPUT_MODE () { &_IOWR(ord(\'n\'),0xfa,$sizeof{\'struct matroxioc_output_mode\'});}' unless defined(&MATROXFB_GET_OUTPUT_MODE);
    eval 'sub MATROXFB_OUTPUT_CONN_PRIMARY () {(1<<  &MATROXFB_OUTPUT_PRIMARY);}' unless defined(&MATROXFB_OUTPUT_CONN_PRIMARY);
    eval 'sub MATROXFB_OUTPUT_CONN_SECONDARY () {(1<<  &MATROXFB_OUTPUT_SECONDARY);}' unless defined(&MATROXFB_OUTPUT_CONN_SECONDARY);
    eval 'sub MATROXFB_OUTPUT_CONN_DFP () {(1<<  &MATROXFB_OUTPUT_DFP);}' unless defined(&MATROXFB_OUTPUT_CONN_DFP);
    eval 'sub MATROXFB_SET_OUTPUT_CONNECTION () { &_IOW(ord(\'n\'),0xf8,$sizeof{ &__u32});}' unless defined(&MATROXFB_SET_OUTPUT_CONNECTION);
    eval 'sub MATROXFB_GET_OUTPUT_CONNECTION () { &_IOR(ord(\'n\'),0xf8,$sizeof{ &__u32});}' unless defined(&MATROXFB_GET_OUTPUT_CONNECTION);
    eval 'sub MATROXFB_GET_AVAILABLE_OUTPUTS () { &_IOR(ord(\'n\'),0xf9,$sizeof{ &__u32});}' unless defined(&MATROXFB_GET_AVAILABLE_OUTPUTS);
    eval 'sub MATROXFB_GET_ALL_OUTPUTS () { &_IOR(ord(\'n\'),0xfb,$sizeof{ &__u32});}' unless defined(&MATROXFB_GET_ALL_OUTPUTS);
}
1;
