require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_PCI_PCIIDE_CY693_REG_H_)) {
    eval 'sub _DEV_PCI_PCIIDE_CY693_REG_H_ () {1;}' unless defined(&_DEV_PCI_PCIIDE_CY693_REG_H_);
    eval 'sub CY_CTRL () {0x40;}' unless defined(&CY_CTRL);
    eval 'sub CY_CTRL_RETRY () {0x2000;}' unless defined(&CY_CTRL_RETRY);
    eval 'sub CY_CTRL_SLAVE_PREFETCH () {0x400;}' unless defined(&CY_CTRL_SLAVE_PREFETCH);
    eval 'sub CY_CTRL_POSTWRITE () {0x200;}' unless defined(&CY_CTRL_POSTWRITE);
    eval 'sub CY_CTRL_PREFETCH {
        my($drive) = @_;
	    eval q((0x100 << (2* ($drive))));
    }' unless defined(&CY_CTRL_PREFETCH);
    eval 'sub CY_CTRL_POSTWRITE_LENGTH_MASK () {0x30;}' unless defined(&CY_CTRL_POSTWRITE_LENGTH_MASK);
    eval 'sub CY_CTRL_POSTWRITE_LENGTH_OFF () {4;}' unless defined(&CY_CTRL_POSTWRITE_LENGTH_OFF);
    eval 'sub CY_CTRL_PREFETCH_LENGTH_MASK () {0x3;}' unless defined(&CY_CTRL_PREFETCH_LENGTH_MASK);
    eval 'sub CY_CTRL_PREFETCH_LENGTH_OFF () {0;}' unless defined(&CY_CTRL_PREFETCH_LENGTH_OFF);
    eval 'sub CY_ADDR_CTRL () {0x48;}' unless defined(&CY_ADDR_CTRL);
    eval 'sub CY_ADDR_CTRL_SETUP_OFF {
        my($drive) = @_;
	    eval q((4* ($drive)));
    }' unless defined(&CY_ADDR_CTRL_SETUP_OFF);
    eval 'sub CY_ADDR_CTRL_SETUP_MASK {
        my($drive) = @_;
	    eval q((0x7 <<  &CY_ADDR_CTRL_SETUP_OFF($drive)));
    }' unless defined(&CY_ADDR_CTRL_SETUP_MASK);
    eval 'sub CY_CMD_CTRL () {0x4c;}' unless defined(&CY_CMD_CTRL);
    eval 'sub CY_CMD_CTRL_IOW_PULSE_OFF {
        my($drive) = @_;
	    eval q((12+ 16* ($drive)));
    }' unless defined(&CY_CMD_CTRL_IOW_PULSE_OFF);
    eval 'sub CY_CMD_CTRL_IOW_REC_OFF {
        my($drive) = @_;
	    eval q((8+ 16* ($drive)));
    }' unless defined(&CY_CMD_CTRL_IOW_REC_OFF);
    eval 'sub CY_CMD_CTRL_IOR_PULSE_OFF {
        my($drive) = @_;
	    eval q((4+ 16* ($drive)));
    }' unless defined(&CY_CMD_CTRL_IOR_PULSE_OFF);
    eval 'sub CY_CMD_CTRL_IOR_REC_OFF {
        my($drive) = @_;
	    eval q((0+ 16* ($drive)));
    }' unless defined(&CY_CMD_CTRL_IOR_REC_OFF);
    if(defined(&unused)) {
    }
    eval 'sub CY_DMA_ADDR () {0x22;}' unless defined(&CY_DMA_ADDR);
    eval 'sub CY_DMA_SIZE () {0x2;}' unless defined(&CY_DMA_SIZE);
    eval 'sub CY_DMA_IDX () {0x;}' unless defined(&CY_DMA_IDX);
    eval 'sub CY_DMA_IDX_PRIMARY () {0x30;}' unless defined(&CY_DMA_IDX_PRIMARY);
    eval 'sub CY_DMA_IDX_SECONDARY () {0x31;}' unless defined(&CY_DMA_IDX_SECONDARY);
    eval 'sub CY_DMA_IDX_TIMEOUT () {0x32;}' unless defined(&CY_DMA_IDX_TIMEOUT);
    eval 'sub CY_DMA_DATA () {0x1;}' unless defined(&CY_DMA_DATA);
    eval 'sub CY_DMA_DATA_MODE_MASK () {0x3;}' unless defined(&CY_DMA_DATA_MODE_MASK);
    eval 'sub CY_DMA_DATA_SINGLE () {0x4;}' unless defined(&CY_DMA_DATA_SINGLE);
}
1;
