require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_RF__RF_STRIPELOCKS_H_)) {
    eval 'sub _RF__RF_STRIPELOCKS_H_ () {1;}' unless defined(&_RF__RF_STRIPELOCKS_H_);
    require 'sys/buf.ph';
    require 'rf_types.ph';
    require 'rf_threadstuff.ph';
    require 'rf_general.ph';
    eval 'sub RF_ASSERT_VALID_LOCKREQ {
        my($_lr_) = @_;
	    eval q( &do {  &RF_ASSERT( &RF_IO_IS_R_OR_W(($_lr_)-> &type)); }  &while (0));
    }' unless defined(&RF_ASSERT_VALID_LOCKREQ);
    eval 'sub RF_INIT_LOCK_REQ_DESC {
        my($_lrd, $_typ, $_cbf, $_cba, $_asm, $_defSize) = @_;
	    eval q( &do { ($_lrd). &type = $_typ; ($_lrd). &start2 = -1; ($_lrd). &stop2 = -1;  &if (($_asm)-> &parityInfo) { ($_lrd). &start = ($_asm)-> ($parityInfo->{startSector}); ($_lrd). &stop = ($_asm)-> ($parityInfo->{startSector}) + ($_asm)-> ($parityInfo->{numSector})-1;  &if (($_asm)-> ($parityInfo->{next})) { ($_lrd). &start2 = ($_asm)-> ($parityInfo->{next}->{startSector}); ($_lrd). &stop2 = ($_asm)-> ($parityInfo->{next}->{startSector}) + ($_asm)-> ($parityInfo->{next}->{numSector})-1; } }  &else { ($_lrd). &start = 0; ($_lrd). &stop = ($_defSize); } ($_lrd). &templink=  &NULL; ($_lrd). &cbFunc = ($_cbf); ($_lrd). &cbArg = ( &void *) ($_cba); }  &while (0));
    }' unless defined(&RF_INIT_LOCK_REQ_DESC);
}
1;
