require '_h2ph_pre.ph';

no warnings qw(redefine misc);

require 'sys/conf.ph';
unless(defined(&mmread)) {
    sub mmread () {	 &mmrw;}
}
unless(defined(&mmwrite)) {
    sub mmwrite () {	 &mmrw;}
}
unless(defined(&cdev_apm_init)) {
    sub cdev_apm_init {
	my($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,  &selfalse, ( &dev_type_mmap((*)))  &enodev, 0, 0,  &dev_init($c,$n, &kqfilter) });
    }
}
unless(defined(&cdev_openprom_init)) {
    sub cdev_openprom_init {
	my($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((*)))  &nullop, 0,  &selfalse, ( &dev_type_mmap((*)))  &enodev });
    }
}
1;
