require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_CCDVAR_H_)) {
    eval 'sub _DEV_CCDVAR_H_ () {1;}' unless defined(&_DEV_CCDVAR_H_);
    require 'sys/ioccom.ph';
    if(defined(&_KERNEL)) {
	require 'sys/buf.ph';
	require 'sys/mutex.ph';
	require 'sys/queue.ph';
	require 'sys/condvar.ph';
    }
    if(defined(&_KERNEL)) {
	eval 'sub CCD_MAXNDISKS () {65536;}' unless defined(&CCD_MAXNDISKS);
    }
    eval 'sub CCDF_UNIFORM () {0x2;}' unless defined(&CCDF_UNIFORM);
    eval 'sub CCDF_NOLABEL () {0x4;}' unless defined(&CCDF_NOLABEL);
    eval 'sub CCDF_INITED () {0x10;}' unless defined(&CCDF_INITED);
    eval 'sub CCDF_WLABEL () {0x20;}' unless defined(&CCDF_WLABEL);
    eval 'sub CCDF_LABELLING () {0x40;}' unless defined(&CCDF_LABELLING);
    eval 'sub CCDF_KLABEL () {0x80;}' unless defined(&CCDF_KLABEL);
    eval 'sub CCDF_VLABEL () {0x100;}' unless defined(&CCDF_VLABEL);
    eval 'sub CCDF_RLABEL () {0x200;}' unless defined(&CCDF_RLABEL);
    eval 'sub CCDF_USERMASK () {( &CCDF_UNIFORM| &CCDF_NOLABEL);}' unless defined(&CCDF_USERMASK);
    eval 'sub CCDIOCSET () { &_IOWR(ord(\'F\'), 16, \'struct ccd_ioctl\');}' unless defined(&CCDIOCSET);
    eval 'sub CCDIOCCLR () { &_IOW(ord(\'F\'), 17, \'struct ccd_ioctl\');}' unless defined(&CCDIOCCLR);
}
1;
