require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_SCSIPI_SCSIPI_ALL_H_)) {
    eval 'sub _DEV_SCSIPI_SCSIPI_ALL_H_ () {1;}' unless defined(&_DEV_SCSIPI_SCSIPI_ALL_H_);
    eval 'sub CDB_GROUPID {
        my($cmd) = @_;
	    eval q((($cmd >> 5) & 0x7));
    }' unless defined(&CDB_GROUPID);
    eval 'sub CDB_GROUPID_0 () {0;}' unless defined(&CDB_GROUPID_0);
    eval 'sub CDB_GROUPID_1 () {1;}' unless defined(&CDB_GROUPID_1);
    eval 'sub CDB_GROUPID_2 () {2;}' unless defined(&CDB_GROUPID_2);
    eval 'sub CDB_GROUPID_3 () {3;}' unless defined(&CDB_GROUPID_3);
    eval 'sub CDB_GROUPID_4 () {4;}' unless defined(&CDB_GROUPID_4);
    eval 'sub CDB_GROUPID_5 () {5;}' unless defined(&CDB_GROUPID_5);
    eval 'sub CDB_GROUPID_6 () {6;}' unless defined(&CDB_GROUPID_6);
    eval 'sub CDB_GROUPID_7 () {7;}' unless defined(&CDB_GROUPID_7);
    eval 'sub CDB_GROUP0 () {6;}' unless defined(&CDB_GROUP0);
    eval 'sub CDB_GROUP1 () {10;}' unless defined(&CDB_GROUP1);
    eval 'sub CDB_GROUP2 () {10;}' unless defined(&CDB_GROUP2);
    eval 'sub CDB_GROUP3 () {0;}' unless defined(&CDB_GROUP3);
    eval 'sub CDB_GROUP4 () {16;}' unless defined(&CDB_GROUP4);
    eval 'sub CDB_GROUP5 () {12;}' unless defined(&CDB_GROUP5);
    eval 'sub CDB_GROUP6 () {0;}' unless defined(&CDB_GROUP6);
    eval 'sub CDB_GROUP7 () {0;}' unless defined(&CDB_GROUP7);
    eval 'sub INQUIRY () {0x12;}' unless defined(&INQUIRY);
    eval 'sub START_STOP () {0x1b;}' unless defined(&START_STOP);
    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 T_REMOV () {1;}' unless defined(&T_REMOV);
    eval 'sub T_FIXED () {0;}' unless defined(&T_FIXED);
    eval 'sub SID_TYPE () {0x1f;}' unless defined(&SID_TYPE);
    eval 'sub SID_QUAL () {0xe0;}' unless defined(&SID_QUAL);
    eval 'sub SID_QUAL_LU_PRESENT () {0x;}' unless defined(&SID_QUAL_LU_PRESENT);
    eval 'sub SID_QUAL_LU_NOTPRESENT () {0x20;}' unless defined(&SID_QUAL_LU_NOTPRESENT);
    eval 'sub SID_QUAL_reserved () {0x40;}' unless defined(&SID_QUAL_reserved);
    eval 'sub SID_QUAL_LU_NOT_SUPP () {0x60;}' unless defined(&SID_QUAL_LU_NOT_SUPP);
    eval 'sub T_DIRECT () {0x;}' unless defined(&T_DIRECT);
    eval 'sub T_SEQUENTIAL () {0x1;}' unless defined(&T_SEQUENTIAL);
    eval 'sub T_PRINTER () {0x2;}' unless defined(&T_PRINTER);
    eval 'sub T_PROCESSOR () {0x3;}' unless defined(&T_PROCESSOR);
    eval 'sub T_WORM () {0x4;}' unless defined(&T_WORM);
    eval 'sub T_CDROM () {0x5;}' unless defined(&T_CDROM);
    eval 'sub T_SCANNER () {0x6;}' unless defined(&T_SCANNER);
    eval 'sub T_OPTICAL () {0x7;}' unless defined(&T_OPTICAL);
    eval 'sub T_CHANGER () {0x8;}' unless defined(&T_CHANGER);
    eval 'sub T_COMM () {0x9;}' unless defined(&T_COMM);
    eval 'sub T_IT8_1 () {0xa;}' unless defined(&T_IT8_1);
    eval 'sub T_IT8_2 () {0xb;}' unless defined(&T_IT8_2);
    eval 'sub T_STORARRAY () {0xc;}' unless defined(&T_STORARRAY);
    eval 'sub T_ENCLOSURE () {0xd;}' unless defined(&T_ENCLOSURE);
    eval 'sub T_SIMPLE_DIRECT () {0xe;}' unless defined(&T_SIMPLE_DIRECT);
    eval 'sub T_OPTIC_CARD_RW () {0xf;}' unless defined(&T_OPTIC_CARD_RW);
    eval 'sub T_OBJECT_STORED () {0x11;}' unless defined(&T_OBJECT_STORED);
    eval 'sub T_NODEVICE () {0x1f;}' unless defined(&T_NODEVICE);
    eval 'sub SID_QUAL2 () {0x7f;}' unless defined(&SID_QUAL2);
    eval 'sub SID_REMOVABLE () {0x80;}' unless defined(&SID_REMOVABLE);
    eval 'sub SID_ANSII () {0x7;}' unless defined(&SID_ANSII);
    eval 'sub SID_ECMA () {0x38;}' unless defined(&SID_ECMA);
    eval 'sub SID_ISO () {0xc0;}' unless defined(&SID_ISO);
    eval 'sub SID_RespDataFmt () {0xf;}' unless defined(&SID_RespDataFmt);
    eval 'sub SID_FORMAT_SCSI1 () {0x;}' unless defined(&SID_FORMAT_SCSI1);
    eval 'sub SID_FORMAT_CCS () {0x1;}' unless defined(&SID_FORMAT_CCS);
    eval 'sub SID_FORMAT_ISO () {0x2;}' unless defined(&SID_FORMAT_ISO);
    eval 'sub SID_SCC () {0x80;}' unless defined(&SID_SCC);
    eval 'sub SID_Addr16 () {0x1;}' unless defined(&SID_Addr16);
    eval 'sub SID_MChngr () {0x8;}' unless defined(&SID_MChngr);
    eval 'sub SID_MultiPort () {0x10;}' unless defined(&SID_MultiPort);
    eval 'sub SID_EncServ () {0x40;}' unless defined(&SID_EncServ);
    eval 'sub SID_BasQue () {0x80;}' unless defined(&SID_BasQue);
    eval 'sub SID_SftRe () {0x1;}' unless defined(&SID_SftRe);
    eval 'sub SID_CmdQue () {0x2;}' unless defined(&SID_CmdQue);
    eval 'sub SID_Linked () {0x8;}' unless defined(&SID_Linked);
    eval 'sub SID_Sync () {0x10;}' unless defined(&SID_Sync);
    eval 'sub SID_WBus16 () {0x20;}' unless defined(&SID_WBus16);
    eval 'sub SID_WBus32 () {0x40;}' unless defined(&SID_WBus32);
    eval 'sub SID_RelAdr () {0x80;}' unless defined(&SID_RelAdr);
    eval 'sub SCSIPI_INQUIRY_LENGTH_SCSI2 () {36;}' unless defined(&SCSIPI_INQUIRY_LENGTH_SCSI2);
    eval 'sub SID_IUS () {0x1;}' unless defined(&SID_IUS);
    eval 'sub SID_QAS () {0x2;}' unless defined(&SID_QAS);
    eval 'sub SID_Clocking () {0xc;}' unless defined(&SID_Clocking);
    eval 'sub SID_CLOCKING_ST_ONLY () {0x;}' unless defined(&SID_CLOCKING_ST_ONLY);
    eval 'sub SID_CLOCKING_DT_ONLY () {0x4;}' unless defined(&SID_CLOCKING_DT_ONLY);
    eval 'sub SID_CLOCKING_SD_DT () {0xc;}' unless defined(&SID_CLOCKING_SD_DT);
    eval 'sub SCSIPI_INQUIRY_LENGTH_SCSI3 () {74;}' unless defined(&SCSIPI_INQUIRY_LENGTH_SCSI3);
}
1;
