require '_h2ph_pre.ph';

no warnings 'redefine';

if(defined(&UMASS_DEBUG)) {
    eval 'sub DIF {
        my($m, $x) = @_;
	    eval q( &if ( &umassdebug & ($m))  &do { $x ; }  &while (0));
    }' unless defined(&DIF);
    eval 'sub DPRINTF {
        my($m, $x) = @_;
	    eval q( &do {  &if ( &umassdebug & ($m))  &logprintf $x; }  &while (0));
    }' unless defined(&DPRINTF);
    eval 'sub UDMASS_UPPER () {0x8000;}' unless defined(&UDMASS_UPPER);
    eval 'sub UDMASS_GEN () {0x10000;}' unless defined(&UDMASS_GEN);
    eval 'sub UDMASS_SCSI () {0x20000;}' unless defined(&UDMASS_SCSI);
    eval 'sub UDMASS_UFI () {0x40000;}' unless defined(&UDMASS_UFI);
    eval 'sub UDMASS_8070 () {0x80000;}' unless defined(&UDMASS_8070);
    eval 'sub UDMASS_USB () {0x100000;}' unless defined(&UDMASS_USB);
    eval 'sub UDMASS_BBB () {0x200000;}' unless defined(&UDMASS_BBB);
    eval 'sub UDMASS_CBI () {0x400000;}' unless defined(&UDMASS_CBI);
    eval 'sub UDMASS_ALL () {0xffff0000;}' unless defined(&UDMASS_ALL);
    eval 'sub UDMASS_XFER () {0x40000000;}' unless defined(&UDMASS_XFER);
    eval 'sub UDMASS_CMD () {0x80000000;}' unless defined(&UDMASS_CMD);
} else {
    eval 'sub DIF {
        my($m, $x) = @_;
	    eval q();
    }' unless defined(&DIF);
    eval 'sub DPRINTF {
        my($m, $x) = @_;
	    eval q();
    }' unless defined(&DPRINTF);
}
unless(defined(&UFI_COMMAND_LENGTH)) {
    sub UFI_COMMAND_LENGTH () {	12;}
}
unless(defined(&DIR_NONE)) {
    sub DIR_NONE () {	0;}
}
unless(defined(&DIR_IN)) {
    sub DIR_IN () {	1;}
}
unless(defined(&DIR_OUT)) {
    sub DIR_OUT () {	2;}
}
unless(defined(&UMASS_BULKIN)) {
    sub UMASS_BULKIN () {	0;}
}
unless(defined(&UMASS_BULKOUT)) {
    sub UMASS_BULKOUT () {	1;}
}
unless(defined(&UMASS_INTRIN)) {
    sub UMASS_INTRIN () {	2;}
}
unless(defined(&UMASS_NEP)) {
    sub UMASS_NEP () {	3;}
}
unless(defined(&UR_BBB_RESET)) {
    sub UR_BBB_RESET () {	0xff;}
}
unless(defined(&UR_BBB_GET_MAX_LUN)) {
    sub UR_BBB_GET_MAX_LUN () {	0xfe;}
}
unless(defined(&CBWSIGNATURE)) {
    sub CBWSIGNATURE () {	0x43425355;}
}
unless(defined(&CBWFLAGS_OUT)) {
    sub CBWFLAGS_OUT () {	0x;}
}
unless(defined(&CBWFLAGS_IN)) {
    sub CBWFLAGS_IN () {	0x80;}
}
unless(defined(&CBWCDBLENGTH)) {
    sub CBWCDBLENGTH () {	16;}
}
unless(defined(&UMASS_BBB_CBW_SIZE)) {
    sub UMASS_BBB_CBW_SIZE () {	31;}
}
unless(defined(&CSWSIGNATURE)) {
    sub CSWSIGNATURE () {	0x53425355;}
}
unless(defined(&CSWSIGNATURE_OLYMPUS_C1)) {
    sub CSWSIGNATURE_OLYMPUS_C1 () {	0x55425355;}
}
unless(defined(&CSWSTATUS_GOOD)) {
    sub CSWSTATUS_GOOD () {	0x;}
}
unless(defined(&CSWSTATUS_FAILED)) {
    sub CSWSTATUS_FAILED () {	0x1;}
}
unless(defined(&CSWSTATUS_PHASE)) {
    sub CSWSTATUS_PHASE () {	0x2;}
}
unless(defined(&UMASS_BBB_CSW_SIZE)) {
    sub UMASS_BBB_CSW_SIZE () {	13;}
}
unless(defined(&UR_CBI_ADSC)) {
    sub UR_CBI_ADSC () {	0x;}
}
unless(defined(&IDB_TYPE_CCI)) {
    sub IDB_TYPE_CCI () {	0x;}
}
unless(defined(&IDB_VALUE_PASS)) {
    sub IDB_VALUE_PASS () {	0x;}
}
unless(defined(&IDB_VALUE_FAIL)) {
    sub IDB_VALUE_FAIL () {	0x1;}
}
unless(defined(&IDB_VALUE_PHASE)) {
    sub IDB_VALUE_PHASE () {	0x2;}
}
unless(defined(&IDB_VALUE_PERSISTENT)) {
    sub IDB_VALUE_PERSISTENT () {	0x3;}
}
unless(defined(&IDB_VALUE_STATUS_MASK)) {
    sub IDB_VALUE_STATUS_MASK () {	0x3;}
}
unless(defined(&STATUS_CMD_OK)) {
    sub STATUS_CMD_OK () {	0;}
}
unless(defined(&STATUS_CMD_UNKNOWN)) {
    sub STATUS_CMD_UNKNOWN () {	1;}
}
unless(defined(&STATUS_CMD_FAILED)) {
    sub STATUS_CMD_FAILED () {	2;}
}
unless(defined(&STATUS_WIRE_FAILED)) {
    sub STATUS_WIRE_FAILED () {	3;}
}
unless(defined(&UMASS_WPROTO_UNSPEC)) {
    sub UMASS_WPROTO_UNSPEC () {	0;}
}
unless(defined(&UMASS_WPROTO_BBB)) {
    sub UMASS_WPROTO_BBB () {	1;}
}
unless(defined(&UMASS_WPROTO_CBI)) {
    sub UMASS_WPROTO_CBI () {	2;}
}
unless(defined(&UMASS_WPROTO_CBI_I)) {
    sub UMASS_WPROTO_CBI_I () {	3;}
}
unless(defined(&UMASS_CPROTO_UNSPEC)) {
    sub UMASS_CPROTO_UNSPEC () {	0;}
}
unless(defined(&UMASS_CPROTO_SCSI)) {
    sub UMASS_CPROTO_SCSI () {	1;}
}
unless(defined(&UMASS_CPROTO_ATAPI)) {
    sub UMASS_CPROTO_ATAPI () {	2;}
}
unless(defined(&UMASS_CPROTO_UFI)) {
    sub UMASS_CPROTO_UFI () {	3;}
}
unless(defined(&UMASS_CPROTO_RBC)) {
    sub UMASS_CPROTO_RBC () {	4;}
}
unless(defined(&UMASS_CPROTO_ISD_ATA)) {
    sub UMASS_CPROTO_ISD_ATA () {	5;}
}
unless(defined(&UMASS_QUIRK_WRONG_CSWSIG)) {
    sub UMASS_QUIRK_WRONG_CSWSIG () {	0x1;}
}
unless(defined(&UMASS_QUIRK_WRONG_CSWTAG)) {
    sub UMASS_QUIRK_WRONG_CSWTAG () {	0x2;}
}
unless(defined(&XFER_BBB_CBW)) {
    sub XFER_BBB_CBW () {	0;}
}
unless(defined(&XFER_BBB_DATA)) {
    sub XFER_BBB_DATA () {	1;}
}
unless(defined(&XFER_BBB_DCLEAR)) {
    sub XFER_BBB_DCLEAR () {	2;}
}
unless(defined(&XFER_BBB_CSW1)) {
    sub XFER_BBB_CSW1 () {	3;}
}
unless(defined(&XFER_BBB_CSW2)) {
    sub XFER_BBB_CSW2 () {	4;}
}
unless(defined(&XFER_BBB_SCLEAR)) {
    sub XFER_BBB_SCLEAR () {	5;}
}
unless(defined(&XFER_BBB_RESET1)) {
    sub XFER_BBB_RESET1 () {	6;}
}
unless(defined(&XFER_BBB_RESET2)) {
    sub XFER_BBB_RESET2 () {	7;}
}
unless(defined(&XFER_BBB_RESET3)) {
    sub XFER_BBB_RESET3 () {	8;}
}
unless(defined(&XFER_CBI_CB)) {
    sub XFER_CBI_CB () {	0;}
}
unless(defined(&XFER_CBI_DATA)) {
    sub XFER_CBI_DATA () {	1;}
}
unless(defined(&XFER_CBI_STATUS)) {
    sub XFER_CBI_STATUS () {	2;}
}
unless(defined(&XFER_CBI_DCLEAR)) {
    sub XFER_CBI_DCLEAR () {	3;}
}
unless(defined(&XFER_CBI_SCLEAR)) {
    sub XFER_CBI_SCLEAR () {	4;}
}
unless(defined(&XFER_CBI_RESET1)) {
    sub XFER_CBI_RESET1 () {	5;}
}
unless(defined(&XFER_CBI_RESET2)) {
    sub XFER_CBI_RESET2 () {	6;}
}
unless(defined(&XFER_CBI_RESET3)) {
    sub XFER_CBI_RESET3 () {	7;}
}
unless(defined(&XFER_NR)) {
    sub XFER_NR () {	9;}
}
unless(defined(&TSTATE_IDLE)) {
    sub TSTATE_IDLE () {	0;}
}
unless(defined(&TSTATE_BBB_COMMAND)) {
    sub TSTATE_BBB_COMMAND () {	1;}
}
unless(defined(&TSTATE_BBB_DATA)) {
    sub TSTATE_BBB_DATA () {	2;}
}
unless(defined(&TSTATE_BBB_DCLEAR)) {
    sub TSTATE_BBB_DCLEAR () {	3;}
}
unless(defined(&TSTATE_BBB_STATUS1)) {
    sub TSTATE_BBB_STATUS1 () {	4;}
}
unless(defined(&TSTATE_BBB_SCLEAR)) {
    sub TSTATE_BBB_SCLEAR () {	5;}
}
unless(defined(&TSTATE_BBB_STATUS2)) {
    sub TSTATE_BBB_STATUS2 () {	6;}
}
unless(defined(&TSTATE_BBB_RESET1)) {
    sub TSTATE_BBB_RESET1 () {	7;}
}
unless(defined(&TSTATE_BBB_RESET2)) {
    sub TSTATE_BBB_RESET2 () {	8;}
}
unless(defined(&TSTATE_BBB_RESET3)) {
    sub TSTATE_BBB_RESET3 () {	9;}
}
unless(defined(&TSTATE_CBI_COMMAND)) {
    sub TSTATE_CBI_COMMAND () {	10;}
}
unless(defined(&TSTATE_CBI_DATA)) {
    sub TSTATE_CBI_DATA () {	11;}
}
unless(defined(&TSTATE_CBI_STATUS)) {
    sub TSTATE_CBI_STATUS () {	12;}
}
unless(defined(&TSTATE_CBI_DCLEAR)) {
    sub TSTATE_CBI_DCLEAR () {	13;}
}
unless(defined(&TSTATE_CBI_SCLEAR)) {
    sub TSTATE_CBI_SCLEAR () {	14;}
}
unless(defined(&TSTATE_CBI_RESET1)) {
    sub TSTATE_CBI_RESET1 () {	15;}
}
unless(defined(&TSTATE_CBI_RESET2)) {
    sub TSTATE_CBI_RESET2 () {	16;}
}
unless(defined(&TSTATE_CBI_RESET3)) {
    sub TSTATE_CBI_RESET3 () {	17;}
}
unless(defined(&TSTATE_STATES)) {
    sub TSTATE_STATES () {	18;}
}
if(defined(&UMASS_DEBUG)) {
}
unless(defined(&UMASS_MAX_TRANSFER_SIZE)) {
    sub UMASS_MAX_TRANSFER_SIZE () {	 &MAXBSIZE;}
}
1;
