require '_h2ph_pre.ph';

unless(defined(&_LINUX_FB_H)) {
    eval 'sub _LINUX_FB_H () {1;}' unless defined(&_LINUX_FB_H);
    require 'linux/tty.ph';
    require 'asm/types.ph';
    eval 'sub FB_MAJOR () {29;}' unless defined(&FB_MAJOR);
    eval 'sub FB_MAX () {32;}' unless defined(&FB_MAX);
    eval 'sub FBIOGET_VSCREENINFO () {0x4600;}' unless defined(&FBIOGET_VSCREENINFO);
    eval 'sub FBIOPUT_VSCREENINFO () {0x4601;}' unless defined(&FBIOPUT_VSCREENINFO);
    eval 'sub FBIOGET_FSCREENINFO () {0x4602;}' unless defined(&FBIOGET_FSCREENINFO);
    eval 'sub FBIOGETCMAP () {0x4604;}' unless defined(&FBIOGETCMAP);
    eval 'sub FBIOPUTCMAP () {0x4605;}' unless defined(&FBIOPUTCMAP);
    eval 'sub FBIOPAN_DISPLAY () {0x4606;}' unless defined(&FBIOPAN_DISPLAY);
    eval 'sub FBIOGET_CON2FBMAP () {0x460f;}' unless defined(&FBIOGET_CON2FBMAP);
    eval 'sub FBIOPUT_CON2FBMAP () {0x4610;}' unless defined(&FBIOPUT_CON2FBMAP);
    eval 'sub FBIOBLANK () {0x4611;}' unless defined(&FBIOBLANK);
    eval 'sub FBIOGET_VBLANK () { &_IOR(ord(\'F\'), 0x12, \'struct fb_vblank\');}' unless defined(&FBIOGET_VBLANK);
    eval 'sub FBIO_ALLOC () {0x4613;}' unless defined(&FBIO_ALLOC);
    eval 'sub FBIO_FREE () {0x4614;}' unless defined(&FBIO_FREE);
    eval 'sub FBIOGET_GLYPH () {0x4615;}' unless defined(&FBIOGET_GLYPH);
    eval 'sub FBIOGET_HWCINFO () {0x4616;}' unless defined(&FBIOGET_HWCINFO);
    eval 'sub FBIOPUT_MODEINFO () {0x4617;}' unless defined(&FBIOPUT_MODEINFO);
    eval 'sub FBIOGET_DISPINFO () {0x4618;}' unless defined(&FBIOGET_DISPINFO);
    eval 'sub FB_TYPE_PACKED_PIXELS () {0;}' unless defined(&FB_TYPE_PACKED_PIXELS);
    eval 'sub FB_TYPE_PLANES () {1;}' unless defined(&FB_TYPE_PLANES);
    eval 'sub FB_TYPE_INTERLEAVED_PLANES () {2;}' unless defined(&FB_TYPE_INTERLEAVED_PLANES);
    eval 'sub FB_TYPE_TEXT () {3;}' unless defined(&FB_TYPE_TEXT);
    eval 'sub FB_TYPE_VGA_PLANES () {4;}' unless defined(&FB_TYPE_VGA_PLANES);
    eval 'sub FB_AUX_TEXT_MDA () {0;}' unless defined(&FB_AUX_TEXT_MDA);
    eval 'sub FB_AUX_TEXT_CGA () {1;}' unless defined(&FB_AUX_TEXT_CGA);
    eval 'sub FB_AUX_TEXT_S3_MMIO () {2;}' unless defined(&FB_AUX_TEXT_S3_MMIO);
    eval 'sub FB_AUX_TEXT_MGA_STEP16 () {3;}' unless defined(&FB_AUX_TEXT_MGA_STEP16);
    eval 'sub FB_AUX_TEXT_MGA_STEP8 () {4;}' unless defined(&FB_AUX_TEXT_MGA_STEP8);
    eval 'sub FB_AUX_VGA_PLANES_VGA4 () {0;}' unless defined(&FB_AUX_VGA_PLANES_VGA4);
    eval 'sub FB_AUX_VGA_PLANES_CFB4 () {1;}' unless defined(&FB_AUX_VGA_PLANES_CFB4);
    eval 'sub FB_AUX_VGA_PLANES_CFB8 () {2;}' unless defined(&FB_AUX_VGA_PLANES_CFB8);
    eval 'sub FB_VISUAL_MONO01 () {0;}' unless defined(&FB_VISUAL_MONO01);
    eval 'sub FB_VISUAL_MONO10 () {1;}' unless defined(&FB_VISUAL_MONO10);
    eval 'sub FB_VISUAL_TRUECOLOR () {2;}' unless defined(&FB_VISUAL_TRUECOLOR);
    eval 'sub FB_VISUAL_PSEUDOCOLOR () {3;}' unless defined(&FB_VISUAL_PSEUDOCOLOR);
    eval 'sub FB_VISUAL_DIRECTCOLOR () {4;}' unless defined(&FB_VISUAL_DIRECTCOLOR);
    eval 'sub FB_VISUAL_STATIC_PSEUDOCOLOR () {5;}' unless defined(&FB_VISUAL_STATIC_PSEUDOCOLOR);
    eval 'sub FB_ACCEL_NONE () {0;}' unless defined(&FB_ACCEL_NONE);
    eval 'sub FB_ACCEL_ATARIBLITT () {1;}' unless defined(&FB_ACCEL_ATARIBLITT);
    eval 'sub FB_ACCEL_AMIGABLITT () {2;}' unless defined(&FB_ACCEL_AMIGABLITT);
    eval 'sub FB_ACCEL_S3_TRIO64 () {3;}' unless defined(&FB_ACCEL_S3_TRIO64);
    eval 'sub FB_ACCEL_NCR_77C32BLT () {4;}' unless defined(&FB_ACCEL_NCR_77C32BLT);
    eval 'sub FB_ACCEL_S3_VIRGE () {5;}' unless defined(&FB_ACCEL_S3_VIRGE);
    eval 'sub FB_ACCEL_ATI_MACH64GX () {6;}' unless defined(&FB_ACCEL_ATI_MACH64GX);
    eval 'sub FB_ACCEL_DEC_TGA () {7;}' unless defined(&FB_ACCEL_DEC_TGA);
    eval 'sub FB_ACCEL_ATI_MACH64CT () {8;}' unless defined(&FB_ACCEL_ATI_MACH64CT);
    eval 'sub FB_ACCEL_ATI_MACH64VT () {9;}' unless defined(&FB_ACCEL_ATI_MACH64VT);
    eval 'sub FB_ACCEL_ATI_MACH64GT () {10;}' unless defined(&FB_ACCEL_ATI_MACH64GT);
    eval 'sub FB_ACCEL_SUN_CREATOR () {11;}' unless defined(&FB_ACCEL_SUN_CREATOR);
    eval 'sub FB_ACCEL_SUN_CGSIX () {12;}' unless defined(&FB_ACCEL_SUN_CGSIX);
    eval 'sub FB_ACCEL_SUN_LEO () {13;}' unless defined(&FB_ACCEL_SUN_LEO);
    eval 'sub FB_ACCEL_IMS_TWINTURBO () {14;}' unless defined(&FB_ACCEL_IMS_TWINTURBO);
    eval 'sub FB_ACCEL_3DLABS_PERMEDIA2 () {15;}' unless defined(&FB_ACCEL_3DLABS_PERMEDIA2);
    eval 'sub FB_ACCEL_MATROX_MGA2064W () {16;}' unless defined(&FB_ACCEL_MATROX_MGA2064W);
    eval 'sub FB_ACCEL_MATROX_MGA1064SG () {17;}' unless defined(&FB_ACCEL_MATROX_MGA1064SG);
    eval 'sub FB_ACCEL_MATROX_MGA2164W () {18;}' unless defined(&FB_ACCEL_MATROX_MGA2164W);
    eval 'sub FB_ACCEL_MATROX_MGA2164W_AGP () {19;}' unless defined(&FB_ACCEL_MATROX_MGA2164W_AGP);
    eval 'sub FB_ACCEL_MATROX_MGAG100 () {20;}' unless defined(&FB_ACCEL_MATROX_MGAG100);
    eval 'sub FB_ACCEL_MATROX_MGAG200 () {21;}' unless defined(&FB_ACCEL_MATROX_MGAG200);
    eval 'sub FB_ACCEL_SUN_CG14 () {22;}' unless defined(&FB_ACCEL_SUN_CG14);
    eval 'sub FB_ACCEL_SUN_BWTWO () {23;}' unless defined(&FB_ACCEL_SUN_BWTWO);
    eval 'sub FB_ACCEL_SUN_CGTHREE () {24;}' unless defined(&FB_ACCEL_SUN_CGTHREE);
    eval 'sub FB_ACCEL_SUN_TCX () {25;}' unless defined(&FB_ACCEL_SUN_TCX);
    eval 'sub FB_ACCEL_MATROX_MGAG400 () {26;}' unless defined(&FB_ACCEL_MATROX_MGAG400);
    eval 'sub FB_ACCEL_NV3 () {27;}' unless defined(&FB_ACCEL_NV3);
    eval 'sub FB_ACCEL_NV4 () {28;}' unless defined(&FB_ACCEL_NV4);
    eval 'sub FB_ACCEL_NV5 () {29;}' unless defined(&FB_ACCEL_NV5);
    eval 'sub FB_ACCEL_CT_6555x () {30;}' unless defined(&FB_ACCEL_CT_6555x);
    eval 'sub FB_ACCEL_3DFX_BANSHEE () {31;}' unless defined(&FB_ACCEL_3DFX_BANSHEE);
    eval 'sub FB_ACCEL_ATI_RAGE128 () {32;}' unless defined(&FB_ACCEL_ATI_RAGE128);
    eval 'sub FB_ACCEL_IGS_CYBER2000 () {33;}' unless defined(&FB_ACCEL_IGS_CYBER2000);
    eval 'sub FB_ACCEL_IGS_CYBER2010 () {34;}' unless defined(&FB_ACCEL_IGS_CYBER2010);
    eval 'sub FB_ACCEL_IGS_CYBER5000 () {35;}' unless defined(&FB_ACCEL_IGS_CYBER5000);
    eval 'sub FB_ACCEL_SIS_GLAMOUR () {36;}' unless defined(&FB_ACCEL_SIS_GLAMOUR);
    eval 'sub FB_NONSTD_HAM () {1;}' unless defined(&FB_NONSTD_HAM);
    eval 'sub FB_ACTIVATE_NOW () {0;}' unless defined(&FB_ACTIVATE_NOW);
    eval 'sub FB_ACTIVATE_NXTOPEN () {1;}' unless defined(&FB_ACTIVATE_NXTOPEN);
    eval 'sub FB_ACTIVATE_TEST () {2;}' unless defined(&FB_ACTIVATE_TEST);
    eval 'sub FB_ACTIVATE_MASK () {15;}' unless defined(&FB_ACTIVATE_MASK);
    eval 'sub FB_ACTIVATE_VBL () {16;}' unless defined(&FB_ACTIVATE_VBL);
    eval 'sub FB_CHANGE_CMAP_VBL () {32;}' unless defined(&FB_CHANGE_CMAP_VBL);
    eval 'sub FB_ACTIVATE_ALL () {64;}' unless defined(&FB_ACTIVATE_ALL);
    eval 'sub FB_ACCELF_TEXT () {1;}' unless defined(&FB_ACCELF_TEXT);
    eval 'sub FB_SYNC_HOR_HIGH_ACT () {1;}' unless defined(&FB_SYNC_HOR_HIGH_ACT);
    eval 'sub FB_SYNC_VERT_HIGH_ACT () {2;}' unless defined(&FB_SYNC_VERT_HIGH_ACT);
    eval 'sub FB_SYNC_EXT () {4;}' unless defined(&FB_SYNC_EXT);
    eval 'sub FB_SYNC_COMP_HIGH_ACT () {8;}' unless defined(&FB_SYNC_COMP_HIGH_ACT);
    eval 'sub FB_SYNC_BROADCAST () {16;}' unless defined(&FB_SYNC_BROADCAST);
    eval 'sub FB_SYNC_ON_GREEN () {32;}' unless defined(&FB_SYNC_ON_GREEN);
    eval 'sub FB_VMODE_NONINTERLACED () {0;}' unless defined(&FB_VMODE_NONINTERLACED);
    eval 'sub FB_VMODE_INTERLACED () {1;}' unless defined(&FB_VMODE_INTERLACED);
    eval 'sub FB_VMODE_DOUBLE () {2;}' unless defined(&FB_VMODE_DOUBLE);
    eval 'sub FB_VMODE_MASK () {255;}' unless defined(&FB_VMODE_MASK);
    eval 'sub FB_VMODE_YWRAP () {256;}' unless defined(&FB_VMODE_YWRAP);
    eval 'sub FB_VMODE_SMOOTH_XPAN () {512;}' unless defined(&FB_VMODE_SMOOTH_XPAN);
    eval 'sub FB_VMODE_CONUPDATE () {512;}' unless defined(&FB_VMODE_CONUPDATE);
    eval 'sub VESA_NO_BLANKING () {0;}' unless defined(&VESA_NO_BLANKING);
    eval 'sub VESA_VSYNC_SUSPEND () {1;}' unless defined(&VESA_VSYNC_SUSPEND);
    eval 'sub VESA_HSYNC_SUSPEND () {2;}' unless defined(&VESA_HSYNC_SUSPEND);
    eval 'sub VESA_POWERDOWN () {3;}' unless defined(&VESA_POWERDOWN);
    eval 'sub FB_VBLANK_VBLANKING () {0x1;}' unless defined(&FB_VBLANK_VBLANKING);
    eval 'sub FB_VBLANK_HBLANKING () {0x2;}' unless defined(&FB_VBLANK_HBLANKING);
    eval 'sub FB_VBLANK_HAVE_VBLANK () {0x4;}' unless defined(&FB_VBLANK_HAVE_VBLANK);
    eval 'sub FB_VBLANK_HAVE_HBLANK () {0x8;}' unless defined(&FB_VBLANK_HAVE_HBLANK);
    eval 'sub FB_VBLANK_HAVE_COUNT () {0x10;}' unless defined(&FB_VBLANK_HAVE_COUNT);
    eval 'sub FB_VBLANK_HAVE_VCOUNT () {0x20;}' unless defined(&FB_VBLANK_HAVE_VCOUNT);
    eval 'sub FB_VBLANK_HAVE_HCOUNT () {0x40;}' unless defined(&FB_VBLANK_HAVE_HCOUNT);
    eval 'sub FB_VBLANK_VSYNCING () {0x80;}' unless defined(&FB_VBLANK_VSYNCING);
    eval 'sub FB_VBLANK_HAVE_VSYNC () {0x100;}' unless defined(&FB_VBLANK_HAVE_VSYNC);
    if(1) {
	eval 'sub FBCMD_GET_CURRENTPAR () {0xdead0005;}' unless defined(&FBCMD_GET_CURRENTPAR);
	eval 'sub FBCMD_SET_CURRENTPAR () {0xdead8005;}' unless defined(&FBCMD_SET_CURRENTPAR);
    }
    if(1) {
	eval 'sub FBIOGET_FCURSORINFO () {0x4607;}' unless defined(&FBIOGET_FCURSORINFO);
	eval 'sub FBIOGET_VCURSORINFO () {0x4608;}' unless defined(&FBIOGET_VCURSORINFO);
	eval 'sub FBIOPUT_VCURSORINFO () {0x4609;}' unless defined(&FBIOPUT_VCURSORINFO);
	eval 'sub FBIOGET_CURSORSTATE () {0x460a;}' unless defined(&FBIOGET_CURSORSTATE);
	eval 'sub FBIOPUT_CURSORSTATE () {0x460b;}' unless defined(&FBIOPUT_CURSORSTATE);
	eval 'sub FB_CURSOR_OFF () {0;}' unless defined(&FB_CURSOR_OFF);
	eval 'sub FB_CURSOR_ON () {1;}' unless defined(&FB_CURSOR_ON);
	eval 'sub FB_CURSOR_FLASH () {2;}' unless defined(&FB_CURSOR_FLASH);
    }
}
1;
