require '_h2ph_pre.ph';

unless(defined(&_LINUX_CONSOLE_H_)) {
    eval 'sub _LINUX_CONSOLE_H_ () {1;}' unless defined(&_LINUX_CONSOLE_H_);
    require 'linux/types.ph';
    require 'linux/kdev_t.ph';
    require 'linux/spinlock.ph';
    eval 'sub VT100ID () {"\\033[?1;2c";}' unless defined(&VT100ID);
    eval 'sub VT102ID () {"\\033[?6c";}' unless defined(&VT102ID);
    eval 'sub SM_UP () {(1);}' unless defined(&SM_UP);
    eval 'sub SM_DOWN () {(2);}' unless defined(&SM_DOWN);
    eval 'sub CM_DRAW () {(1);}' unless defined(&CM_DRAW);
    eval 'sub CM_ERASE () {(2);}' unless defined(&CM_ERASE);
    eval 'sub CM_MOVE () {(3);}' unless defined(&CM_MOVE);
    eval 'sub MAX_CMDLINECONSOLES () {8;}' unless defined(&MAX_CMDLINECONSOLES);
    eval 'sub CON_PRINTBUFFER () {(1);}' unless defined(&CON_PRINTBUFFER);
    eval 'sub CON_CONSDEV () {(2);}' unless defined(&CON_CONSDEV);
    eval 'sub CON_ENABLED () {(4);}' unless defined(&CON_ENABLED);
    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);
}
1;
