require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SCSI_CD_H)) {
    eval 'sub _SCSI_CD_H () {1;}' unless defined(&_SCSI_CD_H);
    eval 'sub CD_RELADDR () {0x1;}' unless defined(&CD_RELADDR);
    eval 'sub CD_MSF () {0x2;}' unless defined(&CD_MSF);
    eval 'sub BLANK_DISC () {0;}' unless defined(&BLANK_DISC);
    eval 'sub BLANK_MINIMAL () {1;}' unless defined(&BLANK_MINIMAL);
    eval 'sub CT_IMMED () {1;}' unless defined(&CT_IMMED);
    eval 'sub CT_CLOSE_TRACK () {1;}' unless defined(&CT_CLOSE_TRACK);
    eval 'sub CT_CLOSE_SESS () {2;}' unless defined(&CT_CLOSE_SESS);
    eval 'sub CT_CLOSE_BORDER () {3;}' unless defined(&CT_CLOSE_BORDER);
    eval 'sub PA_PAUSE () {1;}' unless defined(&PA_PAUSE);
    eval 'sub PA_RESUME () {0;}' unless defined(&PA_RESUME);
    eval 'sub SRS_SUBQ () {0x40;}' unless defined(&SRS_SUBQ);
    eval 'sub RTI_LBA () {0;}' unless defined(&RTI_LBA);
    eval 'sub RTI_TRACK () {1;}' unless defined(&RTI_TRACK);
    eval 'sub RTI_BORDER () {2;}' unless defined(&RTI_BORDER);
    eval 'sub IMMED () {0x1;}' unless defined(&IMMED);
    eval 'sub START () {0x1;}' unless defined(&START);
    eval 'sub LOUNLO () {0x2;}' unless defined(&LOUNLO);
    eval 'sub READ_CD_CAPACITY () {0x25;}' unless defined(&READ_CD_CAPACITY);
    eval 'sub READ_SUBCHANNEL () {0x42;}' unless defined(&READ_SUBCHANNEL);
    eval 'sub READ_TOC () {0x43;}' unless defined(&READ_TOC);
    eval 'sub READ_HEADER () {0x44;}' unless defined(&READ_HEADER);
    eval 'sub PLAY () {0x45;}' unless defined(&PLAY);
    eval 'sub PLAY_MSF () {0x47;}' unless defined(&PLAY_MSF);
    eval 'sub PLAY_TRACK () {0x48;}' unless defined(&PLAY_TRACK);
    eval 'sub PLAY_TRACK_REL () {0x49;}' unless defined(&PLAY_TRACK_REL);
    eval 'sub PAUSE () {0x4b;}' unless defined(&PAUSE);
    eval 'sub READ_TRACK_INFO () {0x52;}' unless defined(&READ_TRACK_INFO);
    eval 'sub CLOSE_TRACK () {0x5b;}' unless defined(&CLOSE_TRACK);
    eval 'sub BLANK () {0xa1;}' unless defined(&BLANK);
    eval 'sub PLAY_BIG () {0xa5;}' unless defined(&PLAY_BIG);
    eval 'sub LOAD_UNLOAD () {0xa6;}' unless defined(&LOAD_UNLOAD);
    eval 'sub PLAY_TRACK_REL_BIG () {0xa9;}' unless defined(&PLAY_TRACK_REL_BIG);
    eval 'sub ERR_RECOVERY_PAGE () {0x1;}' unless defined(&ERR_RECOVERY_PAGE);
    eval 'sub WRITE_PARAM_PAGE () {0x5;}' unless defined(&WRITE_PARAM_PAGE);
    eval 'sub CDVD_CAPABILITIES_PAGE () {0x2a;}' unless defined(&CDVD_CAPABILITIES_PAGE);
    eval 'sub CD_PAGE_CODE () {0x3f;}' unless defined(&CD_PAGE_CODE);
    eval 'sub AUDIO_PAGE () {0xe;}' unless defined(&AUDIO_PAGE);
    eval 'sub CD_PAGE_PS () {0x80;}' unless defined(&CD_PAGE_PS);
    eval 'sub CD_PA_SOTC () {0x2;}' unless defined(&CD_PA_SOTC);
    eval 'sub CD_PA_IMMED () {0x4;}' unless defined(&CD_PA_IMMED);
    eval 'sub CD_PA_FORMAT_LBA () {0xf;}' unless defined(&CD_PA_FORMAT_LBA);
    eval 'sub CD_PA_APR_VALID () {0x80;}' unless defined(&CD_PA_APR_VALID);
    eval 'sub CHANNEL () {0xf;}' unless defined(&CHANNEL);
    eval 'sub CHANNEL_0 () {1;}' unless defined(&CHANNEL_0);
    eval 'sub CHANNEL_1 () {2;}' unless defined(&CHANNEL_1);
    eval 'sub CHANNEL_2 () {4;}' unless defined(&CHANNEL_2);
    eval 'sub CHANNEL_3 () {8;}' unless defined(&CHANNEL_3);
    eval 'sub LEFT_CHANNEL () { &CHANNEL_0;}' unless defined(&LEFT_CHANNEL);
    eval 'sub RIGHT_CHANNEL () { &CHANNEL_1;}' unless defined(&RIGHT_CHANNEL);
    eval 'sub MUTE_CHANNEL () {0x;}' unless defined(&MUTE_CHANNEL);
    eval 'sub BOTH_CHANNEL () { &LEFT_CHANNEL |  &RIGHT_CHANNEL;}' unless defined(&BOTH_CHANNEL);
    eval 'sub LEFT_PORT () {0;}' unless defined(&LEFT_PORT);
    eval 'sub RIGHT_PORT () {1;}' unless defined(&RIGHT_PORT);
    eval 'sub CD_DA_BLKSIZ () {2352;}' unless defined(&CD_DA_BLKSIZ);
    eval 'sub CD_NORMAL_DENSITY_CODE () {0x;}' unless defined(&CD_NORMAL_DENSITY_CODE);
    eval 'sub CD_DA_DENSITY_CODE () {0x82;}' unless defined(&CD_DA_DENSITY_CODE);
    eval 'sub CDRETRIES () {4;}' unless defined(&CDRETRIES);
    if(defined(&_KERNEL)) {
	eval 'sub CDF_LOCKED () {0x1;}' unless defined(&CDF_LOCKED);
	eval 'sub CDF_WANTED () {0x2;}' unless defined(&CDF_WANTED);
	eval 'sub CDF_WLABEL () {0x4;}' unless defined(&CDF_WLABEL);
	eval 'sub CDF_LABELLING () {0x8;}' unless defined(&CDF_LABELLING);
	eval 'sub CDF_ANCIENT () {0x10;}' unless defined(&CDF_ANCIENT);
	if(defined(&CDDA)) {
	    eval 'sub CDF_CDDA () {0x20;}' unless defined(&CDF_CDDA);
	}
	if(defined(&CDDA)) {
	}
    }
}
1;
