require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SCSI_SCSI_DISK_H)) {
    eval 'sub _SCSI_SCSI_DISK_H () {1;}' unless defined(&_SCSI_SCSI_DISK_H);
    eval 'sub FORMAT_UNIT () {0x4;}' unless defined(&FORMAT_UNIT);
    eval 'sub SFU_DLF_MASK () {0x7;}' unless defined(&SFU_DLF_MASK);
    eval 'sub SFU_CMPLST () {0x8;}' unless defined(&SFU_CMPLST);
    eval 'sub SFU_FMTDATA () {0x10;}' unless defined(&SFU_FMTDATA);
    eval 'sub DLH_VS () {0x1;}' unless defined(&DLH_VS);
    eval 'sub DLH_IMMED () {0x2;}' unless defined(&DLH_IMMED);
    eval 'sub DLH_DSP () {0x4;}' unless defined(&DLH_DSP);
    eval 'sub DLH_IP () {0x8;}' unless defined(&DLH_IP);
    eval 'sub DLH_STPF () {0x10;}' unless defined(&DLH_STPF);
    eval 'sub DLH_DCRT () {0x20;}' unless defined(&DLH_DCRT);
    eval 'sub DLH_DPRY () {0x40;}' unless defined(&DLH_DPRY);
    eval 'sub DLH_FOV () {0x80;}' unless defined(&DLH_FOV);
    eval 'sub IP_TYPE_DEFAULT () {0x1;}' unless defined(&IP_TYPE_DEFAULT);
    eval 'sub IP_TYPE_REPEAT () {0x1;}' unless defined(&IP_TYPE_REPEAT);
    if(0) {
    }
    eval 'sub REZERO_UNIT () {0x1;}' unless defined(&REZERO_UNIT);
    eval 'sub SRW_TOPADDR () {0x1f;}' unless defined(&SRW_TOPADDR);
    eval 'sub SRWB_RELADDR () {0x1;}' unless defined(&SRWB_RELADDR);
    eval 'sub SSS_STOP () {0x;}' unless defined(&SSS_STOP);
    eval 'sub SSS_START () {0x1;}' unless defined(&SSS_START);
    eval 'sub SSS_LOEJ () {0x2;}' unless defined(&SSS_LOEJ);
    eval 'sub SYNCHRONIZE_CACHE () {0x35;}' unless defined(&SYNCHRONIZE_CACHE);
    eval 'sub SSC_RELADR () {0x1;}' unless defined(&SSC_RELADR);
    eval 'sub SSC_IMMED () {0x2;}' unless defined(&SSC_IMMED);
    eval 'sub REASSIGN_BLOCKS () {0x7;}' unless defined(&REASSIGN_BLOCKS);
    eval 'sub READ_COMMAND () {0x8;}' unless defined(&READ_COMMAND);
    eval 'sub WRITE_COMMAND () {0xa;}' unless defined(&WRITE_COMMAND);
    eval 'sub READ_CAPACITY () {0x25;}' unless defined(&READ_CAPACITY);
    eval 'sub READ_BIG () {0x28;}' unless defined(&READ_BIG);
    eval 'sub WRITE_BIG () {0x2a;}' unless defined(&WRITE_BIG);
    eval 'sub SYNCHRONIZE_CACHE () {0x35;}' unless defined(&SYNCHRONIZE_CACHE);
    eval 'sub DISK_PGCODE {
        my($pg, $n) = @_;
	    eval q((($pg) !=  &NULL)  && ((($pg)-> &pg_code & 0x3f) == $n));
    }' unless defined(&DISK_PGCODE);
    eval 'sub PAGE_DISK_FORMAT () {3;}' unless defined(&PAGE_DISK_FORMAT);
    eval 'sub PAGE_RIGID_GEOMETRY () {4;}' unless defined(&PAGE_RIGID_GEOMETRY);
    eval 'sub PAGE_FLEX_GEOMETRY () {5;}' unless defined(&PAGE_FLEX_GEOMETRY);
    eval 'sub PAGE_REDUCED_GEOMETRY () {6;}' unless defined(&PAGE_REDUCED_GEOMETRY);
    eval 'sub DISK_FMT_SURF () {0x10;}' unless defined(&DISK_FMT_SURF);
    eval 'sub DISK_FMT_RMB () {0x20;}' unless defined(&DISK_FMT_RMB);
    eval 'sub DISK_FMT_HSEC () {0x40;}' unless defined(&DISK_FMT_HSEC);
    eval 'sub DISK_FMT_SSEC () {0x80;}' unless defined(&DISK_FMT_SSEC);
    eval 'sub SPINDLE_SYNCH_MASK () {0x3;}' unless defined(&SPINDLE_SYNCH_MASK);
    eval 'sub SPINDLE_SYNCH_NONE () {0x;}' unless defined(&SPINDLE_SYNCH_NONE);
    eval 'sub SPINDLE_SYNCH_SLAVE () {0x1;}' unless defined(&SPINDLE_SYNCH_SLAVE);
    eval 'sub SPINDLE_SYNCH_MASTER () {0x2;}' unless defined(&SPINDLE_SYNCH_MASTER);
    eval 'sub SPINDLE_SYNCH_MCONTROL () {0x3;}' unless defined(&SPINDLE_SYNCH_MCONTROL);
    eval 'sub MOTOR_ON () {0x20;}' unless defined(&MOTOR_ON);
    eval 'sub START_AT_SECTOR_1 () {0x40;}' unless defined(&START_AT_SECTOR_1);
    eval 'sub READY_VALID () {0x20;}' unless defined(&READY_VALID);
    eval 'sub LOCK_DISABLED () {0x1;}' unless defined(&LOCK_DISABLED);
    eval 'sub FORMAT_DISABLED () {0x2;}' unless defined(&FORMAT_DISABLED);
    eval 'sub WRITE_DISABLED () {0x4;}' unless defined(&WRITE_DISABLED);
    eval 'sub READ_DISABLED () {0x8;}' unless defined(&READ_DISABLED);
}
1;
