require '_h2ph_pre.ph';

if(defined(&IPFILTER)) {
    eval 'sub NIPF () {1;}' unless defined(&NIPF);
} else {
    eval 'sub NIPF () {0;}' unless defined(&NIPF);
}
unless(defined(&mmread)) {
    sub mmread () {	 &mmrw;}
}
unless(defined(&mmwrite)) {
    sub mmwrite () {	 &mmrw;}
}
unless(defined(&cdev_grf_init)) {
    sub cdev_grf_init {
	local($c,$n) = @_;
	eval q({  &dev_init($c,$n, &open),  &dev_init($c,$n, &close), ( &dev_type_read((*)))  &nullop, ( &dev_type_write((*)))  &nullop,  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &enodev, 0,  &dev_init($c,$n, &select),  &dev_init($c,$n, &mmap) });
    }
}
unless(defined(&cdev_lpt_init)) {
    sub cdev_lpt_init {
	local($c,$n) = @_;
	eval q({  &dev_init($c,$n, &open),  &dev_init($c,$n, &close), ( &dev_type_read((*)))  &enodev,  &dev_init($c,$n, &write),  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &enodev, 0,  &seltrue, ( &dev_type_mmap((*)))  &enodev });
    }
}
unless(defined(&cdev_par_init)) {
    sub cdev_par_init {
	local($c,$n) = @_;
	eval q({  &dev_init($c,$n, &open),  &dev_init($c,$n, &close),  &dev_init($c,$n, &read),  &dev_init($c,$n, &write),  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &enodev, 0, ( &dev_type_select((*)))  &enodev, ( &dev_type_mmap((*)))  &enodev });
    }
}
unless(defined(&cdev_view_init)) {
    sub cdev_view_init {
	local($c,$n) = @_;
	eval q({  &dev_init($c,$n, &open),  &dev_init($c,$n, &close), ( &dev_type_read((*)))  &nullop, ( &dev_type_write((*)))  &nullop,  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &enodev, 0,  &dev_init($c,$n, &select),  &dev_init($c,$n, &mmap) });
    }
}
1;
