require '_h2ph_pre.ph';

no warnings 'redefine';

require 'sys/conf.ph';
unless(defined(&mmread)) {
    sub mmread () {	 &mmrw;}
}
unless(defined(&mmwrite)) {
    sub mmwrite () {	 &mmrw;}
}
unless(defined(&cdev_pc_init)) {
    sub cdev_pc_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_init($c,$n, &stop),  &dev_init($c,$n, &tty),  &ttpoll,  &dev_init($c,$n, &mmap),  &D_TTY });
    }
}
unless(defined(&cdev_apm_init)) {
    sub cdev_apm_init {
	local($c,$n) = @_;
	eval q({  &dev_init($c,$n, &open),  &dev_init($c,$n, &close), ( &dev_type_read((*)))  &enodev, ( &dev_type_write((*)))  &enodev,  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &enodev, 0, ( &dev_type_poll((*)))  &enodev, ( &dev_type_mmap((*)))  &enodev, 0,  &D_KQFILTER,  &dev_init($c,$n, &kqfilter) });
    }
}
unless(defined(&cdev_acpi_init)) {
    sub cdev_acpi_init {
	local($c,$n) = @_;
	eval q({  &dev_init($c,$n, &open),  &dev_init($c,$n, &close), ( &dev_type_read((*)))  &enodev, ( &dev_type_write((*)))  &enodev,  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &enodev, 0, ( &dev_type_poll((*)))  &enodev, ( &dev_type_mmap((*)))  &enodev, 0,  &D_KQFILTER,  &dev_init($c,$n, &kqfilter) });
    }
}
unless(defined(&biospoll)) {
    sub biospoll () {	 &seltrue;}
}
unless(defined(&pctrpoll)) {
    sub pctrpoll () {	 &seltrue;}
}
1;
