require '_h2ph_pre.ph';

unless(defined(&_LINUX_AMIFDREG_H)) {
    eval 'sub _LINUX_AMIFDREG_H () {1;}' unless defined(&_LINUX_AMIFDREG_H);
    eval 'sub DSKRDY () {(0x1<<5);}' unless defined(&DSKRDY);
    eval 'sub DSKTRACK0 () {(0x1<<4);}' unless defined(&DSKTRACK0);
    eval 'sub DSKPROT () {(0x1<<3);}' unless defined(&DSKPROT);
    eval 'sub DSKCHANGE () {(0x1<<2);}' unless defined(&DSKCHANGE);
    eval 'sub DSKMOTOR () {(0x1<<7);}' unless defined(&DSKMOTOR);
    eval 'sub DSKSEL3 () {(0x1<<6);}' unless defined(&DSKSEL3);
    eval 'sub DSKSEL2 () {(0x1<<5);}' unless defined(&DSKSEL2);
    eval 'sub DSKSEL1 () {(0x1<<4);}' unless defined(&DSKSEL1);
    eval 'sub DSKSEL0 () {(0x1<<3);}' unless defined(&DSKSEL0);
    eval 'sub DSKSIDE () {(0x1<<2);}' unless defined(&DSKSIDE);
    eval 'sub DSKDIREC () {(0x1<<1);}' unless defined(&DSKDIREC);
    eval 'sub DSKSTEP () {(0x1);}' unless defined(&DSKSTEP);
    eval 'sub DSKBYT () {(1<<15);}' unless defined(&DSKBYT);
    eval 'sub DMAON () {(1<<14);}' unless defined(&DMAON);
    eval 'sub DISKWRITE () {(1<<13);}' unless defined(&DISKWRITE);
    eval 'sub WORDEQUAL () {(1<<12);}' unless defined(&WORDEQUAL);
    unless(defined(&SETCLR)) {
	eval 'sub ADK_SETCLR () {(1<<15);}' unless defined(&ADK_SETCLR);
    }
    eval 'sub ADK_PRECOMP1 () {(1<<14);}' unless defined(&ADK_PRECOMP1);
    eval 'sub ADK_PRECOMP0 () {(1<<13);}' unless defined(&ADK_PRECOMP0);
    eval 'sub ADK_MFMPREC () {(1<<12);}' unless defined(&ADK_MFMPREC);
    eval 'sub ADK_WORDSYNC () {(1<<10);}' unless defined(&ADK_WORDSYNC);
    eval 'sub ADK_MSBSYNC () {(1<<9);}' unless defined(&ADK_MSBSYNC);
    eval 'sub ADK_FAST () {(1<<8);}' unless defined(&ADK_FAST);
    eval 'sub DSKLEN_DMAEN () {(1<<15);}' unless defined(&DSKLEN_DMAEN);
    eval 'sub DSKLEN_WRITE () {(1<<14);}' unless defined(&DSKLEN_WRITE);
    eval 'sub DSKINDEX () {(0x1<<4);}' unless defined(&DSKINDEX);
    eval 'sub MFM_SYNC () {0x4489;}' unless defined(&MFM_SYNC);
    eval 'sub FD_RECALIBRATE () {0x7;}' unless defined(&FD_RECALIBRATE);
    eval 'sub FD_SEEK () {0xf;}' unless defined(&FD_SEEK);
    eval 'sub FD_READ () {0xe6;}' unless defined(&FD_READ);
    eval 'sub FD_WRITE () {0xc5;}' unless defined(&FD_WRITE);
    eval 'sub FD_SENSEI () {0x8;}' unless defined(&FD_SENSEI);
    eval 'sub FD_SPECIFY () {0x3;}' unless defined(&FD_SPECIFY);
    eval 'sub FD_FORMAT () {0x4d;}' unless defined(&FD_FORMAT);
    eval 'sub FD_VERSION () {0x10;}' unless defined(&FD_VERSION);
    eval 'sub FD_CONFIGURE () {0x13;}' unless defined(&FD_CONFIGURE);
    eval 'sub FD_PERPENDICULAR () {0x12;}' unless defined(&FD_PERPENDICULAR);
}
1;
