require '_h2ph_pre.ph';

unless(defined(&SIS_TIM)) {
    sub SIS_TIM {
	local($channel) = @_;
	eval q((0x40 + ($channel * 4)));
    }
}
unless(defined(&SIS_TIM_REC_OFF)) {
    sub SIS_TIM_REC_OFF {
	local($drive) = @_;
	eval q((16* ($drive)));
    }
}
unless(defined(&SIS_TIM_ACT_OFF)) {
    sub SIS_TIM_ACT_OFF {
	local($drive) = @_;
	eval q((8+ 16* ($drive)));
    }
}
unless(defined(&SIS_TIM_UDMA_TIME_OFF)) {
    sub SIS_TIM_UDMA_TIME_OFF {
	local($drive) = @_;
	eval q((13+ 16* ($drive)));
    }
}
unless(defined(&SIS_TIM_UDMA_EN)) {
    sub SIS_TIM_UDMA_EN {
	local($drive) = @_;
	eval q((1<< (15+ 16* ($drive))));
    }
}
unless(defined(&SIS_CTRL0)) {
    sub SIS_CTRL0 () {	0x4a;}
}
unless(defined(&SIS_CTRL0_PCIBURST)) {
    sub SIS_CTRL0_PCIBURST () {	0x80;}
}
unless(defined(&SIS_CTRL0_FAST_PW)) {
    sub SIS_CTRL0_FAST_PW () {	0x20;}
}
unless(defined(&SIS_CTRL0_BO)) {
    sub SIS_CTRL0_BO () {	0x8;}
}
unless(defined(&SIS_CTRL0_CHAN0_EN)) {
    sub SIS_CTRL0_CHAN0_EN () {	0x2;}
}
unless(defined(&SIS_CTRL0_CHAN1_EN)) {
    sub SIS_CTRL0_CHAN1_EN () {	0x4;}
}
unless(defined(&SIS_CTRL1)) {
    sub SIS_CTRL1 () {	0x4b;}
}
unless(defined(&SIS_CTRL1_POSTW_EN)) {
    sub SIS_CTRL1_POSTW_EN {
	local($chan, $drv) = @_;
	eval q((0x10 << (($drv) + 2* ($chan))));
    }
}
unless(defined(&SIS_CTRL1_PREFETCH_EN)) {
    sub SIS_CTRL1_PREFETCH_EN {
	local($chan, $drv) = @_;
	eval q((0x1 << (($drv) + 2* ($chan))));
    }
}
unless(defined(&SIS_MISC)) {
    sub SIS_MISC () {	0x52;}
}
unless(defined(&SIS_MISC_TIM_SEL)) {
    sub SIS_MISC_TIM_SEL () {	0x8;}
}
unless(defined(&SIS_MISC_GTC)) {
    sub SIS_MISC_GTC () {	0x4;}
}
unless(defined(&SIS_MISC_FIFO_SIZE)) {
    sub SIS_MISC_FIFO_SIZE () {	0x1;}
}
if(defined(&unused)) {
}
1;
