require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SCSI_SAFTE_H_)) {
    eval 'sub _SCSI_SAFTE_H_ () {1;}' unless defined(&_SCSI_SAFTE_H_);
    eval 'sub SAFTE_EXTRA_OFFSET () {0x5;}' unless defined(&SAFTE_EXTRA_OFFSET);
    eval 'sub SAFTE_IDENT () {"SAF-TE";}' unless defined(&SAFTE_IDENT);
    if(defined(&notyet)) {
    }
    eval 'sub SAFTE_INQ_LEN () {54;}' unless defined(&SAFTE_INQ_LEN);
    eval 'sub SAFTE_RD_LUNMASK () {0xe0;}' unless defined(&SAFTE_RD_LUNMASK);
    eval 'sub SAFTE_RD_MODEMASK () {0x7;}' unless defined(&SAFTE_RD_MODEMASK);
    eval 'sub SAFTE_RD_MODE () {0x1;}' unless defined(&SAFTE_RD_MODE);
    eval 'sub SAFTE_RD_CONFIG () {0x;}' unless defined(&SAFTE_RD_CONFIG);
    eval 'sub SAFTE_RD_ENCSTAT () {0x1;}' unless defined(&SAFTE_RD_ENCSTAT);
    eval 'sub SAFTE_RD_USAGE () {0x2;}' unless defined(&SAFTE_RD_USAGE);
    eval 'sub SAFTE_RD_INSERTS () {0x3;}' unless defined(&SAFTE_RD_INSERTS);
    eval 'sub SAFTE_RD_SLOTSTAT () {0x4;}' unless defined(&SAFTE_RD_SLOTSTAT);
    eval 'sub SAFTE_RD_GLOBALS () {0x5;}' unless defined(&SAFTE_RD_GLOBALS);
    eval 'sub SAFTE_WR_LUNMASK () {0xe0;}' unless defined(&SAFTE_WR_LUNMASK);
    eval 'sub SAFTE_WR_MODEMASK () {0x7;}' unless defined(&SAFTE_WR_MODEMASK);
    eval 'sub SAFTE_WR_MODE () {0x1;}' unless defined(&SAFTE_WR_MODE);
    eval 'sub SAFTE_WRITE_SLOTSTAT () {0x10;}' unless defined(&SAFTE_WRITE_SLOTSTAT);
    eval 'sub SAFTE_WRITE_SETID () {0x11;}' unless defined(&SAFTE_WRITE_SETID);
    eval 'sub SAFTE_WRITE_SLOTOP () {0x12;}' unless defined(&SAFTE_WRITE_SLOTOP);
    eval 'sub SAFTE_WRITE_FANSPEED () {0x13;}' unless defined(&SAFTE_WRITE_FANSPEED);
    eval 'sub SAFTE_WRITE_PWRSUP () {0x14;}' unless defined(&SAFTE_WRITE_PWRSUP);
    eval 'sub SAFTE_WRITE_GLOBALS () {0x15;}' unless defined(&SAFTE_WRITE_GLOBALS);
    eval 'sub SAFTE_CFG_CELSIUSMASK () {0x80;}' unless defined(&SAFTE_CFG_CELSIUSMASK);
    eval 'sub SAFTE_CFG_CELSIUS {
        my($a) = @_;
	    eval q((($a) &  &SAFTE_CFG_CELSIUSMASK ? 1: 0));
    }' unless defined(&SAFTE_CFG_CELSIUS);
    eval 'sub SAFTE_CFG_NTHERMMASK () {0xf;}' unless defined(&SAFTE_CFG_NTHERMMASK);
    eval 'sub SAFTE_CFG_NTHERM {
        my($a) = @_;
	    eval q((($a) &  &SAFTE_CFG_NTHERMMASK));
    }' unless defined(&SAFTE_CFG_NTHERM);
    eval 'sub SAFTE_CONFIG_LEN () {$sizeof{\'struct safte_config\'};}' unless defined(&SAFTE_CONFIG_LEN);
    eval 'sub SAFTE_FAN_OP () {0x;}' unless defined(&SAFTE_FAN_OP);
    eval 'sub SAFTE_FAN_MF () {0x1;}' unless defined(&SAFTE_FAN_MF);
    eval 'sub SAFTE_FAN_NOTINST () {0x2;}' unless defined(&SAFTE_FAN_NOTINST);
    eval 'sub SAFTE_FAN_UNKNOWN () {0x80;}' unless defined(&SAFTE_FAN_UNKNOWN);
    eval 'sub SAFTE_PWR_OP_ON () {0x;}' unless defined(&SAFTE_PWR_OP_ON);
    eval 'sub SAFTE_PWR_OP_OFF () {0x1;}' unless defined(&SAFTE_PWR_OP_OFF);
    eval 'sub SAFTE_PWR_MF_ON () {0x10;}' unless defined(&SAFTE_PWR_MF_ON);
    eval 'sub SAFTE_PWR_MF_OFF () {0x11;}' unless defined(&SAFTE_PWR_MF_OFF);
    eval 'sub SAFTE_PWR_NOTINST () {0x20;}' unless defined(&SAFTE_PWR_NOTINST);
    eval 'sub SAFTE_PWR_PRESENT () {0x21;}' unless defined(&SAFTE_PWR_PRESENT);
    eval 'sub SAFTE_PWR_UNKNOWN () {0x80;}' unless defined(&SAFTE_PWR_UNKNOWN);
    eval 'sub SAFTE_DOOR_LOCKED () {0x;}' unless defined(&SAFTE_DOOR_LOCKED);
    eval 'sub SAFTE_DOOR_UNLOCKED () {0x1;}' unless defined(&SAFTE_DOOR_UNLOCKED);
    eval 'sub SAFTE_DOOR_UNKNOWN () {0x80;}' unless defined(&SAFTE_DOOR_UNKNOWN);
    eval 'sub SAFTE_SPKR_OFF () {0x;}' unless defined(&SAFTE_SPKR_OFF);
    eval 'sub SAFTE_SPKR_ON () {0x1;}' unless defined(&SAFTE_SPKR_ON);
    eval 'sub SAFTE_TEMP_OFFSET () {-10;}' unless defined(&SAFTE_TEMP_OFFSET);
    eval 'sub SAFTE_TEMP_ETA () {0x8000;}' unless defined(&SAFTE_TEMP_ETA);
    eval 'sub SAFTE_SLOTSTAT_INSERT () {(1<<0);}' unless defined(&SAFTE_SLOTSTAT_INSERT);
    eval 'sub SAFTE_SLOTSTAT_SWAP () {(1<<1);}' unless defined(&SAFTE_SLOTSTAT_SWAP);
    eval 'sub SAFTE_SLOTSTAT_OPER () {(1<<2);}' unless defined(&SAFTE_SLOTSTAT_OPER);
    eval 'sub SAFTE_GLOBAL_ALARM () {(1<<0);}' unless defined(&SAFTE_GLOBAL_ALARM);
    eval 'sub SAFTE_GLOBAL_FAILURE () {(1<<1);}' unless defined(&SAFTE_GLOBAL_FAILURE);
    eval 'sub SAFTE_GLOBAL_WARNING () {(1<<2);}' unless defined(&SAFTE_GLOBAL_WARNING);
    eval 'sub SAFTE_GLOBAL_POWER () {(1<<3);}' unless defined(&SAFTE_GLOBAL_POWER);
    eval 'sub SAFTE_GLOBAL_COOLING () {(1<<4);}' unless defined(&SAFTE_GLOBAL_COOLING);
    eval 'sub SAFTE_GLOBAL_PWRFAIL () {(1<<5);}' unless defined(&SAFTE_GLOBAL_PWRFAIL);
    eval 'sub SAFTE_GLOBAL_DRVFAIL () {(1<<6);}' unless defined(&SAFTE_GLOBAL_DRVFAIL);
    eval 'sub SAFTE_GLOBAL_DRVWARN () {(1<<6);}' unless defined(&SAFTE_GLOBAL_DRVWARN);
    eval 'sub SAFTE_GLOBAL_ARRAYFAIL () {(1<<0);}' unless defined(&SAFTE_GLOBAL_ARRAYFAIL);
    eval 'sub SAFTE_GLOBAL_ARRAYWARN () {(1<<1);}' unless defined(&SAFTE_GLOBAL_ARRAYWARN);
    eval 'sub SAFTE_GLOBAL_LOCK () {(1<<2);}' unless defined(&SAFTE_GLOBAL_LOCK);
    eval 'sub SAFTE_GLOBAL_IDENTIFY () {(1<<3);}' unless defined(&SAFTE_GLOBAL_IDENTIFY);
    eval 'sub SAFTE_SLOTOP_OPERATE () {(1<<0);}' unless defined(&SAFTE_SLOTOP_OPERATE);
    eval 'sub SAFTE_SLOTOP_INSREM () {(1<<1);}' unless defined(&SAFTE_SLOTOP_INSREM);
    eval 'sub SAFTE_SLOTOP_IDENTIFY () {(1<<2);}' unless defined(&SAFTE_SLOTOP_IDENTIFY);
}
1;
