require '_h2ph_pre.ph';

no warnings qw(redefine misc);

eval 'sub CD_RELADDR () {0x1;}' unless defined(&CD_RELADDR);
eval 'sub CD_MSF () {0x2;}' unless defined(&CD_MSF);
eval 'sub LOAD_UNLOAD () {0xa6;}' unless defined(&LOAD_UNLOAD);
eval 'sub PAUSE () {0x4b;}' unless defined(&PAUSE);
eval 'sub PA_PAUSE () {0x;}' unless defined(&PA_PAUSE);
eval 'sub PA_RESUME () {0x1;}' unless defined(&PA_RESUME);
eval 'sub PLAY_MSF () {0x47;}' unless defined(&PLAY_MSF);
eval 'sub PLAY () {0x45;}' unless defined(&PLAY);
eval 'sub READ_HEADER () {0x44;}' unless defined(&READ_HEADER);
eval 'sub READ_SUBCHANNEL () {0x42;}' unless defined(&READ_SUBCHANNEL);
eval 'sub SRS_SUBQ () {0x40;}' unless defined(&SRS_SUBQ);
eval 'sub READ_TOC () {0x43;}' unless defined(&READ_TOC);
eval 'sub GET_CONFIGURATION () {0x46;}' unless defined(&GET_CONFIGURATION);
eval 'sub GET_CONF_NO_FEATURES_LEN () {8;}' unless defined(&GET_CONF_NO_FEATURES_LEN);
eval 'sub FEATUREFLAG_CURRENT () {1;}' unless defined(&FEATUREFLAG_CURRENT);
eval 'sub FEATUREFLAG_PERSISTENT () {2;}' unless defined(&FEATUREFLAG_PERSISTENT);
eval 'sub READ_DISCINFO () {0x51;}' unless defined(&READ_DISCINFO);
eval 'sub READ_DISCINFO_SMALLSIZE () {12;}' unless defined(&READ_DISCINFO_SMALLSIZE);
eval 'sub READ_DISCINFO_BIGSIZE () {34;}' unless defined(&READ_DISCINFO_BIGSIZE);
eval 'sub READ_TRACKINFO () {0x52;}' unless defined(&READ_TRACKINFO);
eval 'sub READ_TRACKINFO_ADDR_LBA () {0;}' unless defined(&READ_TRACKINFO_ADDR_LBA);
eval 'sub READ_TRACKINFO_ADDR_TRACK () {1;}' unless defined(&READ_TRACKINFO_ADDR_TRACK);
eval 'sub READ_TRACKINFO_ADDR_SESS () {2;}' unless defined(&READ_TRACKINFO_ADDR_SESS);
eval 'sub READ_TRACKINFO_RETURNSIZE () {36;}' unless defined(&READ_TRACKINFO_RETURNSIZE);
eval 'sub CLOSE_TRACKSESSION () {0x5b;}' unless defined(&CLOSE_TRACKSESSION);
eval 'sub RESERVE_TRACK () {0x53;}' unless defined(&RESERVE_TRACK);
eval 'sub REPAIR_TRACK () {0x58;}' unless defined(&REPAIR_TRACK);
eval 'sub READ_CD_CAPACITY () {0x25;}' unless defined(&READ_CD_CAPACITY);
eval 'sub AUDIO_PAGE () {0xe;}' unless defined(&AUDIO_PAGE);
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);
1;
