require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&HWRPB_ADDR)) {
    sub HWRPB_ADDR () {	0x10000000;}
}
unless(defined(&ASSEMBLER)) {
    eval 'sub ST_ADU () {1;}' unless defined(&ST_ADU);
    eval 'sub ST_DEC_4000 () {2;}' unless defined(&ST_DEC_4000);
    eval 'sub ST_DEC_7000 () {3;}' unless defined(&ST_DEC_7000);
    eval 'sub ST_DEC_3000_500 () {4;}' unless defined(&ST_DEC_3000_500);
    eval 'sub ST_DEC_2000_300 () {6;}' unless defined(&ST_DEC_2000_300);
    eval 'sub ST_DEC_3000_300 () {7;}' unless defined(&ST_DEC_3000_300);
    eval 'sub ST_AVALON_A12 () {8;}' unless defined(&ST_AVALON_A12);
    eval 'sub ST_DEC_2100_A500 () {9;}' unless defined(&ST_DEC_2100_A500);
    eval 'sub ST_DEC_APXVME_64 () {10;}' unless defined(&ST_DEC_APXVME_64);
    eval 'sub ST_DEC_AXPPCI_33 () {11;}' unless defined(&ST_DEC_AXPPCI_33);
    eval 'sub ST_DEC_21000 () {12;}' unless defined(&ST_DEC_21000);
    eval 'sub ST_DEC_2100_A50 () {13;}' unless defined(&ST_DEC_2100_A50);
    eval 'sub ST_DEC_MUSTANG () {14;}' unless defined(&ST_DEC_MUSTANG);
    eval 'sub ST_DEC_KN20AA () {15;}' unless defined(&ST_DEC_KN20AA);
    eval 'sub ST_DEC_1000 () {17;}' unless defined(&ST_DEC_1000);
    eval 'sub ST_EB66 () {19;}' unless defined(&ST_EB66);
    eval 'sub ST_EB64P () {20;}' unless defined(&ST_EB64P);
    eval 'sub ST_ALPHABOOK1 () {21;}' unless defined(&ST_ALPHABOOK1);
    eval 'sub ST_DEC_4100 () {22;}' unless defined(&ST_DEC_4100);
    eval 'sub ST_DEC_EV45_PBP () {23;}' unless defined(&ST_DEC_EV45_PBP);
    eval 'sub ST_DEC_2100A_A500 () {24;}' unless defined(&ST_DEC_2100A_A500);
    eval 'sub ST_EB164 () {26;}' unless defined(&ST_EB164);
    eval 'sub ST_DEC_1000A () {27;}' unless defined(&ST_DEC_1000A);
    eval 'sub ST_DEC_ALPHAVME_224 () {28;}' unless defined(&ST_DEC_ALPHAVME_224);
    eval 'sub ST_DEC_550 () {30;}' unless defined(&ST_DEC_550);
    eval 'sub ST_DEC_EV56_PBP () {32;}' unless defined(&ST_DEC_EV56_PBP);
    eval 'sub ST_DEC_ALPHAVME_320 () {33;}' unless defined(&ST_DEC_ALPHAVME_320);
    eval 'sub ST_DEC_6600 () {34;}' unless defined(&ST_DEC_6600);
    eval 'sub ST_DEC_WILDFIRE () {35;}' unless defined(&ST_DEC_WILDFIRE);
    eval 'sub ST_DEC_CUSCO () {36;}' unless defined(&ST_DEC_CUSCO);
    eval 'sub ST_DEC_EIGER () {37;}' unless defined(&ST_DEC_EIGER);
    eval 'sub ST_DEC_TITAN () {38;}' unless defined(&ST_DEC_TITAN);
    eval 'sub ST_DEC_MARVEL () {39;}' unless defined(&ST_DEC_MARVEL);
    eval 'sub ST_API_NAUTILUS () {201;}' unless defined(&ST_API_NAUTILUS);
    eval 'sub SV_MPCAP () {0x1;}' unless defined(&SV_MPCAP);
    eval 'sub SV_CONSOLE () {0x1e;}' unless defined(&SV_CONSOLE);
    eval 'sub SV_CONSOLE_DETACHED () {0x2;}' unless defined(&SV_CONSOLE_DETACHED);
    eval 'sub SV_CONSOLE_EMBEDDED () {0x4;}' unless defined(&SV_CONSOLE_EMBEDDED);
    eval 'sub SV_POWERFAIL () {0xe0;}' unless defined(&SV_POWERFAIL);
    eval 'sub SV_PF_UNITED () {0x20;}' unless defined(&SV_PF_UNITED);
    eval 'sub SV_PF_SEPARATE () {0x40;}' unless defined(&SV_PF_SEPARATE);
    eval 'sub SV_PF_BBACKUP () {0x60;}' unless defined(&SV_PF_BBACKUP);
    eval 'sub SV_PF_ACTION () {0x100;}' unless defined(&SV_PF_ACTION);
    eval 'sub SV_GRAPHICS () {0x200;}' unless defined(&SV_GRAPHICS);
    eval 'sub SV_ST_MASK () {0xfc00;}' unless defined(&SV_ST_MASK);
    eval 'sub SV_ST_RESERVED () {0x;}' unless defined(&SV_ST_RESERVED);
    eval 'sub SV_ST_SANDPIPER () {0x400;}' unless defined(&SV_ST_SANDPIPER);
    eval 'sub SV_ST_FLAMINGO () {0x800;}' unless defined(&SV_ST_FLAMINGO);
    eval 'sub SV_ST_HOTPINK () {0xc00;}' unless defined(&SV_ST_HOTPINK);
    eval 'sub SV_ST_FLAMINGOPLUS () {0x1000;}' unless defined(&SV_ST_FLAMINGOPLUS);
    eval 'sub SV_ST_ULTRA () {0x1400;}' unless defined(&SV_ST_ULTRA);
    eval 'sub SV_ST_SANDPLUS () {0x1800;}' unless defined(&SV_ST_SANDPLUS);
    eval 'sub SV_ST_SANDPIPER45 () {0x1c00;}' unless defined(&SV_ST_SANDPIPER45);
    eval 'sub SV_ST_FLAMINGO45 () {0x2000;}' unless defined(&SV_ST_FLAMINGO45);
    eval 'sub SV_ST_SABLE () {0x400;}' unless defined(&SV_ST_SABLE);
    eval 'sub SV_ST_PELICAN () {0x;}' unless defined(&SV_ST_PELICAN);
    eval 'sub SV_ST_PELICA () {0x400;}' unless defined(&SV_ST_PELICA);
    eval 'sub SV_ST_PELICANPLUS () {0x800;}' unless defined(&SV_ST_PELICANPLUS);
    eval 'sub SV_ST_PELICAPLUS () {0xc00;}' unless defined(&SV_ST_PELICAPLUS);
    eval 'sub SV_ST_AVANTI () {0x;}' unless defined(&SV_ST_AVANTI);
    eval 'sub SV_ST_MUSTANG2_4_166 () {0x800;}' unless defined(&SV_ST_MUSTANG2_4_166);
    eval 'sub SV_ST_MUSTANG2_4_233 () {0x1000;}' unless defined(&SV_ST_MUSTANG2_4_233);
    eval 'sub SV_ST_AVANTI_XXX () {0x1400;}' unless defined(&SV_ST_AVANTI_XXX);
    eval 'sub SV_ST_AVANTI_4_266 () {0x2000;}' unless defined(&SV_ST_AVANTI_4_266);
    eval 'sub SV_ST_MUSTANG2_4_100 () {0x2400;}' unless defined(&SV_ST_MUSTANG2_4_100);
    eval 'sub SV_ST_AVANTI_4_233 () {0xa800;}' unless defined(&SV_ST_AVANTI_4_233);
    eval 'sub SV_ST_KN20AA () {0x400;}' unless defined(&SV_ST_KN20AA);
    eval 'sub SV_ST_AXPVME_64 () {0x;}' unless defined(&SV_ST_AXPVME_64);
    eval 'sub SV_ST_AXPVME_160 () {0x400;}' unless defined(&SV_ST_AXPVME_160);
    eval 'sub SV_ST_AXPVME_100 () {0xc00;}' unless defined(&SV_ST_AXPVME_100);
    eval 'sub SV_ST_AXPVME_230 () {0x1000;}' unless defined(&SV_ST_AXPVME_230);
    eval 'sub SV_ST_AXPVME_66 () {0x1400;}' unless defined(&SV_ST_AXPVME_66);
    eval 'sub SV_ST_AXPVME_166 () {0x1800;}' unless defined(&SV_ST_AXPVME_166);
    eval 'sub SV_ST_AXPVME_264 () {0x1c00;}' unless defined(&SV_ST_AXPVME_264);
    eval 'sub SV_ST_EB164_266 () {0x400;}' unless defined(&SV_ST_EB164_266);
    eval 'sub SV_ST_EB164_300 () {0x800;}' unless defined(&SV_ST_EB164_300);
    eval 'sub SV_ST_ALPHAPC164_366 () {0xc00;}' unless defined(&SV_ST_ALPHAPC164_366);
    eval 'sub SV_ST_ALPHAPC164_400 () {0x1000;}' unless defined(&SV_ST_ALPHAPC164_400);
    eval 'sub SV_ST_ALPHAPC164_433 () {0x1400;}' unless defined(&SV_ST_ALPHAPC164_433);
    eval 'sub SV_ST_ALPHAPC164_466 () {0x1800;}' unless defined(&SV_ST_ALPHAPC164_466);
    eval 'sub SV_ST_ALPHAPC164_500 () {0x1c00;}' unless defined(&SV_ST_ALPHAPC164_500);
    eval 'sub SV_ST_ALPHAPC164LX_400 () {0x2000;}' unless defined(&SV_ST_ALPHAPC164LX_400);
    eval 'sub SV_ST_ALPHAPC164LX_466 () {0x2400;}' unless defined(&SV_ST_ALPHAPC164LX_466);
    eval 'sub SV_ST_ALPHAPC164LX_533 () {0x2800;}' unless defined(&SV_ST_ALPHAPC164LX_533);
    eval 'sub SV_ST_ALPHAPC164LX_600 () {0x2c00;}' unless defined(&SV_ST_ALPHAPC164LX_600);
    eval 'sub SV_ST_ALPHAPC164SX_400 () {0x3000;}' unless defined(&SV_ST_ALPHAPC164SX_400);
    eval 'sub SV_ST_ALPHAPC164SX_466 () {0x3400;}' unless defined(&SV_ST_ALPHAPC164SX_466);
    eval 'sub SV_ST_ALPHAPC164SX_533 () {0x3800;}' unless defined(&SV_ST_ALPHAPC164SX_533);
    eval 'sub SV_ST_ALPHAPC164SX_600 () {0x3c00;}' unless defined(&SV_ST_ALPHAPC164SX_600);
    eval 'sub SV_ST_MIATA_1_5 () {0x4c00;}' unless defined(&SV_ST_MIATA_1_5);
    eval 'sub LOCATE_PCS {
        my($h,$cpunumber) = @_;
	    eval q(( (($h) + ($h)-> &rpb_pcs_off + (($cpunumber) * ($h)-> &rpb_pcs_size))));
    }' unless defined(&LOCATE_PCS);
    eval 'sub PCS_BIP () {0x1;}' unless defined(&PCS_BIP);
    eval 'sub PCS_RC () {0x2;}' unless defined(&PCS_RC);
    eval 'sub PCS_PA () {0x4;}' unless defined(&PCS_PA);
    eval 'sub PCS_PP () {0x8;}' unless defined(&PCS_PP);
    eval 'sub PCS_OH () {0x10;}' unless defined(&PCS_OH);
    eval 'sub PCS_CV () {0x20;}' unless defined(&PCS_CV);
    eval 'sub PCS_PV () {0x40;}' unless defined(&PCS_PV);
    eval 'sub PCS_PMV () {0x80;}' unless defined(&PCS_PMV);
    eval 'sub PCS_PL () {0x100;}' unless defined(&PCS_PL);
    eval 'sub PCS_HALT_REQ () {0xff0000;}' unless defined(&PCS_HALT_REQ);
    eval 'sub PCS_HALT_DEFAULT () {0x;}' unless defined(&PCS_HALT_DEFAULT);
    eval 'sub PCS_HALT_SAVE_EXIT () {0x10000;}' unless defined(&PCS_HALT_SAVE_EXIT);
    eval 'sub PCS_HALT_COLD_BOOT () {0x20000;}' unless defined(&PCS_HALT_COLD_BOOT);
    eval 'sub PCS_HALT_WARM_BOOT () {0x30000;}' unless defined(&PCS_HALT_WARM_BOOT);
    eval 'sub PCS_HALT_STAY_HALTED () {0x40000;}' unless defined(&PCS_HALT_STAY_HALTED);
    eval 'sub PCS_mbz () {0xffffffffff000000;}' unless defined(&PCS_mbz);
    eval 'sub PAL_TYPE_STANDARD () {0;}' unless defined(&PAL_TYPE_STANDARD);
    eval 'sub PAL_TYPE_VMS () {1;}' unless defined(&PAL_TYPE_VMS);
    eval 'sub PAL_TYPE_OSF1 () {2;}' unless defined(&PAL_TYPE_OSF1);
    eval 'sub pcs_minorrev () { ($pcs_pal_rev->{minorrev});}' unless defined(&pcs_minorrev);
    eval 'sub pcs_majorrev () { ($pcs_pal_rev->{majorrev});}' unless defined(&pcs_majorrev);
    eval 'sub pcs_pal_type () { ($pcs_pal_rev->{pal_type});}' unless defined(&pcs_pal_type);
    eval 'sub pcs_compatibility () { ($pcs_pal_rev->{compatibility});}' unless defined(&pcs_compatibility);
    eval 'sub pcs_proc_cnt () { ($pcs_pal_rev->{proc_cnt});}' unless defined(&pcs_proc_cnt);
    eval 'sub PCS_PROC_EV3 () {1;}' unless defined(&PCS_PROC_EV3);
    eval 'sub PCS_PROC_EV4 () {2;}' unless defined(&PCS_PROC_EV4);
    eval 'sub PCS_PROC_SIMULATION () {3;}' unless defined(&PCS_PROC_SIMULATION);
    eval 'sub PCS_PROC_LCA4 () {4;}' unless defined(&PCS_PROC_LCA4);
    eval 'sub PCS_PROC_EV5 () {5;}' unless defined(&PCS_PROC_EV5);
    eval 'sub PCS_PROC_EV45 () {6;}' unless defined(&PCS_PROC_EV45);
    eval 'sub PCS_PROC_EV56 () {7;}' unless defined(&PCS_PROC_EV56);
    eval 'sub PCS_PROC_EV6 () {8;}' unless defined(&PCS_PROC_EV6);
    eval 'sub PCS_PROC_PCA56 () {9;}' unless defined(&PCS_PROC_PCA56);
    eval 'sub PCS_PROC_PCA57 () {10;}' unless defined(&PCS_PROC_PCA57);
    eval 'sub PCS_PROC_EV67 () {11;}' unless defined(&PCS_PROC_EV67);
    eval 'sub PCS_PROC_EV68CB () {12;}' unless defined(&PCS_PROC_EV68CB);
    eval 'sub PCS_PROC_EV68AL () {13;}' unless defined(&PCS_PROC_EV68AL);
    eval 'sub PCS_PROC_EV68CX () {14;}' unless defined(&PCS_PROC_EV68CX);
    eval 'sub PCS_CPU_MAJORTYPE {
        my($p) = @_;
	    eval q((($p)-> &pcs_proc_type & 0xffffffff));
    }' unless defined(&PCS_CPU_MAJORTYPE);
    eval 'sub PCS_CPU_MINORTYPE {
        my($p) = @_;
	    eval q((($p)-> &pcs_proc_type >> 32));
    }' unless defined(&PCS_CPU_MINORTYPE);
    eval 'sub PCS_VAR_VAXFP () {0x1;}' unless defined(&PCS_VAR_VAXFP);
    eval 'sub PCS_VAR_IEEEFP () {0x2;}' unless defined(&PCS_VAR_IEEEFP);
    eval 'sub PCS_VAR_PE () {0x4;}' unless defined(&PCS_VAR_PE);
    eval 'sub PCS_VAR_RESERVED () {0xfffffffffffffff8;}' unless defined(&PCS_VAR_RESERVED);
    eval 'sub PCS_HALT_RESERVED () {0;}' unless defined(&PCS_HALT_RESERVED);
    eval 'sub PCS_HALT_POWERUP () {1;}' unless defined(&PCS_HALT_POWERUP);
    eval 'sub PCS_HALT_CONSOLE_HALT () {2;}' unless defined(&PCS_HALT_CONSOLE_HALT);
    eval 'sub PCS_HALT_CONSOLE_CRASH () {3;}' unless defined(&PCS_HALT_CONSOLE_CRASH);
    eval 'sub PCS_HALT_KERNEL_MODE () {4;}' unless defined(&PCS_HALT_KERNEL_MODE);
    eval 'sub PCS_HALT_KERNEL_STACK_INVALID () {5;}' unless defined(&PCS_HALT_KERNEL_STACK_INVALID);
    eval 'sub PCS_HALT_DOUBLE_ERROR_ABORT () {6;}' unless defined(&PCS_HALT_DOUBLE_ERROR_ABORT);
    eval 'sub PCS_HALT_SCBB () {7;}' unless defined(&PCS_HALT_SCBB);
    eval 'sub PCS_HALT_PTBR () {8;}' unless defined(&PCS_HALT_PTBR);
    eval 'sub PALvar_reserved () {0;}' unless defined(&PALvar_reserved);
    eval 'sub PALvar_OpenVMS () {1;}' unless defined(&PALvar_OpenVMS);
    eval 'sub PALvar_OSF1 () {2;}' unless defined(&PALvar_OSF1);
    eval 'sub CTB_NONE () {0x;}' unless defined(&CTB_NONE);
    eval 'sub CTB_SERVICE () {0x1;}' unless defined(&CTB_SERVICE);
    eval 'sub CTB_PRINTERPORT () {0x2;}' unless defined(&CTB_PRINTERPORT);
    eval 'sub CTB_GRAPHICS () {0x3;}' unless defined(&CTB_GRAPHICS);
    eval 'sub CTB_TYPE4 () {0x4;}' unless defined(&CTB_TYPE4);
    eval 'sub CTB_NETWORK () {0xc0;}' unless defined(&CTB_NETWORK);
    eval 'sub CTB_TURBOSLOT_CHANNEL {
        my($x) = @_;
	    eval q(((($x) >> 32) & 0xff));
    }' unless defined(&CTB_TURBOSLOT_CHANNEL);
    eval 'sub CTB_TURBOSLOT_HOSE {
        my($x) = @_;
	    eval q(((($x) >> 24) & 0xff));
    }' unless defined(&CTB_TURBOSLOT_HOSE);
    eval 'sub CTB_TURBOSLOT_TYPE {
        my($x) = @_;
	    eval q(((($x) >> 16) & 0xff));
    }' unless defined(&CTB_TURBOSLOT_TYPE);
    eval 'sub CTB_TURBOSLOT_BUS {
        my($x) = @_;
	    eval q(((($x) >> 8) & 0xff));
    }' unless defined(&CTB_TURBOSLOT_BUS);
    eval 'sub CTB_TURBOSLOT_SLOT {
        my($x) = @_;
	    eval q((($x) & 0xff));
    }' unless defined(&CTB_TURBOSLOT_SLOT);
    eval 'sub CTB_TURBOSLOT_TYPE_TC () {0;}' unless defined(&CTB_TURBOSLOT_TYPE_TC);
    eval 'sub CTB_TURBOSLOT_TYPE_ISA () {1;}' unless defined(&CTB_TURBOSLOT_TYPE_ISA);
    eval 'sub CTB_TURBOSLOT_TYPE_EISA () {2;}' unless defined(&CTB_TURBOSLOT_TYPE_EISA);
    eval 'sub CTB_TURBOSLOT_TYPE_PCI () {3;}' unless defined(&CTB_TURBOSLOT_TYPE_PCI);
    eval 'sub MDDT_NONVOLATILE () {0x2;}' unless defined(&MDDT_NONVOLATILE);
    eval 'sub MDDT_PALCODE () {0x1;}' unless defined(&MDDT_PALCODE);
    eval 'sub MDDT_SYSTEM () {0x;}' unless defined(&MDDT_SYSTEM);
    eval 'sub MDDT_mbz () {0xfffffffffffffffc;}' unless defined(&MDDT_mbz);
    eval 'sub HWRPB_DSRDB_MINVERS () {5;}' unless defined(&HWRPB_DSRDB_MINVERS);
    if(defined(&_KERNEL)) {
    }
}
1;
