require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_CHIO_H_)) {
    eval 'sub _SYS_CHIO_H_ () {1;}' unless defined(&_SYS_CHIO_H_);
    require 'sys/ioccom.ph';
    eval 'sub CHET_MT () {0;}' unless defined(&CHET_MT);
    eval 'sub CHET_ST () {1;}' unless defined(&CHET_ST);
    eval 'sub CHET_IE () {2;}' unless defined(&CHET_IE);
    eval 'sub CHET_DT () {3;}' unless defined(&CHET_DT);
    eval 'sub CM_INVERT () {0x1;}' unless defined(&CM_INVERT);
    eval 'sub CE_INVERT1 () {0x1;}' unless defined(&CE_INVERT1);
    eval 'sub CE_INVERT2 () {0x2;}' unless defined(&CE_INVERT2);
    eval 'sub CP_INVERT () {0x1;}' unless defined(&CP_INVERT);
    eval 'sub CHANGER_VOLTAG_SIZE () {32;}' unless defined(&CHANGER_VOLTAG_SIZE);
    eval 'sub CESTATUS_FULL () {0x1;}' unless defined(&CESTATUS_FULL);
    eval 'sub CESTATUS_IMPEXP () {0x2;}' unless defined(&CESTATUS_IMPEXP);
    eval 'sub CESTATUS_EXCEPT () {0x4;}' unless defined(&CESTATUS_EXCEPT);
    eval 'sub CESTATUS_ACCESS () {0x8;}' unless defined(&CESTATUS_ACCESS);
    eval 'sub CESTATUS_EXENAB () {0x10;}' unless defined(&CESTATUS_EXENAB);
    eval 'sub CESTATUS_INENAB () {0x20;}' unless defined(&CESTATUS_INENAB);
    eval 'sub CESTATUS_PICKER_MASK () {0x5;}' unless defined(&CESTATUS_PICKER_MASK);
    eval 'sub CESTATUS_SLOT_MASK () {0xc;}' unless defined(&CESTATUS_SLOT_MASK);
    eval 'sub CESTATUS_PORTAL_MASK () {0x3f;}' unless defined(&CESTATUS_PORTAL_MASK);
    eval 'sub CESTATUS_DRIVE_MASK () {0xc;}' unless defined(&CESTATUS_DRIVE_MASK);
    eval 'sub CESTATUS_INVERTED () {0x40;}' unless defined(&CESTATUS_INVERTED);
    eval 'sub CESTATUS_NOTBUS () {0x80;}' unless defined(&CESTATUS_NOTBUS);
    eval 'sub CESTATUS_STATUS_VALID () {0x100;}' unless defined(&CESTATUS_STATUS_VALID);
    eval 'sub CESTATUS_XNAME_VALID () {0x200;}' unless defined(&CESTATUS_XNAME_VALID);
    eval 'sub CESTATUS_FROM_VALID () {0x400;}' unless defined(&CESTATUS_FROM_VALID);
    eval 'sub CESTATUS_PVOL_VALID () {0x800;}' unless defined(&CESTATUS_PVOL_VALID);
    eval 'sub CESTATUS_AVOL_VALID () {0x1000;}' unless defined(&CESTATUS_AVOL_VALID);
    eval 'sub CESTATUS_TARGET_VALID () {0x2000;}' unless defined(&CESTATUS_TARGET_VALID);
    eval 'sub CESTATUS_LUN_VALID () {0x4000;}' unless defined(&CESTATUS_LUN_VALID);
    eval 'sub CESTATUS_BITS () {"\\20\\6INEAB\\5EXENAB\\4ACCESS\\3EXCEPT\\2IMPEXP\\1FULL";}' unless defined(&CESTATUS_BITS);
    eval 'sub CESR_VOLTAGS () {0x1;}' unless defined(&CESR_VOLTAGS);
    eval 'sub CSVR_MODE_SET () {0x;}' unless defined(&CSVR_MODE_SET);
    eval 'sub CSVR_MODE_REPLACE () {0x1;}' unless defined(&CSVR_MODE_REPLACE);
    eval 'sub CSVR_MODE_CLEAR () {0x2;}' unless defined(&CSVR_MODE_CLEAR);
    eval 'sub CSVR_MODE_MASK () {0xf;}' unless defined(&CSVR_MODE_MASK);
    eval 'sub CSVR_ALTERNATE () {0x10;}' unless defined(&CSVR_ALTERNATE);
    eval 'sub CHANGER_EVENT_SIZE () {$sizeof{\'u_int\'};}' unless defined(&CHANGER_EVENT_SIZE);
    eval 'sub CHEV_ELEMENT_STATUS_CHANGED () {0x1;}' unless defined(&CHEV_ELEMENT_STATUS_CHANGED);
    eval 'sub CHIOMOVE () { &_IOW(ord(\'c\'), 0x1, \'struct changer_move_request\');}' unless defined(&CHIOMOVE);
    eval 'sub CHIOEXCHANGE () { &_IOW(ord(\'c\'), 0x2, \'struct changer_exchange_request\');}' unless defined(&CHIOEXCHANGE);
    eval 'sub CHIOPOSITION () { &_IOW(ord(\'c\'), 0x3, \'struct changer_position_request\');}' unless defined(&CHIOPOSITION);
    eval 'sub CHIOGPICKER () { &_IOR(ord(\'c\'), 0x4, \'int\');}' unless defined(&CHIOGPICKER);
    eval 'sub CHIOSPICKER () { &_IOW(ord(\'c\'), 0x5, \'int\');}' unless defined(&CHIOSPICKER);
    eval 'sub CHIOGPARAMS () { &_IOR(ord(\'c\'), 0x6, \'struct changer_params\');}' unless defined(&CHIOGPARAMS);
    eval 'sub CHIOIELEM () { &_IO(ord(\'c\'), 0x7);}' unless defined(&CHIOIELEM);
    eval 'sub OCHIOGSTATUS () { &_IOW(ord(\'c\'), 0x8, \'struct ochanger_element_status_request\');}' unless defined(&OCHIOGSTATUS);
    eval 'sub CHIOGSTATUS () { &_IOW(ord(\'c\'), 0x9, \'struct changer_element_status_request\');}' unless defined(&CHIOGSTATUS);
    eval 'sub CHIOSVOLTAG () { &_IOW(ord(\'c\'), 0xa, \'struct changer_set_voltag_request\');}' unless defined(&CHIOSVOLTAG);
}
1;
