require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&RB_AUTOBOOT)) {
    sub RB_AUTOBOOT () {	0;}
}
unless(defined(&RB_ASKNAME)) {
    sub RB_ASKNAME () {	0x1;}
}
unless(defined(&RB_SINGLE)) {
    sub RB_SINGLE () {	0x2;}
}
unless(defined(&RB_NOSYNC)) {
    sub RB_NOSYNC () {	0x4;}
}
unless(defined(&RB_HALT)) {
    sub RB_HALT () {	0x8;}
}
unless(defined(&RB_INITNAME)) {
    sub RB_INITNAME () {	0x10;}
}
unless(defined(&RB_DFLTROOT)) {
    sub RB_DFLTROOT () {	0x20;}
}
unless(defined(&RB_KDB)) {
    sub RB_KDB () {	0x40;}
}
unless(defined(&RB_RDONLY)) {
    sub RB_RDONLY () {	0x80;}
}
unless(defined(&RB_DUMP)) {
    sub RB_DUMP () {	0x100;}
}
unless(defined(&RB_MINIROOT)) {
    sub RB_MINIROOT () {	0x200;}
}
unless(defined(&RB_CONFIG)) {
    sub RB_CONFIG () {	0x400;}
}
unless(defined(&RB_TIMEBAD)) {
    sub RB_TIMEBAD () {	0x800;}
}
unless(defined(&RB_POWERDOWN)) {
    sub RB_POWERDOWN () {	0x1000;}
}
unless(defined(&RB_SERCONS)) {
    sub RB_SERCONS () {	0x2000;}
}
unless(defined(&RB_USERREQ)) {
    sub RB_USERREQ () {	0x4000;}
}
unless(defined(&B_ADAPTORSHIFT)) {
    sub B_ADAPTORSHIFT () {	24;}
}
unless(defined(&B_ADAPTORMASK)) {
    sub B_ADAPTORMASK () {	0xf;}
}
unless(defined(&B_ADAPTOR)) {
    sub B_ADAPTOR {
	my($val) = @_;
	eval q(((($val) >>  &B_ADAPTORSHIFT) &  &B_ADAPTORMASK));
    }
}
unless(defined(&B_CONTROLLERSHIFT)) {
    sub B_CONTROLLERSHIFT () {	20;}
}
unless(defined(&B_CONTROLLERMASK)) {
    sub B_CONTROLLERMASK () {	0xf;}
}
unless(defined(&B_CONTROLLER)) {
    sub B_CONTROLLER {
	my($val) = @_;
	eval q(((($val)>> &B_CONTROLLERSHIFT) &  &B_CONTROLLERMASK));
    }
}
unless(defined(&B_UNITSHIFT)) {
    sub B_UNITSHIFT () {	16;}
}
unless(defined(&B_UNITMASK)) {
    sub B_UNITMASK () {	0xf;}
}
unless(defined(&B_UNIT)) {
    sub B_UNIT {
	my($val) = @_;
	eval q(((($val) >>  &B_UNITSHIFT) &  &B_UNITMASK));
    }
}
unless(defined(&B_PARTITIONSHIFT)) {
    sub B_PARTITIONSHIFT () {	8;}
}
unless(defined(&B_PARTITIONMASK)) {
    sub B_PARTITIONMASK () {	0xff;}
}
unless(defined(&B_PARTITION)) {
    sub B_PARTITION {
	my($val) = @_;
	eval q(((($val) >>  &B_PARTITIONSHIFT) &  &B_PARTITIONMASK));
    }
}
unless(defined(&B_TYPESHIFT)) {
    sub B_TYPESHIFT () {	0;}
}
unless(defined(&B_TYPEMASK)) {
    sub B_TYPEMASK () {	0xff;}
}
unless(defined(&B_TYPE)) {
    sub B_TYPE {
	my($val) = @_;
	eval q(((($val) >>  &B_TYPESHIFT) &  &B_TYPEMASK));
    }
}
unless(defined(&B_MAGICMASK)) {
    sub B_MAGICMASK () {	0xf0000000;}
}
unless(defined(&B_DEVMAGIC)) {
    sub B_DEVMAGIC () {	0xa0000000;}
}
unless(defined(&MAKEBOOTDEV)) {
    sub MAKEBOOTDEV {
	my($type, $adaptor, $controller, $unit, $partition) = @_;
	eval q(((($type) <<  &B_TYPESHIFT) | (($adaptor) <<  &B_ADAPTORSHIFT) | (($controller) <<  &B_CONTROLLERSHIFT) | (($unit) <<  &B_UNITSHIFT) | (($partition) <<  &B_PARTITIONSHIFT) |  &B_DEVMAGIC));
    }
}
if(defined( &_KERNEL)  && !defined( &_STANDALONE)  && !defined( &_LOCORE)) {
}
1;
