require '_h2ph_pre.ph';

unless(defined(&DRIVE_ATA)) {
    sub DRIVE_ATA () {	0x0001;}
}
unless(defined(&DRIVE_ATAPI)) {
    sub DRIVE_ATAPI () {	0x0002;}
}
unless(defined(&DRIVE_OLD)) {
    sub DRIVE_OLD () {	0x0004;}
}
unless(defined(&DRIVE)) {
    sub DRIVE () {	( &DRIVE_ATA| &DRIVE_ATAPI| &DRIVE_OLD);}
}
unless(defined(&DRIVE_CAP32)) {
    sub DRIVE_CAP32 () {	0x0008;}
}
unless(defined(&DRIVE_DMA)) {
    sub DRIVE_DMA () {	0x0010;}
}
unless(defined(&DRIVE_UDMA)) {
    sub DRIVE_UDMA () {	0x0020;}
}
unless(defined(&DRIVE_MODE)) {
    sub DRIVE_MODE () {	0x0040;}
}
unless(defined(&DRIVE_RESET)) {
    sub DRIVE_RESET () {	0x0080;}
}
unless(defined(&DRIVE_DMAERR)) {
    sub DRIVE_DMAERR () {	0x0100;}
}
unless(defined(&DRIVE_DSCBA)) {
    sub DRIVE_DSCBA () {	0x0200;}
}
unless(defined(&DRIVE_DSCWAIT)) {
    sub DRIVE_DSCWAIT () {	0x0400;}
}
unless(defined(&ACAP_LEN)) {
    sub ACAP_LEN () {	0x01;}
}
unless(defined(&ACAP_DSC)) {
    sub ACAP_DSC () {	0x02;}
}
unless(defined(&NERRS_MAX)) {
    sub NERRS_MAX () {	4;}
}
unless(defined(&NXFER)) {
    sub NXFER () {	1000;}
}
unless(defined(&T_ATA)) {
    sub T_ATA () {	0;}
}
unless(defined(&T_ATAPI)) {
    sub T_ATAPI () {	1;}
}
unless(defined(&ATA_CONFIG_PIO_MODES)) {
    sub ATA_CONFIG_PIO_MODES () {	0x0007;}
}
unless(defined(&ATA_CONFIG_PIO_SET)) {
    sub ATA_CONFIG_PIO_SET () {	0x0008;}
}
unless(defined(&ATA_CONFIG_PIO_OFF)) {
    sub ATA_CONFIG_PIO_OFF () {	0;}
}
unless(defined(&ATA_CONFIG_DMA_MODES)) {
    sub ATA_CONFIG_DMA_MODES () {	0x0070;}
}
unless(defined(&ATA_CONFIG_DMA_SET)) {
    sub ATA_CONFIG_DMA_SET () {	0x0080;}
}
unless(defined(&ATA_CONFIG_DMA_DISABLE)) {
    sub ATA_CONFIG_DMA_DISABLE () {	0x0070;}
}
unless(defined(&ATA_CONFIG_DMA_OFF)) {
    sub ATA_CONFIG_DMA_OFF () {	4;}
}
unless(defined(&ATA_CONFIG_UDMA_MODES)) {
    sub ATA_CONFIG_UDMA_MODES () {	0x0700;}
}
unless(defined(&ATA_CONFIG_UDMA_SET)) {
    sub ATA_CONFIG_UDMA_SET () {	0x0800;}
}
unless(defined(&ATA_CONFIG_UDMA_DISABLE)) {
    sub ATA_CONFIG_UDMA_DISABLE () {	0x0700;}
}
unless(defined(&ATA_CONFIG_UDMA_OFF)) {
    sub ATA_CONFIG_UDMA_OFF () {	8;}
}
unless(defined(&AT_READ)) {
    sub AT_READ () {	0x0001;}
}
unless(defined(&AT_WRITE)) {
    sub AT_WRITE () {	0x0002;}
}
unless(defined(&AT_WAIT)) {
    sub AT_WAIT () {	0x0008;}
}
unless(defined(&AT_POLL)) {
    sub AT_POLL () {	0x0010;}
}
unless(defined(&AT_DONE)) {
    sub AT_DONE () {	0x0020;}
}
unless(defined(&AT_ERROR)) {
    sub AT_ERROR () {	0x0040;}
}
unless(defined(&AT_TIMEOU)) {
    sub AT_TIMEOU () {	0x0080;}
}
unless(defined(&AT_DF)) {
    sub AT_DF () {	0x0100;}
}
unless(defined(&AT_READREG)) {
    sub AT_READREG () {	0x0200;}
}
unless(defined(&WDC_COMPLETE)) {
    sub WDC_COMPLETE () {	0x01;}
}
unless(defined(&WDC_QUEUED)) {
    sub WDC_QUEUED () {	0x02;}
}
unless(defined(&WDC_TRY_AGAIN)) {
    sub WDC_TRY_AGAIN () {	0x03;}
}
unless(defined(&CMD_OK)) {
    sub CMD_OK () {	0;}
}
unless(defined(&CMD_ERR)) {
    sub CMD_ERR () {	1;}
}
unless(defined(&CMD_AGAIN)) {
    sub CMD_AGAIN () {	2;}
}
1;
