require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&mmread)) {
    sub mmread () {	 &mmrw;}
}
unless(defined(&mmwrite)) {
    sub mmwrite () {	 &mmrw;}
}
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_init($c,$n, &read), ( &dev_type_write((*)))  &enodev,  &dev_init($c,$n, &ioctl), ( &dev_type_stop((*)))  &nullop, 0, ( &dev_type_poll((*)))  &enodev, ( &dev_type_mmap((*)))  &enodev });
    }
}
unless(defined(&cdev_uperf_init)) {
    sub cdev_uperf_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, ( &dev_type_poll((*)))  &enodev, ( &dev_type_mmap((*)))  &enodev });
    }
}
unless(defined(&cdev_gen_init)) {
    sub cdev_gen_init {
	my($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((*)))  &nullop, 0,  &dev_init($c,$n, &poll), ( &dev_type_mmap((*)))  &enodev });
    }
}
unless(defined(&cdev_bpp_init)) {
    sub cdev_bpp_init {
	my($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((*)))  &nullop, 0,  &seltrue, ( &dev_type_mmap((*)))  &enodev });
    }
}
1;
