require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&IBM525_REVISION)) {
    sub IBM525_REVISION () {	0x;}
}
unless(defined(&IBM525_ID)) {
    sub IBM525_ID () {	0x1;}
}
unless(defined(&IBM525_MISC_CLOCK)) {
    sub IBM525_MISC_CLOCK () {	0x2;}
}
unless(defined(&MC_B24P_PLL)) {
    sub MC_B24P_PLL () {	0x;}
}
unless(defined(&MC_B24P_SCLK)) {
    sub MC_B24P_SCLK () {	0x20;}
}
unless(defined(&MC_DDOT_DIV_1)) {
    sub MC_DDOT_DIV_1 () {	0x;}
}
unless(defined(&MC_DDOT_DIV_2)) {
    sub MC_DDOT_DIV_2 () {	0x2;}
}
unless(defined(&MC_DDOT_DIV_4)) {
    sub MC_DDOT_DIV_4 () {	0x4;}
}
unless(defined(&MC_DDOT_DIV_8)) {
    sub MC_DDOT_DIV_8 () {	0x6;}
}
unless(defined(&MC_DDOT_DIV_16)) {
    sub MC_DDOT_DIV_16 () {	0x8;}
}
unless(defined(&MC_DDOT_DIV_MASK)) {
    sub MC_DDOT_DIV_MASK () {	0xe;}
}
unless(defined(&MC_PLL_ENABLE)) {
    sub MC_PLL_ENABLE () {	0x1;}
}
unless(defined(&IBM525_SYNC)) {
    sub IBM525_SYNC () {	0x3;}
}
unless(defined(&S_CSYN_INVERT)) {
    sub S_CSYN_INVERT () {	0x40;}
}
unless(defined(&S_VSYN_INVERT)) {
    sub S_VSYN_INVERT () {	0x20;}
}
unless(defined(&S_HSYN_INVERT)) {
    sub S_HSYN_INVERT () {	0x10;}
}
unless(defined(&S_VSYN_NORMAL)) {
    sub S_VSYN_NORMAL () {	0x;}
}
unless(defined(&S_VSYN_HIGH)) {
    sub S_VSYN_HIGH () {	0x4;}
}
unless(defined(&S_VSYN_LOW)) {
    sub S_VSYN_LOW () {	0x8;}
}
unless(defined(&S_VSYN_DISABLE)) {
    sub S_VSYN_DISABLE () {	0xc;}
}
unless(defined(&S_VSYN_MASK)) {
    sub S_VSYN_MASK () {	0xc;}
}
unless(defined(&S_HSYN_NORMAL)) {
    sub S_HSYN_NORMAL () {	0x;}
}
unless(defined(&S_HSYN_HIGH)) {
    sub S_HSYN_HIGH () {	0x1;}
}
unless(defined(&S_HSYN_LOW)) {
    sub S_HSYN_LOW () {	0x2;}
}
unless(defined(&S_HSYN_DISABLE)) {
    sub S_HSYN_DISABLE () {	0x3;}
}
unless(defined(&S_HSYN_MASK)) {
    sub S_HSYN_MASK () {	0x3;}
}
unless(defined(&IBM525_HSYNC_POS)) {
    sub IBM525_HSYNC_POS () {	0x4;}
}
unless(defined(&IBM525_POWER)) {
    sub IBM525_POWER () {	0x5;}
}
unless(defined(&P_SCLK_DISABLE)) {
    sub P_SCLK_DISABLE () {	0x10;}
}
unless(defined(&P_DDOT_DISABLE)) {
    sub P_DDOT_DISABLE () {	0x8;}
}
unless(defined(&P_SYNC_DISABLE)) {
    sub P_SYNC_DISABLE () {	0x4;}
}
unless(defined(&P_ICLK_DISABLE)) {
    sub P_ICLK_DISABLE () {	0x2;}
}
unless(defined(&P_DAC_PWR_DISABLE)) {
    sub P_DAC_PWR_DISABLE () {	0x1;}
}
unless(defined(&IBM525_DAC_OP)) {
    sub IBM525_DAC_OP () {	0x6;}
}
unless(defined(&DO_SOG)) {
    sub DO_SOG () {	0x8;}
}
unless(defined(&DO_FAST_SLEW)) {
    sub DO_FAST_SLEW () {	0x2;}
}
unless(defined(&DO_BLANK_BR)) {
    sub DO_BLANK_BR () {	0x4;}
}
unless(defined(&DO_PEDESTAL)) {
    sub DO_PEDESTAL () {	0x1;}
}
unless(defined(&IBM525_PALETTE)) {
    sub IBM525_PALETTE () {	0x7;}
}
unless(defined(&IBM525_SYSCLK)) {
    sub IBM525_SYSCLK () {	0x8;}
}
unless(defined(&SC_ENABLE)) {
    sub SC_ENABLE () {	0x1;}
}
unless(defined(&IBM525_PIXEL)) {
    sub IBM525_PIXEL () {	0xa;}
}
unless(defined(&PIX_4BPP)) {
    sub PIX_4BPP () {	0x2;}
}
unless(defined(&PIX_8BPP)) {
    sub PIX_8BPP () {	0x3;}
}
unless(defined(&PIX_16BPP)) {
    sub PIX_16BPP () {	0x4;}
}
unless(defined(&PIX_24BPP)) {
    sub PIX_24BPP () {	0x5;}
}
unless(defined(&PIX_32BPP)) {
    sub PIX_32BPP () {	0x6;}
}
unless(defined(&IBM525_PF8)) {
    sub IBM525_PF8 () {	0xb;}
}
unless(defined(&PF8_INDIRECT)) {
    sub PF8_INDIRECT () {	0x;}
}
unless(defined(&PF8_DIRECT)) {
    sub PF8_DIRECT () {	0x1;}
}
unless(defined(&IBM525_PF16)) {
    sub IBM525_PF16 () {	0xc;}
}
unless(defined(&PF16_INDIRECT)) {
    sub PF16_INDIRECT () {	0x;}
}
unless(defined(&PF16_DIRECT)) {
    sub PF16_DIRECT () {	0xc0;}
}
unless(defined(&PF16_LINEAR)) {
    sub PF16_LINEAR () {	0x4;}
}
unless(defined(&PF16_555)) {
    sub PF16_555 () {	0x;}
}
unless(defined(&PF16_565)) {
    sub PF16_565 () {	0x2;}
}
unless(defined(&IBM525_PF24)) {
    sub IBM525_PF24 () {	0xd;}
}
unless(defined(&PF24_INDIRECT)) {
    sub PF24_INDIRECT () {	0x;}
}
unless(defined(&PF24_DIRECT)) {
    sub PF24_DIRECT () {	0x1;}
}
unless(defined(&IBM525_PF32)) {
    sub IBM525_PF32 () {	0xe;}
}
unless(defined(&PF32_INDIRECT)) {
    sub PF32_INDIRECT () {	0x;}
}
unless(defined(&PF32_DIRECT)) {
    sub PF32_DIRECT () {	0x3;}
}
unless(defined(&PF32_BYPASS)) {
    sub PF32_BYPASS () {	0x;}
}
unless(defined(&PF32_LOOKUP)) {
    sub PF32_LOOKUP () {	0x4;}
}
unless(defined(&IBM525_PLL1)) {
    sub IBM525_PLL1 () {	0x10;}
}
unless(defined(&P1_CLK_REF)) {
    sub P1_CLK_REF () {	0x;}
}
unless(defined(&P1_CLK_EXT)) {
    sub P1_CLK_EXT () {	0x10;}
}
unless(defined(&P1_SRC_EXT_F)) {
    sub P1_SRC_EXT_F () {	0x;}
}
unless(defined(&P1_SRC_EXT_MN)) {
    sub P1_SRC_EXT_MN () {	0x1;}
}
unless(defined(&P1_SRC_DIRECT_F)) {
    sub P1_SRC_DIRECT_F () {	0x2;}
}
unless(defined(&P1_SRC_DIRECT_MN)) {
    sub P1_SRC_DIRECT_MN () {	0x3;}
}
unless(defined(&IBM525_PLL2)) {
    sub IBM525_PLL2 () {	0x11;}
}
unless(defined(&IBM525_PLL_FIXED_REF)) {
    sub IBM525_PLL_FIXED_REF () {	0x14;}
}
unless(defined(&IBM525_PLL_REF_DIV)) {
    sub IBM525_PLL_REF_DIV () {	0x15;}
}
unless(defined(&IBM525_PLL_VCO_DIV)) {
    sub IBM525_PLL_VCO_DIV () {	0x16;}
}
unless(defined(&IBM525_F)) {
    sub IBM525_F {
	my($n) = @_;
	eval q((0x20 + ($n)));
    }
}
unless(defined(&IBM525_MISC1)) {
    sub IBM525_MISC1 () {	0x70;}
}
unless(defined(&M1_VRAM_32)) {
    sub M1_VRAM_32 () {	0x;}
}
unless(defined(&M1_VRAM_64)) {
    sub M1_VRAM_64 () {	0x1;}
}
unless(defined(&M1_VRAM_SIZE_MASK)) {
    sub M1_VRAM_SIZE_MASK () {	0x1;}
}
unless(defined(&M1_SENSE_DISABLE)) {
    sub M1_SENSE_DISABLE () {	0x10;}
}
unless(defined(&IBM525_MISC2)) {
    sub IBM525_MISC2 () {	0x71;}
}
unless(defined(&M2_PCLK_LOCAL)) {
    sub M2_PCLK_LOCAL () {	0x;}
}
unless(defined(&M2_PCLK_PLL)) {
    sub M2_PCLK_PLL () {	0x40;}
}
unless(defined(&M2_PCLK_EXT)) {
    sub M2_PCLK_EXT () {	0x80;}
}
unless(defined(&M2_PCLK_MASK)) {
    sub M2_PCLK_MASK () {	0xc0;}
}
unless(defined(&M2_PALETTE_6)) {
    sub M2_PALETTE_6 () {	0x;}
}
unless(defined(&M2_PALETTE_8)) {
    sub M2_PALETTE_8 () {	0x4;}
}
unless(defined(&M2_PALETTE_MASK)) {
    sub M2_PALETTE_MASK () {	0x4;}
}
unless(defined(&M2_MODE_VRAM)) {
    sub M2_MODE_VRAM () {	0x1;}
}
unless(defined(&M2_MODE_VGA)) {
    sub M2_MODE_VGA () {	0x;}
}
unless(defined(&M2_MODE_MASK)) {
    sub M2_MODE_MASK () {	0x1;}
}
unless(defined(&IBM525_MISC3)) {
    sub IBM525_MISC3 () {	0x72;}
}
unless(defined(&M3_SWAP_BR)) {
    sub M3_SWAP_BR () {	0x80;}
}
unless(defined(&M3_SWAP_WORDS)) {
    sub M3_SWAP_WORDS () {	0x10;}
}
unless(defined(&M3_SWAP_NIBBLES)) {
    sub M3_SWAP_NIBBLES () {	0x2;}
}
unless(defined(&IBM525_MISC4)) {
    sub IBM525_MISC4 () {	0x73;}
}
unless(defined(&M4_INVERT_DCLK)) {
    sub M4_INVERT_DCLK () {	0x10;}
}
unless(defined(&M4_FAST)) {
    sub M4_FAST () {	0x20;}
}
unless(defined(&MHZ_TO_PLL)) {
    sub MHZ_TO_PLL {
	my($m) = @_;
	eval q(($m) < 32? 0x | (4* ($m) - 65) : ($m) < 64? 0x40 | (2* ($m) - 65) : ($m) < 128? 0x80 | (($m) - 65) : 0xc0 | (($m) / 2- 65));
    }
}
1;
