require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_ISA_ISAPNPREG_H_)) {
    eval 'sub _DEV_ISA_ISAPNPREG_H_ () {1;}' unless defined(&_DEV_ISA_ISAPNPREG_H_);
    eval 'sub ISAPNP_MAX_CARDS () {8;}' unless defined(&ISAPNP_MAX_CARDS);
    eval 'sub ISAPNP_MAX_IDENT () {32;}' unless defined(&ISAPNP_MAX_IDENT);
    eval 'sub ISAPNP_MAX_DEVCLASS () {16;}' unless defined(&ISAPNP_MAX_DEVCLASS);
    eval 'sub ISAPNP_SERIAL_SIZE () {9;}' unless defined(&ISAPNP_SERIAL_SIZE);
    eval 'sub ISAPNP_MAX_TAGSIZE () {256;}' unless defined(&ISAPNP_MAX_TAGSIZE);
    eval 'sub ISAPNP_ADDR () {0x279;}' unless defined(&ISAPNP_ADDR);
    eval 'sub ISAPNP_WRDATA () {0xa79;}' unless defined(&ISAPNP_WRDATA);
    eval 'sub ISAPNP_RDDATA_MIN () {0x203;}' unless defined(&ISAPNP_RDDATA_MIN);
    eval 'sub ISAPNP_RDDATA_MAX () {0x3ff;}' unless defined(&ISAPNP_RDDATA_MAX);
    eval 'sub ISAPNP_LFSR_INIT () {0x6a;}' unless defined(&ISAPNP_LFSR_INIT);
    eval 'sub ISAPNP_LFSR_LENGTH () {32;}' unless defined(&ISAPNP_LFSR_LENGTH);
    eval 'sub ISAPNP_LFSR_NEXT {
        my($v) = @_;
	    eval q(((($v) >> 1) | ((($v) & 1) ^ ((($v) & 2) >> 1)) << 7));
    }' unless defined(&ISAPNP_LFSR_NEXT);
    eval 'sub ISAPNP_SET_RD_PORT () {0x;}' unless defined(&ISAPNP_SET_RD_PORT);
    eval 'sub ISAPNP_SERIAL_ISOLATION () {0x1;}' unless defined(&ISAPNP_SERIAL_ISOLATION);
    eval 'sub ISAPNP_CONFIG_CONTROL () {0x2;}' unless defined(&ISAPNP_CONFIG_CONTROL);
    eval 'sub ISAPNP_CC_RESET () {0x1;}' unless defined(&ISAPNP_CC_RESET);
    eval 'sub ISAPNP_CC_WAIT_FOR_KEY () {0x2;}' unless defined(&ISAPNP_CC_WAIT_FOR_KEY);
    eval 'sub ISAPNP_CC_RESET_CSN () {0x4;}' unless defined(&ISAPNP_CC_RESET_CSN);
    eval 'sub ISAPNP_CC_RESET_DRV () {0x7;}' unless defined(&ISAPNP_CC_RESET_DRV);
    eval 'sub ISAPNP_WAKE () {0x3;}' unless defined(&ISAPNP_WAKE);
    eval 'sub ISAPNP_RESOURCE_DATA () {0x4;}' unless defined(&ISAPNP_RESOURCE_DATA);
    eval 'sub ISAPNP_STATUS () {0x5;}' unless defined(&ISAPNP_STATUS);
    eval 'sub ISAPNP_CARD_SELECT_NUM () {0x6;}' unless defined(&ISAPNP_CARD_SELECT_NUM);
    eval 'sub ISAPNP_LOGICAL_DEV_NUM () {0x7;}' unless defined(&ISAPNP_LOGICAL_DEV_NUM);
    eval 'sub ISAPNP_ACTIVATE () {0x30;}' unless defined(&ISAPNP_ACTIVATE);
    eval 'sub ISAPNP_IO_RANGE_CHECK () {0x31;}' unless defined(&ISAPNP_IO_RANGE_CHECK);
    eval 'sub ISAPNP_NUM_MEM () {4;}' unless defined(&ISAPNP_NUM_MEM);
    eval 'sub ISAPNP_MEM_DESC () {{ 0x40, 0x48, 0x50, 0x58 };}' unless defined(&ISAPNP_MEM_DESC);
    eval 'sub ISAPNP_MEM_BASE_23_16 () {0x;}' unless defined(&ISAPNP_MEM_BASE_23_16);
    eval 'sub ISAPNP_MEM_BASE_15_8 () {0x1;}' unless defined(&ISAPNP_MEM_BASE_15_8);
    eval 'sub ISAPNP_MEM_CONTROL () {0x2;}' unless defined(&ISAPNP_MEM_CONTROL);
    eval 'sub ISAPNP_MEM_CONTROL_LIMIT () {1;}' unless defined(&ISAPNP_MEM_CONTROL_LIMIT);
    eval 'sub ISAPNP_MEM_CONTROL_16 () {2;}' unless defined(&ISAPNP_MEM_CONTROL_16);
    eval 'sub ISAPNP_MEM_LRANGE_23_16 () {0x3;}' unless defined(&ISAPNP_MEM_LRANGE_23_16);
    eval 'sub ISAPNP_MEM_LRANGE_15_8 () {0x4;}' unless defined(&ISAPNP_MEM_LRANGE_15_8);
    eval 'sub ISAPNP_NUM_IO () {8;}' unless defined(&ISAPNP_NUM_IO);
    eval 'sub ISAPNP_IO_DESC () {{ 0x60, 0x62, 0x64, 0x68, 0x6a, 0x6c, 0x6e };}' unless defined(&ISAPNP_IO_DESC);
    eval 'sub ISAPNP_IO_BASE_15_8 () {0x;}' unless defined(&ISAPNP_IO_BASE_15_8);
    eval 'sub ISAPNP_IO_BASE_7_0 () {0x1;}' unless defined(&ISAPNP_IO_BASE_7_0);
    eval 'sub ISAPNP_NUM_IRQ () {16;}' unless defined(&ISAPNP_NUM_IRQ);
    eval 'sub ISAPNP_IRQ_DESC () {{ 0x70, 0x72 };}' unless defined(&ISAPNP_IRQ_DESC);
    eval 'sub ISAPNP_IRQ_NUMBER () {0x;}' unless defined(&ISAPNP_IRQ_NUMBER);
    eval 'sub ISAPNP_IRQ_CONTROL () {0x1;}' unless defined(&ISAPNP_IRQ_CONTROL);
    eval 'sub ISAPNP_IRQ_LEVEL () {1;}' unless defined(&ISAPNP_IRQ_LEVEL);
    eval 'sub ISAPNP_IRQ_HIGH () {2;}' unless defined(&ISAPNP_IRQ_HIGH);
    eval 'sub ISAPNP_NUM_DRQ () {8;}' unless defined(&ISAPNP_NUM_DRQ);
    eval 'sub ISAPNP_DRQ_DESC () {{ 0x74, 0x75 };}' unless defined(&ISAPNP_DRQ_DESC);
    eval 'sub ISAPNP_NUM_MEM32 () {4;}' unless defined(&ISAPNP_NUM_MEM32);
    eval 'sub ISAPNP_MEM32_DESC () {{ 0x76, 0x80, 0x90, 0xa0 };}' unless defined(&ISAPNP_MEM32_DESC);
    eval 'sub ISAPNP_MEM32_BASE_31_24 () {0x;}' unless defined(&ISAPNP_MEM32_BASE_31_24);
    eval 'sub ISAPNP_MEM32_BASE_23_16 () {0x1;}' unless defined(&ISAPNP_MEM32_BASE_23_16);
    eval 'sub ISAPNP_MEM32_BASE_15_8 () {0x2;}' unless defined(&ISAPNP_MEM32_BASE_15_8);
    eval 'sub ISAPNP_MEM32_BASE_7_0 () {0x3;}' unless defined(&ISAPNP_MEM32_BASE_7_0);
    eval 'sub ISAPNP_MEM32_CONTROL () {0x4;}' unless defined(&ISAPNP_MEM32_CONTROL);
    eval 'sub ISAPNP_MEM32_CONTROL_LIMIT () {1;}' unless defined(&ISAPNP_MEM32_CONTROL_LIMIT);
    eval 'sub ISAPNP_MEM32_CONTROL_16 () {2;}' unless defined(&ISAPNP_MEM32_CONTROL_16);
    eval 'sub ISAPNP_MEM32_CONTROL_32 () {6;}' unless defined(&ISAPNP_MEM32_CONTROL_32);
    eval 'sub ISAPNP_MEM32_LRANGE_31_24 () {0x5;}' unless defined(&ISAPNP_MEM32_LRANGE_31_24);
    eval 'sub ISAPNP_MEM32_LRANGE_23_16 () {0x6;}' unless defined(&ISAPNP_MEM32_LRANGE_23_16);
    eval 'sub ISAPNP_MEM32_LRANGE_15_8 () {0x7;}' unless defined(&ISAPNP_MEM32_LRANGE_15_8);
    eval 'sub ISAPNP_MEM32_LRANGE_7_0 () {0x8;}' unless defined(&ISAPNP_MEM32_LRANGE_7_0);
    eval 'sub ISAPNP_TAG_VERSION_NUM () {0x1;}' unless defined(&ISAPNP_TAG_VERSION_NUM);
    eval 'sub ISAPNP_TAG_LOGICAL_DEV_ID () {0x2;}' unless defined(&ISAPNP_TAG_LOGICAL_DEV_ID);
    eval 'sub ISAPNP_TAG_COMPAT_DEV_ID () {0x3;}' unless defined(&ISAPNP_TAG_COMPAT_DEV_ID);
    eval 'sub ISAPNP_TAG_IRQ_FORMAT () {0x4;}' unless defined(&ISAPNP_TAG_IRQ_FORMAT);
    eval 'sub ISAPNP_IRQTYPE_EDGE_PLUS () {1;}' unless defined(&ISAPNP_IRQTYPE_EDGE_PLUS);
    eval 'sub ISAPNP_IRQTYPE_EDGE_MINUS () {2;}' unless defined(&ISAPNP_IRQTYPE_EDGE_MINUS);
    eval 'sub ISAPNP_IRQTYPE_LEVEL_PLUS () {4;}' unless defined(&ISAPNP_IRQTYPE_LEVEL_PLUS);
    eval 'sub ISAPNP_IRQTYPE_LEVEL_MINUS () {8;}' unless defined(&ISAPNP_IRQTYPE_LEVEL_MINUS);
    eval 'sub ISAPNP_TAG_DMA_FORMAT () {0x5;}' unless defined(&ISAPNP_TAG_DMA_FORMAT);
    eval 'sub ISAPNP_DMAWIDTH_8 () {0x;}' unless defined(&ISAPNP_DMAWIDTH_8);
    eval 'sub ISAPNP_DMAWIDTH_8_16 () {0x1;}' unless defined(&ISAPNP_DMAWIDTH_8_16);
    eval 'sub ISAPNP_DMAWIDTH_16 () {0x2;}' unless defined(&ISAPNP_DMAWIDTH_16);
    eval 'sub ISAPNP_DMAWIDTH_RESERVED () {0x3;}' unless defined(&ISAPNP_DMAWIDTH_RESERVED);
    eval 'sub ISAPNP_DMAWIDTH_MASK () {0x3;}' unless defined(&ISAPNP_DMAWIDTH_MASK);
    eval 'sub ISAPNP_DMAATTR_BUS_MASTER () {0x4;}' unless defined(&ISAPNP_DMAATTR_BUS_MASTER);
    eval 'sub ISAPNP_DMAATTR_INCR_8 () {0x8;}' unless defined(&ISAPNP_DMAATTR_INCR_8);
    eval 'sub ISAPNP_DMAATTR_INCR_16 () {0x10;}' unless defined(&ISAPNP_DMAATTR_INCR_16);
    eval 'sub ISAPNP_DMAATTR_MASK () {0x1c;}' unless defined(&ISAPNP_DMAATTR_MASK);
    eval 'sub ISAPNP_DMASPEED_COMPAT () {0x;}' unless defined(&ISAPNP_DMASPEED_COMPAT);
    eval 'sub ISAPNP_DMASPEED_A () {0x20;}' unless defined(&ISAPNP_DMASPEED_A);
    eval 'sub ISAPNP_DMASPEED_B () {0x40;}' unless defined(&ISAPNP_DMASPEED_B);
    eval 'sub ISAPNP_DMASPEED_F () {0x60;}' unless defined(&ISAPNP_DMASPEED_F);
    eval 'sub ISAPNP_DMASPEED_MASK () {0x60;}' unless defined(&ISAPNP_DMASPEED_MASK);
    eval 'sub ISAPNP_TAG_DEP_START () {0x6;}' unless defined(&ISAPNP_TAG_DEP_START);
    eval 'sub ISAPNP_DEP_PREFERRED () {0x;}' unless defined(&ISAPNP_DEP_PREFERRED);
    eval 'sub ISAPNP_DEP_ACCEPTABLE () {0x1;}' unless defined(&ISAPNP_DEP_ACCEPTABLE);
    eval 'sub ISAPNP_DEP_FUNCTIONAL () {0x2;}' unless defined(&ISAPNP_DEP_FUNCTIONAL);
    eval 'sub ISAPNP_DEP_RESERVED () {0x3;}' unless defined(&ISAPNP_DEP_RESERVED);
    eval 'sub ISAPNP_DEP_MASK () {0x3;}' unless defined(&ISAPNP_DEP_MASK);
    eval 'sub ISAPNP_DEP_UNSET () {0x80;}' unless defined(&ISAPNP_DEP_UNSET);
    eval 'sub ISAPNP_DEP_CONFLICTING () {0x81;}' unless defined(&ISAPNP_DEP_CONFLICTING);
    eval 'sub ISAPNP_TAG_DEP_END () {0x7;}' unless defined(&ISAPNP_TAG_DEP_END);
    eval 'sub ISAPNP_TAG_IO_PORT_DESC () {0x8;}' unless defined(&ISAPNP_TAG_IO_PORT_DESC);
    eval 'sub ISAPNP_IOFLAGS_16 () {0x1;}' unless defined(&ISAPNP_IOFLAGS_16);
    eval 'sub ISAPNP_TAG_FIXED_IO_PORT_DESC () {0x9;}' unless defined(&ISAPNP_TAG_FIXED_IO_PORT_DESC);
    eval 'sub ISAPNP_TAG_RESERVED1 () {0xa;}' unless defined(&ISAPNP_TAG_RESERVED1);
    eval 'sub ISAPNP_TAG_RESERVED2 () {0xb;}' unless defined(&ISAPNP_TAG_RESERVED2);
    eval 'sub ISAPNP_TAG_RESERVED3 () {0xc;}' unless defined(&ISAPNP_TAG_RESERVED3);
    eval 'sub ISAPNP_TAG_RESERVED4 () {0xd;}' unless defined(&ISAPNP_TAG_RESERVED4);
    eval 'sub ISAPNP_TAG_VENDOR_DEF () {0xe;}' unless defined(&ISAPNP_TAG_VENDOR_DEF);
    eval 'sub ISAPNP_TAG_END () {0xf;}' unless defined(&ISAPNP_TAG_END);
    eval 'sub ISAPNP_LARGE_TAG () {0x80;}' unless defined(&ISAPNP_LARGE_TAG);
    eval 'sub ISAPNP_TAG_MEM_RANGE_DESC () {0x81;}' unless defined(&ISAPNP_TAG_MEM_RANGE_DESC);
    eval 'sub ISAPNP_MEMATTR_WRITEABLE () {0x1;}' unless defined(&ISAPNP_MEMATTR_WRITEABLE);
    eval 'sub ISAPNP_MEMATTR_CACHEABLE () {0x2;}' unless defined(&ISAPNP_MEMATTR_CACHEABLE);
    eval 'sub ISAPNP_MEMATTR_HIGH_ADDR () {0x4;}' unless defined(&ISAPNP_MEMATTR_HIGH_ADDR);
    eval 'sub ISAPNP_MEMATTR_SHADOWABLE () {0x20;}' unless defined(&ISAPNP_MEMATTR_SHADOWABLE);
    eval 'sub ISAPNP_MEMATTR_ROM () {0x40;}' unless defined(&ISAPNP_MEMATTR_ROM);
    eval 'sub ISAPNP_MEMATTR_MASK () {0x67;}' unless defined(&ISAPNP_MEMATTR_MASK);
    eval 'sub ISAPNP_MEMWIDTH_8 () {0x;}' unless defined(&ISAPNP_MEMWIDTH_8);
    eval 'sub ISAPNP_MEMWIDTH_16 () {0x8;}' unless defined(&ISAPNP_MEMWIDTH_16);
    eval 'sub ISAPNP_MEMWIDTH_8_16 () {0x10;}' unless defined(&ISAPNP_MEMWIDTH_8_16);
    eval 'sub ISAPNP_MEMWIDTH_32 () {0x18;}' unless defined(&ISAPNP_MEMWIDTH_32);
    eval 'sub ISAPNP_MEMWIDTH_MASK () {0x18;}' unless defined(&ISAPNP_MEMWIDTH_MASK);
    eval 'sub ISAPNP_TAG_ANSI_IDENT_STRING () {0x82;}' unless defined(&ISAPNP_TAG_ANSI_IDENT_STRING);
    eval 'sub ISAPNP_TAG_UNICODE_IDENT_STRING () {0x83;}' unless defined(&ISAPNP_TAG_UNICODE_IDENT_STRING);
    eval 'sub ISAPNP_TAG_VENDOR_DEFINED () {0x84;}' unless defined(&ISAPNP_TAG_VENDOR_DEFINED);
    eval 'sub ISAPNP_TAG_MEM32_RANGE_DESC () {0x85;}' unless defined(&ISAPNP_TAG_MEM32_RANGE_DESC);
    eval 'sub ISAPNP_TAG_FIXED_MEM32_RANGE_DESC () {0x86;}' unless defined(&ISAPNP_TAG_FIXED_MEM32_RANGE_DESC);
}
1;
