require '_h2ph_pre.ph';

unless(defined(&_PARPORT_H_)) {
    eval 'sub _PARPORT_H_ () {1;}' unless defined(&_PARPORT_H_);
    eval 'sub PARPORT_MAX () {16;}' unless defined(&PARPORT_MAX);
    eval 'sub PARPORT_IRQ_NONE () {-1;}' unless defined(&PARPORT_IRQ_NONE);
    eval 'sub PARPORT_DMA_NONE () {-1;}' unless defined(&PARPORT_DMA_NONE);
    eval 'sub PARPORT_IRQ_AUTO () {-2;}' unless defined(&PARPORT_IRQ_AUTO);
    eval 'sub PARPORT_DMA_AUTO () {-2;}' unless defined(&PARPORT_DMA_AUTO);
    eval 'sub PARPORT_DMA_NOFIFO () {-3;}' unless defined(&PARPORT_DMA_NOFIFO);
    eval 'sub PARPORT_DISABLE () {-2;}' unless defined(&PARPORT_DISABLE);
    eval 'sub PARPORT_IRQ_PROBEONLY () {-3;}' unless defined(&PARPORT_IRQ_PROBEONLY);
    eval 'sub PARPORT_IOHI_AUTO () {-1;}' unless defined(&PARPORT_IOHI_AUTO);
    eval 'sub PARPORT_CONTROL_STROBE () {0x1;}' unless defined(&PARPORT_CONTROL_STROBE);
    eval 'sub PARPORT_CONTROL_AUTOFD () {0x2;}' unless defined(&PARPORT_CONTROL_AUTOFD);
    eval 'sub PARPORT_CONTROL_INIT () {0x4;}' unless defined(&PARPORT_CONTROL_INIT);
    eval 'sub PARPORT_CONTROL_SELECT () {0x8;}' unless defined(&PARPORT_CONTROL_SELECT);
    eval 'sub PARPORT_STATUS_ERROR () {0x8;}' unless defined(&PARPORT_STATUS_ERROR);
    eval 'sub PARPORT_STATUS_SELECT () {0x10;}' unless defined(&PARPORT_STATUS_SELECT);
    eval 'sub PARPORT_STATUS_PAPEROUT () {0x20;}' unless defined(&PARPORT_STATUS_PAPEROUT);
    eval 'sub PARPORT_STATUS_ACK () {0x40;}' unless defined(&PARPORT_STATUS_ACK);
    eval 'sub PARPORT_STATUS_BUSY () {0x80;}' unless defined(&PARPORT_STATUS_BUSY);
    eval("sub PARPORT_CLASS_LEGACY () { 0; }") unless defined(&PARPORT_CLASS_LEGACY);
    eval("sub PARPORT_CLASS_PRINTER () { 1; }") unless defined(&PARPORT_CLASS_PRINTER);
    eval("sub PARPORT_CLASS_MODEM () { 2; }") unless defined(&PARPORT_CLASS_MODEM);
    eval("sub PARPORT_CLASS_NET () { 3; }") unless defined(&PARPORT_CLASS_NET);
    eval("sub PARPORT_CLASS_HDC () { 4; }") unless defined(&PARPORT_CLASS_HDC);
    eval("sub PARPORT_CLASS_PCMCIA () { 5; }") unless defined(&PARPORT_CLASS_PCMCIA);
    eval("sub PARPORT_CLASS_MEDIA () { 6; }") unless defined(&PARPORT_CLASS_MEDIA);
    eval("sub PARPORT_CLASS_FDC () { 7; }") unless defined(&PARPORT_CLASS_FDC);
    eval("sub PARPORT_CLASS_PORTS () { 8; }") unless defined(&PARPORT_CLASS_PORTS);
    eval("sub PARPORT_CLASS_SCANNER () { 9; }") unless defined(&PARPORT_CLASS_SCANNER);
    eval("sub PARPORT_CLASS_DIGCAM () { 10; }") unless defined(&PARPORT_CLASS_DIGCAM);
    eval("sub PARPORT_CLASS_OTHER () { 11; }") unless defined(&PARPORT_CLASS_OTHER);
    eval("sub PARPORT_CLASS_UNSPEC () { 12; }") unless defined(&PARPORT_CLASS_UNSPEC);
    eval("sub PARPORT_CLASS_SCSIADAPTER () { 13; }") unless defined(&PARPORT_CLASS_SCSIADAPTER);
    eval 'sub PARPORT_MODE_PCSPP () {(1<<0);}' unless defined(&PARPORT_MODE_PCSPP);
    eval 'sub PARPORT_MODE_TRISTATE () {(1<<1);}' unless defined(&PARPORT_MODE_TRISTATE);
    eval 'sub PARPORT_MODE_EPP () {(1<<2);}' unless defined(&PARPORT_MODE_EPP);
    eval 'sub PARPORT_MODE_ECP () {(1<<3);}' unless defined(&PARPORT_MODE_ECP);
    eval 'sub PARPORT_MODE_COMPAT () {(1<<4);}' unless defined(&PARPORT_MODE_COMPAT);
    eval 'sub PARPORT_MODE_DMA () {(1<<5);}' unless defined(&PARPORT_MODE_DMA);
    eval 'sub PARPORT_MODE_SAFEININT () {(1<<6);}' unless defined(&PARPORT_MODE_SAFEININT);
    eval 'sub IEEE1284_MODE_NIBBLE () {0;}' unless defined(&IEEE1284_MODE_NIBBLE);
    eval 'sub IEEE1284_MODE_BYTE () {(1<<0);}' unless defined(&IEEE1284_MODE_BYTE);
    eval 'sub IEEE1284_MODE_COMPAT () {(1<<8);}' unless defined(&IEEE1284_MODE_COMPAT);
    eval 'sub IEEE1284_MODE_BECP () {(1<<9);}' unless defined(&IEEE1284_MODE_BECP);
    eval 'sub IEEE1284_MODE_ECP () {(1<<4);}' unless defined(&IEEE1284_MODE_ECP);
    eval 'sub IEEE1284_MODE_ECPRLE () {( &IEEE1284_MODE_ECP | (1<<5));}' unless defined(&IEEE1284_MODE_ECPRLE);
    eval 'sub IEEE1284_MODE_ECPSWE () {(1<<10);}' unless defined(&IEEE1284_MODE_ECPSWE);
    eval 'sub IEEE1284_MODE_EPP () {(1<<6);}' unless defined(&IEEE1284_MODE_EPP);
    eval 'sub IEEE1284_MODE_EPPSL () {(1<<11);}' unless defined(&IEEE1284_MODE_EPPSL);
    eval 'sub IEEE1284_MODE_EPPSWE () {(1<<12);}' unless defined(&IEEE1284_MODE_EPPSWE);
    eval 'sub IEEE1284_DEVICEID () {(1<<2);}' unless defined(&IEEE1284_DEVICEID);
    eval 'sub IEEE1284_EXT_LINK () {(1<<14);}' unless defined(&IEEE1284_EXT_LINK);
    eval 'sub IEEE1284_ADDR () {(1<<13);}' unless defined(&IEEE1284_ADDR);
    eval 'sub IEEE1284_DATA () {0;}' unless defined(&IEEE1284_DATA);
    eval 'sub PARPORT_EPP_FAST () {(1<<0);}' unless defined(&PARPORT_EPP_FAST);
    eval 'sub PARPORT_W91284PIC () {(1<<1);}' unless defined(&PARPORT_W91284PIC);
}
1;
