require '_h2ph_pre.ph';

unless(defined(&_CYCX_DRV_H)) {
    eval 'sub _CYCX_DRV_H () {1;}' unless defined(&_CYCX_DRV_H);
    eval 'sub CYCX_WINDOWSIZE () {0x4000;}' unless defined(&CYCX_WINDOWSIZE);
    eval 'sub GEN_CYCX_INTR () {0x2;}' unless defined(&GEN_CYCX_INTR);
    eval 'sub RST_ENABLE () {0x4;}' unless defined(&RST_ENABLE);
    eval 'sub START_CPU () {0x6;}' unless defined(&START_CPU);
    eval 'sub RST_DISABLE () {0x8;}' unless defined(&RST_DISABLE);
    eval 'sub FIXED_BUFFERS () {0x8;}' unless defined(&FIXED_BUFFERS);
    eval 'sub TEST_PATTERN () {0xaa55;}' unless defined(&TEST_PATTERN);
    eval 'sub CMD_OFFSET () {0x20;}' unless defined(&CMD_OFFSET);
    eval 'sub CONF_OFFSET () {0x380;}' unless defined(&CONF_OFFSET);
    eval 'sub RESET_OFFSET () {0x3c00;}' unless defined(&RESET_OFFSET);
    eval 'sub DATA_OFFSET () {0x100;}' unless defined(&DATA_OFFSET);
    eval 'sub START_OFFSET () {0x3ff0;}' unless defined(&START_OFFSET);
    unless(defined(&MIN)) {
	eval 'sub MIN {
	    local($a,$b) = @_;
    	    eval q((($a) < ($b) ? ($a) : ($b)));
	}' unless defined(&MIN);
    }
}
1;
