require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_CDIO_H_)) {
    eval 'sub _SYS_CDIO_H_ () {1;}' unless defined(&_SYS_CDIO_H_);
    require 'sys/ioccom.ph';
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    eval 'sub CD_AS_AUDIO_INVALID () {0x;}' unless defined(&CD_AS_AUDIO_INVALID);
    eval 'sub CD_AS_PLAY_IN_PROGRESS () {0x11;}' unless defined(&CD_AS_PLAY_IN_PROGRESS);
    eval 'sub CD_AS_PLAY_PAUSED () {0x12;}' unless defined(&CD_AS_PLAY_PAUSED);
    eval 'sub CD_AS_PLAY_COMPLETED () {0x13;}' unless defined(&CD_AS_PLAY_COMPLETED);
    eval 'sub CD_AS_PLAY_ERROR () {0x14;}' unless defined(&CD_AS_PLAY_ERROR);
    eval 'sub CD_AS_NO_STATUS () {0x15;}' unless defined(&CD_AS_NO_STATUS);
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : undef)) {
    }
    if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    }
    eval 'sub CDIOCPLAYTRACKS () { &_IOW(ord(\'c\'), 1, \'struct ioc_play_track\');}' unless defined(&CDIOCPLAYTRACKS);
    eval 'sub CDIOCPLAYBLOCKS () { &_IOW(ord(\'c\'), 2, \'struct ioc_play_blocks\');}' unless defined(&CDIOCPLAYBLOCKS);
    eval 'sub CD_LBA_FORMAT () {1;}' unless defined(&CD_LBA_FORMAT);
    eval 'sub CD_MSF_FORMAT () {2;}' unless defined(&CD_MSF_FORMAT);
    eval 'sub CD_SUBQ_DATA () {0;}' unless defined(&CD_SUBQ_DATA);
    eval 'sub CD_CURRENT_POSITION () {1;}' unless defined(&CD_CURRENT_POSITION);
    eval 'sub CD_MEDIA_CATALOG () {2;}' unless defined(&CD_MEDIA_CATALOG);
    eval 'sub CD_TRACK_INFO () {3;}' unless defined(&CD_TRACK_INFO);
    eval 'sub CDIOCREADSUBCHANNEL () { &_IOWR(ord(\'c\'), 3, \'struct ioc_read_subchannel\' );}' unless defined(&CDIOCREADSUBCHANNEL);
    if(defined(&_KERNEL)) {
	eval 'sub CDIOCREADSUBCHANNEL_BUF () { &_IOWR(ord(\'c\'), 3, \'struct ioc_read_subchannel_buf\');}' unless defined(&CDIOCREADSUBCHANNEL_BUF);
    }
    eval 'sub CDIOREADTOCHEADER () { &_IOR(ord(\'c\'), 4, \'struct ioc_toc_header\');}' unless defined(&CDIOREADTOCHEADER);
    eval 'sub CDIOREADTOCENTRIES () { &_IOWR(ord(\'c\'), 5, \'struct ioc_read_toc_entry\');}' unless defined(&CDIOREADTOCENTRIES);
    eval 'sub CDIOREADTOCENTRYS () { &CDIOREADTOCENTRIES;}' unless defined(&CDIOREADTOCENTRYS);
    if(defined(&_KERNEL)) {
	eval 'sub CDIOREADTOCENTRIES_BUF () { &_IOWR(ord(\'c\'), 5, \'struct ioc_read_toc_entry_buf\');}' unless defined(&CDIOREADTOCENTRIES_BUF);
    }
    eval 'sub CDIOREADMSADDR () { &_IOWR(ord(\'c\'), 6, \'int\');}' unless defined(&CDIOREADMSADDR);
    eval 'sub CDIOCSETPATCH () { &_IOW(ord(\'c\'), 9, \'struct ioc_patch\');}' unless defined(&CDIOCSETPATCH);
    eval 'sub CDIOCGETVOL () { &_IOR(ord(\'c\'), 10, \'struct ioc_vol\');}' unless defined(&CDIOCGETVOL);
    eval 'sub CDIOCSETVOL () { &_IOW(ord(\'c\'), 11, \'struct ioc_vol\');}' unless defined(&CDIOCSETVOL);
    eval 'sub CDIOCSETMONO () { &_IO(ord(\'c\'), 12);}' unless defined(&CDIOCSETMONO);
    eval 'sub CDIOCSETSTEREO () { &_IO(ord(\'c\'), 13);}' unless defined(&CDIOCSETSTEREO);
    eval 'sub CDIOCSETMUTE () { &_IO(ord(\'c\'), 14);}' unless defined(&CDIOCSETMUTE);
    eval 'sub CDIOCSETLEFT () { &_IO(ord(\'c\'), 15);}' unless defined(&CDIOCSETLEFT);
    eval 'sub CDIOCSETRIGHT () { &_IO(ord(\'c\'), 16);}' unless defined(&CDIOCSETRIGHT);
    eval 'sub CDIOCSETDEBUG () { &_IO(ord(\'c\'), 17);}' unless defined(&CDIOCSETDEBUG);
    eval 'sub CDIOCCLRDEBUG () { &_IO(ord(\'c\'), 18);}' unless defined(&CDIOCCLRDEBUG);
    eval 'sub CDIOCPAUSE () { &_IO(ord(\'c\'), 19);}' unless defined(&CDIOCPAUSE);
    eval 'sub CDIOCRESUME () { &_IO(ord(\'c\'), 20);}' unless defined(&CDIOCRESUME);
    eval 'sub CDIOCRESET () { &_IO(ord(\'c\'), 21);}' unless defined(&CDIOCRESET);
    eval 'sub CDIOCSTART () { &_IO(ord(\'c\'), 22);}' unless defined(&CDIOCSTART);
    eval 'sub CDIOCSTOP () { &_IO(ord(\'c\'), 23);}' unless defined(&CDIOCSTOP);
    eval 'sub CDIOCEJECT () { &_IO(ord(\'c\'), 24);}' unless defined(&CDIOCEJECT);
    eval 'sub CDIOCALLOW () { &_IO(ord(\'c\'), 25);}' unless defined(&CDIOCALLOW);
    eval 'sub CDIOCPREVENT () { &_IO(ord(\'c\'), 26);}' unless defined(&CDIOCPREVENT);
    eval 'sub CDIOCCLOSE () { &_IO(ord(\'c\'), 27);}' unless defined(&CDIOCCLOSE);
    eval 'sub CDIOCPLAYMSF () { &_IOW(ord(\'c\'), 25, \'struct ioc_play_msf\');}' unless defined(&CDIOCPLAYMSF);
    eval 'sub CD_LU_ABORT () {0x1;}' unless defined(&CD_LU_ABORT);
    eval 'sub CD_LU_UNLOAD () {0x2;}' unless defined(&CD_LU_UNLOAD);
    eval 'sub CD_LU_LOAD () {0x3;}' unless defined(&CD_LU_LOAD);
    eval 'sub CDIOCLOADUNLOAD () { &_IOW(ord(\'c\'), 26, \'struct ioc_load_unload\');}' unless defined(&CDIOCLOADUNLOAD);
    if(defined(&_KERNEL) || defined(&_EXPOSE_MMC)) {
	eval 'sub MMCGETDISCINFO () { &_IOR(ord(\'c\'), 28, \'struct mmc_discinfo\');}' unless defined(&MMCGETDISCINFO);
	eval 'sub MMC_CLASS_UNKN () {0;}' unless defined(&MMC_CLASS_UNKN);
	eval 'sub MMC_CLASS_DISC () {1;}' unless defined(&MMC_CLASS_DISC);
	eval 'sub MMC_CLASS_CD () {2;}' unless defined(&MMC_CLASS_CD);
	eval 'sub MMC_CLASS_DVD () {3;}' unless defined(&MMC_CLASS_DVD);
	eval 'sub MMC_CLASS_MO () {4;}' unless defined(&MMC_CLASS_MO);
	eval 'sub MMC_CLASS_BD () {5;}' unless defined(&MMC_CLASS_BD);
	eval 'sub MMC_CLASS_FILE () {0xffff;}' unless defined(&MMC_CLASS_FILE);
	eval 'sub MMC_DFLAGS_BARCODEVALID () {(1<< 0);}' unless defined(&MMC_DFLAGS_BARCODEVALID);
	eval 'sub MMC_DFLAGS_DISCIDVALID () {(1<< 1);}' unless defined(&MMC_DFLAGS_DISCIDVALID);
	eval 'sub MMC_DFLAGS_APPCODEVALID () {(1<< 2);}' unless defined(&MMC_DFLAGS_APPCODEVALID);
	eval 'sub MMC_DFLAGS_UNRESTRICTED () {(1<< 3);}' unless defined(&MMC_DFLAGS_UNRESTRICTED);
	eval 'sub MMC_DFLAGS_FLAGBITS () {"\\10\\1BARCODEVALID\\2DISCIDVALID\\3APPCODEVALID\\4UNRESTRICTED";}' unless defined(&MMC_DFLAGS_FLAGBITS);
	eval 'sub MMC_CAP_SEQUENTIAL () {(1<< 0);}' unless defined(&MMC_CAP_SEQUENTIAL);
	eval 'sub MMC_CAP_RECORDABLE () {(1<< 1);}' unless defined(&MMC_CAP_RECORDABLE);
	eval 'sub MMC_CAP_ERASABLE () {(1<< 2);}' unless defined(&MMC_CAP_ERASABLE);
	eval 'sub MMC_CAP_BLANKABLE () {(1<< 3);}' unless defined(&MMC_CAP_BLANKABLE);
	eval 'sub MMC_CAP_FORMATTABLE () {(1<< 4);}' unless defined(&MMC_CAP_FORMATTABLE);
	eval 'sub MMC_CAP_REWRITABLE () {(1<< 5);}' unless defined(&MMC_CAP_REWRITABLE);
	eval 'sub MMC_CAP_MRW () {(1<< 6);}' unless defined(&MMC_CAP_MRW);
	eval 'sub MMC_CAP_PACKET () {(1<< 7);}' unless defined(&MMC_CAP_PACKET);
	eval 'sub MMC_CAP_STRICTOVERWRITE () {(1<< 8);}' unless defined(&MMC_CAP_STRICTOVERWRITE);
	eval 'sub MMC_CAP_PSEUDOOVERWRITE () {(1<< 9);}' unless defined(&MMC_CAP_PSEUDOOVERWRITE);
	eval 'sub MMC_CAP_ZEROLINKBLK () {(1<< 10);}' unless defined(&MMC_CAP_ZEROLINKBLK);
	eval 'sub MMC_CAP_HW_DEFECTFREE () {(1<< 11);}' unless defined(&MMC_CAP_HW_DEFECTFREE);
	eval 'sub MMC_CAP_FLAGBITS () {"\\10\\1SEQUENTIAL\\2RECORDABLE\\3ERASABLE\\4BLANKABLE\\5FORMATTABLE" "\\6REWRITABLE\\7MRW\\10PACKET\\11STRICTOVERWRITE\\12PSEUDOOVERWRITE" "\\13ZEROLINKBLK\\14HW_DEFECTFREE";}' unless defined(&MMC_CAP_FLAGBITS);
	eval 'sub MMC_STATE_EMPTY () {0;}' unless defined(&MMC_STATE_EMPTY);
	eval 'sub MMC_STATE_INCOMPLETE () {1;}' unless defined(&MMC_STATE_INCOMPLETE);
	eval 'sub MMC_STATE_FULL () {2;}' unless defined(&MMC_STATE_FULL);
	eval 'sub MMC_STATE_CLOSED () {3;}' unless defined(&MMC_STATE_CLOSED);
	eval 'sub MMC_BGFSTATE_UNFORM () {0;}' unless defined(&MMC_BGFSTATE_UNFORM);
	eval 'sub MMC_BGFSTATE_STOPPED () {1;}' unless defined(&MMC_BGFSTATE_STOPPED);
	eval 'sub MMC_BGFSTATE_RUNNING () {2;}' unless defined(&MMC_BGFSTATE_RUNNING);
	eval 'sub MMC_BGFSTATE_COMPLETED () {3;}' unless defined(&MMC_BGFSTATE_COMPLETED);
	eval 'sub MMCGETTRACKINFO () { &_IOWR(ord(\'c\'), 29, \'struct mmc_trackinfo\');}' unless defined(&MMCGETTRACKINFO);
	eval 'sub MMC_TRACKINFO_COPY () {(1<< 0);}' unless defined(&MMC_TRACKINFO_COPY);
	eval 'sub MMC_TRACKINFO_DAMAGED () {(1<< 1);}' unless defined(&MMC_TRACKINFO_DAMAGED);
	eval 'sub MMC_TRACKINFO_FIXED_PACKET () {(1<< 2);}' unless defined(&MMC_TRACKINFO_FIXED_PACKET);
	eval 'sub MMC_TRACKINFO_INCREMENTAL () {(1<< 3);}' unless defined(&MMC_TRACKINFO_INCREMENTAL);
	eval 'sub MMC_TRACKINFO_BLANK () {(1<< 4);}' unless defined(&MMC_TRACKINFO_BLANK);
	eval 'sub MMC_TRACKINFO_RESERVED () {(1<< 5);}' unless defined(&MMC_TRACKINFO_RESERVED);
	eval 'sub MMC_TRACKINFO_NWA_VALID () {(1<< 6);}' unless defined(&MMC_TRACKINFO_NWA_VALID);
	eval 'sub MMC_TRACKINFO_LRA_VALID () {(1<< 7);}' unless defined(&MMC_TRACKINFO_LRA_VALID);
	eval 'sub MMC_TRACKINFO_DATA () {(1<< 8);}' unless defined(&MMC_TRACKINFO_DATA);
	eval 'sub MMC_TRACKINFO_AUDIO () {(1<< 9);}' unless defined(&MMC_TRACKINFO_AUDIO);
	eval 'sub MMC_TRACKINFO_AUDIO_4CHAN () {(1<< 10);}' unless defined(&MMC_TRACKINFO_AUDIO_4CHAN);
	eval 'sub MMC_TRACKINFO_PRE_EMPH () {(1<< 11);}' unless defined(&MMC_TRACKINFO_PRE_EMPH);
	eval 'sub MMC_TRACKINFO_FLAGBITS () {"\\10\\1COPY\\2DAMAGED\\3FIXEDPACKET\\4INCREMENTAL\\5BLANK" "\\6RESERVED\\7NWA_VALID\\10LRA_VALID\\11DATA\\12AUDIO" "\\13AUDIO_4CHAN\\14PRE_EMPH";}' unless defined(&MMC_TRACKINFO_FLAGBITS);
	eval 'sub MMCOP () { &_IOWR(ord(\'c\'), 30, \'struct mmc_op\');}' unless defined(&MMCOP);
	eval 'sub MMC_OP_SYNCHRONISECACHE () {1;}' unless defined(&MMC_OP_SYNCHRONISECACHE);
	eval 'sub MMC_OP_CLOSETRACK () {2;}' unless defined(&MMC_OP_CLOSETRACK);
	eval 'sub MMC_OP_CLOSESESSION () {3;}' unless defined(&MMC_OP_CLOSESESSION);
	eval 'sub MMC_OP_FINALISEDISC () {4;}' unless defined(&MMC_OP_FINALISEDISC);
	eval 'sub MMC_OP_RESERVETRACK () {5;}' unless defined(&MMC_OP_RESERVETRACK);
	eval 'sub MMC_OP_RESERVETRACK_NWA () {6;}' unless defined(&MMC_OP_RESERVETRACK_NWA);
	eval 'sub MMC_OP_UNRESERVETRACK () {7;}' unless defined(&MMC_OP_UNRESERVETRACK);
	eval 'sub MMC_OP_REPAIRTRACK () {8;}' unless defined(&MMC_OP_REPAIRTRACK);
	eval 'sub MMC_OP_UNCLOSELASTSESSION () {9;}' unless defined(&MMC_OP_UNCLOSELASTSESSION);
	eval 'sub MMC_OP_MAX () {9;}' unless defined(&MMC_OP_MAX);
	eval 'sub MMC_TRACKMODE_DEFAULT () {5;}' unless defined(&MMC_TRACKMODE_DEFAULT);
	eval 'sub MMC_DATAMODE_DEFAULT () {2;}' unless defined(&MMC_DATAMODE_DEFAULT);
	eval 'sub MMCSETUPWRITEPARAMS () { &_IOW(ord(\'c\'), 31, \'struct mmc_writeparams\');}' unless defined(&MMCSETUPWRITEPARAMS);
    }
}
1;
