require '_h2ph_pre.ph';

unless(defined(&_LINUX_VT_BUFFER_H_)) {
    eval 'sub _LINUX_VT_BUFFER_H_ () {1;}' unless defined(&_LINUX_VT_BUFFER_H_);
    require 'linux/config.ph';
    if(defined( &CONFIG_VGA_CONSOLE) || defined( &CONFIG_MDA_CONSOLE)) {
	require 'asm/vga.ph';
    }
    unless(defined(&VT_BUF_HAVE_RW)) {
	eval 'sub scr_writew {
	    local($val, $addr) = @_;
    	    eval q((*($addr) = ($val)));
	}' unless defined(&scr_writew);
	eval 'sub scr_readw {
	    local($addr) = @_;
    	    eval q((*($addr)));
	}' unless defined(&scr_readw);
	eval 'sub scr_memcpyw {
	    local($d, $s, $c) = @_;
    	    eval q( &memcpy($d, $s, $c));
	}' unless defined(&scr_memcpyw);
	eval 'sub scr_memmovew {
	    local($d, $s, $c) = @_;
    	    eval q( &memmove($d, $s, $c));
	}' unless defined(&scr_memmovew);
	eval 'sub VT_BUF_HAVE_MEMCPYW () {1;}' unless defined(&VT_BUF_HAVE_MEMCPYW);
	eval 'sub VT_BUF_HAVE_MEMMOVEW () {1;}' unless defined(&VT_BUF_HAVE_MEMMOVEW);
	eval 'sub scr_memcpyw_from {
	    local($d, $s, $c) = @_;
    	    eval q( &memcpy($d, $s, $c));
	}' unless defined(&scr_memcpyw_from);
	eval 'sub scr_memcpyw_to {
	    local($d, $s, $c) = @_;
    	    eval q( &memcpy($d, $s, $c));
	}' unless defined(&scr_memcpyw_to);
	eval 'sub VT_BUF_HAVE_MEMCPYF () {1;}' unless defined(&VT_BUF_HAVE_MEMCPYF);
    }
    unless(defined(&VT_BUF_HAVE_MEMSETW)) {
    }
    unless(defined(&VT_BUF_HAVE_MEMCPYW)) {
    }
    unless(defined(&VT_BUF_HAVE_MEMMOVEW)) {
    }
    unless(defined(&VT_BUF_HAVE_MEMCPYF)) {
    }
}
1;
