require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_RF__RF_RAID_H_)) {
    eval 'sub _RF__RF_RAID_H_ () {1;}' unless defined(&_RF__RF_RAID_H_);
    require './dev/raidframe/rf_archs.ph';
    require './dev/raidframe/rf_types.ph';
    require './dev/raidframe/rf_threadstuff.ph';
    if(defined( &__NetBSD__)) {
	require './dev/raidframe/rf_netbsd.ph';
    }
 elsif(defined( &__OpenBSD__)) {
	require './dev/raidframe/rf_openbsd.ph';
    }
    require 'sys/disklabel.ph';
    require 'sys/types.ph';
    require './dev/raidframe/rf_alloclist.ph';
    require './dev/raidframe/rf_stripelocks.ph';
    require './dev/raidframe/rf_layout.ph';
    require './dev/raidframe/rf_disks.ph';
    require './dev/raidframe/rf_debugMem.ph';
    require './dev/raidframe/rf_diskqueue.ph';
    require './dev/raidframe/rf_reconstruct.ph';
    require './dev/raidframe/rf_acctrace.ph';
    if((defined(&RF_INCLUDE_PARITYLOGGING) ? &RF_INCLUDE_PARITYLOGGING : undef) > 0) {
	require './dev/raidframe/rf_paritylog.ph';
    }
    eval 'sub RF_MAX_DISKS () {128;}' unless defined(&RF_MAX_DISKS);
    eval 'sub RF_DEV2RAIDID {
        my($_dev) = @_;
	    eval q(( &DISKUNIT($_dev)));
    }' unless defined(&RF_DEV2RAIDID);
    eval 'sub RF_COMPONENT_LABEL_VERSION_1 () {1;}' unless defined(&RF_COMPONENT_LABEL_VERSION_1);
    eval 'sub RF_COMPONENT_LABEL_VERSION () {2;}' unless defined(&RF_COMPONENT_LABEL_VERSION);
    eval 'sub RF_RAID_DIRTY () {0;}' unless defined(&RF_RAID_DIRTY);
    eval 'sub RF_RAID_CLEAN () {1;}' unless defined(&RF_RAID_CLEAN);
    eval("sub rf_rs_optimal () { 0; }") unless defined(&rf_rs_optimal);
    eval("sub rf_rs_degraded () { 1; }") unless defined(&rf_rs_degraded);
    eval("sub rf_rs_reconstructing () { 2; }") unless defined(&rf_rs_reconstructing);
    eval("sub rf_rs_reconfigured () { 3; }") unless defined(&rf_rs_reconfigured);
    if(!defined( &_KERNEL)  && !defined( &SIMULATE)) {
    }
    if((defined(&RF_INCLUDE_PARITYLOGGING) ? &RF_INCLUDE_PARITYLOGGING : undef) > 0) {
    }
}
1;
