require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&H_HPCFBIO)) {
    eval 'sub H_HPCFBIO () {1;}' unless defined(&H_HPCFBIO);
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    eval 'sub HPCFB_MAXNAMELEN () {32;}' unless defined(&HPCFB_MAXNAMELEN);
    eval 'sub HPCFB_DEFAULT_CONFIG () {0;}' unless defined(&HPCFB_DEFAULT_CONFIG);
    eval 'sub HPCFB_CURRENT_CONFIG () {-1;}' unless defined(&HPCFB_CURRENT_CONFIG);
    eval 'sub HPCFB_DEFAULT_UNIT () {0;}' unless defined(&HPCFB_DEFAULT_UNIT);
    eval 'sub HPCFB_CURRENT_UNIT () {-1;}' unless defined(&HPCFB_CURRENT_UNIT);
    eval 'sub HPCFB_CLASS_UNKNOWN () {0;}' unless defined(&HPCFB_CLASS_UNKNOWN);
    eval 'sub HPCFB_CLASS_GRAYSCALE () {1;}' unless defined(&HPCFB_CLASS_GRAYSCALE);
    eval 'sub HPCFB_CLASS_INDEXCOLOR () {2;}' unless defined(&HPCFB_CLASS_INDEXCOLOR);
    eval 'sub HPCFB_CLASS_RGBCOLOR () {3;}' unless defined(&HPCFB_CLASS_RGBCOLOR);
    eval 'sub HPCFB_ACCESS_CACHEABLE () {(1<<0);}' unless defined(&HPCFB_ACCESS_CACHEABLE);
    eval 'sub HPCFB_ACCESS_BYTE () {(1<<1);}' unless defined(&HPCFB_ACCESS_BYTE);
    eval 'sub HPCFB_ACCESS_WORD () {(1<<2);}' unless defined(&HPCFB_ACCESS_WORD);
    eval 'sub HPCFB_ACCESS_3BYTE () {(1<<3);}' unless defined(&HPCFB_ACCESS_3BYTE);
    eval 'sub HPCFB_ACCESS_DWORD () {(1<<4);}' unless defined(&HPCFB_ACCESS_DWORD);
    eval 'sub HPCFB_ACCESS_5BYTE () {(1<<5);}' unless defined(&HPCFB_ACCESS_5BYTE);
    eval 'sub HPCFB_ACCESS_6BYTE () {(1<<6);}' unless defined(&HPCFB_ACCESS_6BYTE);
    eval 'sub HPCFB_ACCESS_7BYTE () {(1<<7);}' unless defined(&HPCFB_ACCESS_7BYTE);
    eval 'sub HPCFB_ACCESS_QWORD () {(1<<8);}' unless defined(&HPCFB_ACCESS_QWORD);
    eval 'sub HPCFB_ACCESS_9BYTE () {(1<<9);}' unless defined(&HPCFB_ACCESS_9BYTE);
    eval 'sub HPCFB_ACCESS_10BYTE () {(1<<10);}' unless defined(&HPCFB_ACCESS_10BYTE);
    eval 'sub HPCFB_ACCESS_11BYTE () {(1<<11);}' unless defined(&HPCFB_ACCESS_11BYTE);
    eval 'sub HPCFB_ACCESS_12BYTE () {(1<<12);}' unless defined(&HPCFB_ACCESS_12BYTE);
    eval 'sub HPCFB_ACCESS_13BYTE () {(1<<13);}' unless defined(&HPCFB_ACCESS_13BYTE);
    eval 'sub HPCFB_ACCESS_14BYTE () {(1<<14);}' unless defined(&HPCFB_ACCESS_14BYTE);
    eval 'sub HPCFB_ACCESS_15BYTE () {(1<<15);}' unless defined(&HPCFB_ACCESS_15BYTE);
    eval 'sub HPCFB_ACCESS_OWORD () {(1<<16);}' unless defined(&HPCFB_ACCESS_OWORD);
    eval 'sub HPCFB_ACCESS_LSB_TO_MSB () {(1<<17);}' unless defined(&HPCFB_ACCESS_LSB_TO_MSB);
    eval 'sub HPCFB_ACCESS_R_TO_L () {(1<<18);}' unless defined(&HPCFB_ACCESS_R_TO_L);
    eval 'sub HPCFB_ACCESS_B_TO_T () {(1<<19);}' unless defined(&HPCFB_ACCESS_B_TO_T);
    eval 'sub HPCFB_ACCESS_Y_TO_X () {(1<<20);}' unless defined(&HPCFB_ACCESS_Y_TO_X);
    eval 'sub HPCFB_ACCESS_STATIC () {(1<<21);}' unless defined(&HPCFB_ACCESS_STATIC);
    eval 'sub HPCFB_ACCESS_REVERSE () {(1<<22);}' unless defined(&HPCFB_ACCESS_REVERSE);
    eval 'sub HPCFB_ACCESS_PACK_BLANK () {(1<<23);}' unless defined(&HPCFB_ACCESS_PACK_BLANK);
    eval 'sub HPCFB_ACCESS_PIXEL_BLANK () {(1<<24);}' unless defined(&HPCFB_ACCESS_PIXEL_BLANK);
    eval 'sub HPCFB_ACCESS_ALPHA_REVERSE () {(1<<25);}' unless defined(&HPCFB_ACCESS_ALPHA_REVERSE);
    eval 'sub HPCFB_REVORDER_BYTE () {(1<<0);}' unless defined(&HPCFB_REVORDER_BYTE);
    eval 'sub HPCFB_REVORDER_WORD () {(1<<1);}' unless defined(&HPCFB_REVORDER_WORD);
    eval 'sub HPCFB_REVORDER_DWORD () {(1<<2);}' unless defined(&HPCFB_REVORDER_DWORD);
    eval 'sub HPCFB_REVORDER_QWORD () {(1<<3);}' unless defined(&HPCFB_REVORDER_QWORD);
    eval 'sub HPCFB_DSP_CLASS_UNKNOWN () {0;}' unless defined(&HPCFB_DSP_CLASS_UNKNOWN);
    eval 'sub HPCFB_DSP_CLASS_COLORCRT () {1;}' unless defined(&HPCFB_DSP_CLASS_COLORCRT);
    eval 'sub HPCFB_DSP_CLASS_COLORLCD () {2;}' unless defined(&HPCFB_DSP_CLASS_COLORLCD);
    eval 'sub HPCFB_DSP_CLASS_GRAYCRT () {3;}' unless defined(&HPCFB_DSP_CLASS_GRAYCRT);
    eval 'sub HPCFB_DSP_CLASS_GRAYLCD () {4;}' unless defined(&HPCFB_DSP_CLASS_GRAYLCD);
    eval 'sub HPCFB_DSP_CLASS_EXTERNAL () {5;}' unless defined(&HPCFB_DSP_CLASS_EXTERNAL);
    eval 'sub HPCFB_DSP_CLASS_VIDEO () {6;}' unless defined(&HPCFB_DSP_CLASS_VIDEO);
    eval 'sub HPCFB_DSP_DPI_UNKNOWN () {0;}' unless defined(&HPCFB_DSP_DPI_UNKNOWN);
    eval 'sub HPCFB_DSP_OP_VIEW () {0;}' unless defined(&HPCFB_DSP_OP_VIEW);
    eval 'sub HPCFB_DSP_OP_BRIGHT () {1;}' unless defined(&HPCFB_DSP_OP_BRIGHT);
    eval 'sub HPCFB_DSP_OP_POWER () {2;}' unless defined(&HPCFB_DSP_OP_POWER);
    eval 'sub HPCFB_DSP_PW_ON () {0;}' unless defined(&HPCFB_DSP_PW_ON);
    eval 'sub HPCFB_DSP_PW_SAVE () {10;}' unless defined(&HPCFB_DSP_PW_SAVE);
    eval 'sub HPCFB_DSP_PW_CUT () {20;}' unless defined(&HPCFB_DSP_PW_CUT);
    eval 'sub HPCFB_DSP_PW_OFF () {30;}' unless defined(&HPCFB_DSP_PW_OFF);
    eval 'sub HPCFB_DSP_OP_SIGNAL () {3;}' unless defined(&HPCFB_DSP_OP_SIGNAL);
    eval 'sub HPCFB_DSP_SIG_H_SYNC_HIGH () {(1<<0);}' unless defined(&HPCFB_DSP_SIG_H_SYNC_HIGH);
    eval 'sub HPCFB_DSP_SIG_V_SYNC_HIGH () {(1<<1);}' unless defined(&HPCFB_DSP_SIG_V_SYNC_HIGH);
    eval 'sub HPCFB_DSP_SIG_C_SYNC_HIGH () {(1<<2);}' unless defined(&HPCFB_DSP_SIG_C_SYNC_HIGH);
    eval 'sub HPCFB_DSP_SIG_SYNC_EXT () {(1<<3);}' unless defined(&HPCFB_DSP_SIG_SYNC_EXT);
    eval 'sub HPCFB_DSP_SIG_SYNC_GREEN () {(1<<4);}' unless defined(&HPCFB_DSP_SIG_SYNC_GREEN);
    eval 'sub HPCFBIO_GCONF () { &_IOWR(ord(\'H\'), 0, \'struct hpcfb_fbconf\');}' unless defined(&HPCFBIO_GCONF);
    eval 'sub HPCFBIO_SCONF () { &_IOW(ord(\'H\'), 1, \'struct hpcfb_fbconf\');}' unless defined(&HPCFBIO_SCONF);
    eval 'sub HPCFBIO_GDSPCONF () { &_IOWR(ord(\'H\'), 2, \'struct hpcfb_dspconf\');}' unless defined(&HPCFBIO_GDSPCONF);
    eval 'sub HPCFBIO_SDSPCONF () { &_IOW(ord(\'H\'), 3, \'struct hpcfb_dspconf\');}' unless defined(&HPCFBIO_SDSPCONF);
    eval 'sub HPCFBIO_GOP () { &_IOR(ord(\'H\'), 4, \'struct hpcfb_dsp_op\');}' unless defined(&HPCFBIO_GOP);
    eval 'sub HPCFBIO_SOP () { &_IOWR(ord(\'H\'), 5, \'struct hpcfb_dsp_op\');}' unless defined(&HPCFBIO_SOP);
}
1;
