require '_h2ph_pre.ph';

unless(defined(&_CDK_H)) {
    eval 'sub _CDK_H () {1;}' unless defined(&_CDK_H);
    eval 'sub CDK_SIGADDR () {0x200;}' unless defined(&CDK_SIGADDR);
    eval 'sub CDK_FEATADDR () {0x280;}' unless defined(&CDK_FEATADDR);
    eval 'sub CDK_CDKADDR () {0x300;}' unless defined(&CDK_CDKADDR);
    eval 'sub CDK_RDYADDR () {0x262;}' unless defined(&CDK_RDYADDR);
    eval 'sub CDK_ALIVEMARKER () {13;}' unless defined(&CDK_ALIVEMARKER);
    eval 'sub ECP_MAGIC () {0x21504345;}' unless defined(&ECP_MAGIC);
    eval 'sub ONB_MAGIC0 () {0xf2a7;}' unless defined(&ONB_MAGIC0);
    eval 'sub ONB_MAGIC1 () {0xa149;}' unless defined(&ONB_MAGIC1);
    eval 'sub ONB_MAGIC2 () {0x6352;}' unless defined(&ONB_MAGIC2);
    eval 'sub ONB_MAGIC3 () {0xf121;}' unless defined(&ONB_MAGIC3);
    eval 'sub ETYP_DDK () {0;}' unless defined(&ETYP_DDK);
    eval 'sub ETYP_CDK () {1;}' unless defined(&ETYP_CDK);
    eval 'sub MODE_DDK () {0;}' unless defined(&MODE_DDK);
    eval 'sub MODE_CDK () {1;}' unless defined(&MODE_CDK);
    eval 'sub IMD_INTR () {0x;}' unless defined(&IMD_INTR);
    eval 'sub IMD_PPINTR () {0x1;}' unless defined(&IMD_PPINTR);
    eval 'sub IMD_POLL () {0xff;}' unless defined(&IMD_POLL);
    eval 'sub TYP_UNDEFINED () {0x;}' unless defined(&TYP_UNDEFINED);
    eval 'sub TYP_ASYNCTRL () {0x1;}' unless defined(&TYP_ASYNCTRL);
    eval 'sub TYP_ASYNC () {0x20;}' unless defined(&TYP_ASYNC);
    eval 'sub TYP_PARALLEL () {0x40;}' unless defined(&TYP_PARALLEL);
    eval 'sub TYP_SYNCX21 () {0x60;}' unless defined(&TYP_SYNCX21);
    eval 'sub ASYCMD () {(( ord(\'a\')) << 8);}' unless defined(&ASYCMD);
    eval 'sub A_NULL () {( &ASYCMD | 0);}' unless defined(&A_NULL);
    eval 'sub A_FLUSH () {( &ASYCMD | 1);}' unless defined(&A_FLUSH);
    eval 'sub A_BREAK () {( &ASYCMD | 2);}' unless defined(&A_BREAK);
    eval 'sub A_GETPORT () {( &ASYCMD | 3);}' unless defined(&A_GETPORT);
    eval 'sub A_SETPORT () {( &ASYCMD | 4);}' unless defined(&A_SETPORT);
    eval 'sub A_SETPORTF () {( &ASYCMD | 5);}' unless defined(&A_SETPORTF);
    eval 'sub A_SETPORTFTX () {( &ASYCMD | 6);}' unless defined(&A_SETPORTFTX);
    eval 'sub A_SETPORTFRX () {( &ASYCMD | 7);}' unless defined(&A_SETPORTFRX);
    eval 'sub A_GETSIGNALS () {( &ASYCMD | 8);}' unless defined(&A_GETSIGNALS);
    eval 'sub A_SETSIGNALS () {( &ASYCMD | 9);}' unless defined(&A_SETSIGNALS);
    eval 'sub A_SETSIGNALSF () {( &ASYCMD | 10);}' unless defined(&A_SETSIGNALSF);
    eval 'sub A_SETSIGNALSFTX () {( &ASYCMD | 11);}' unless defined(&A_SETSIGNALSFTX);
    eval 'sub A_SETSIGNALSFRX () {( &ASYCMD | 12);}' unless defined(&A_SETSIGNALSFRX);
    eval 'sub A_GETNOTIFY () {( &ASYCMD | 13);}' unless defined(&A_GETNOTIFY);
    eval 'sub A_SETNOTIFY () {( &ASYCMD | 14);}' unless defined(&A_SETNOTIFY);
    eval 'sub A_NOTIFY () {( &ASYCMD | 15);}' unless defined(&A_NOTIFY);
    eval 'sub A_PORTCTRL () {( &ASYCMD | 16);}' unless defined(&A_PORTCTRL);
    eval 'sub A_GETSTATS () {( &ASYCMD | 17);}' unless defined(&A_GETSTATS);
    eval 'sub A_RQSTATE () {( &ASYCMD | 18);}' unless defined(&A_RQSTATE);
    eval 'sub A_FLOWSTATE () {( &ASYCMD | 19);}' unless defined(&A_FLOWSTATE);
    eval 'sub A_CLEARSTATS () {( &ASYCMD | 20);}' unless defined(&A_CLEARSTATS);
    eval 'sub FLUSHRX () {0x1;}' unless defined(&FLUSHRX);
    eval 'sub FLUSHTX () {0x2;}' unless defined(&FLUSHTX);
    eval 'sub BREAKON () {-1;}' unless defined(&BREAKON);
    eval 'sub BREAKOFF () {-2;}' unless defined(&BREAKOFF);
    eval 'sub PT_STOP1 () {0x;}' unless defined(&PT_STOP1);
    eval 'sub PT_STOP15 () {0x1;}' unless defined(&PT_STOP15);
    eval 'sub PT_STOP2 () {0x2;}' unless defined(&PT_STOP2);
    eval 'sub PT_NOPARITY () {0x;}' unless defined(&PT_NOPARITY);
    eval 'sub PT_ODDPARITY () {0x1;}' unless defined(&PT_ODDPARITY);
    eval 'sub PT_EVENPARITY () {0x2;}' unless defined(&PT_EVENPARITY);
    eval 'sub PT_MARKPARITY () {0x3;}' unless defined(&PT_MARKPARITY);
    eval 'sub PT_SPACEPARITY () {0x4;}' unless defined(&PT_SPACEPARITY);
    eval 'sub F_NONE () {0x;}' unless defined(&F_NONE);
    eval 'sub F_IXON () {0x1;}' unless defined(&F_IXON);
    eval 'sub F_IXOFF () {0x2;}' unless defined(&F_IXOFF);
    eval 'sub F_IXANY () {0x4;}' unless defined(&F_IXANY);
    eval 'sub F_IOXANY () {0x8;}' unless defined(&F_IOXANY);
    eval 'sub F_RTSFLOW () {0x10;}' unless defined(&F_RTSFLOW);
    eval 'sub F_CTSFLOW () {0x20;}' unless defined(&F_CTSFLOW);
    eval 'sub F_DTRFLOW () {0x40;}' unless defined(&F_DTRFLOW);
    eval 'sub F_DCDFLOW () {0x80;}' unless defined(&F_DCDFLOW);
    eval 'sub F_DSROFLOW () {0x100;}' unless defined(&F_DSROFLOW);
    eval 'sub F_DSRIFLOW () {0x200;}' unless defined(&F_DSRIFLOW);
    eval 'sub FI_NORX () {0x1;}' unless defined(&FI_NORX);
    eval 'sub FI_RAW () {0x2;}' unless defined(&FI_RAW);
    eval 'sub FI_ISTRIP () {0x4;}' unless defined(&FI_ISTRIP);
    eval 'sub FI_UCLC () {0x8;}' unless defined(&FI_UCLC);
    eval 'sub FI_INLCR () {0x10;}' unless defined(&FI_INLCR);
    eval 'sub FI_ICRNL () {0x20;}' unless defined(&FI_ICRNL);
    eval 'sub FI_IGNCR () {0x40;}' unless defined(&FI_IGNCR);
    eval 'sub FI_IGNBREAK () {0x80;}' unless defined(&FI_IGNBREAK);
    eval 'sub FI_DSCRDBREAK () {0x100;}' unless defined(&FI_DSCRDBREAK);
    eval 'sub FI_1MARKBREAK () {0x200;}' unless defined(&FI_1MARKBREAK);
    eval 'sub FI_2MARKBREAK () {0x400;}' unless defined(&FI_2MARKBREAK);
    eval 'sub FI_XCHNGBREAK () {0x800;}' unless defined(&FI_XCHNGBREAK);
    eval 'sub FI_IGNRXERRS () {0x1000;}' unless defined(&FI_IGNRXERRS);
    eval 'sub FI_DSCDRXERRS () {0x2000;}' unless defined(&FI_DSCDRXERRS);
    eval 'sub FI_1MARKRXERRS () {0x4000;}' unless defined(&FI_1MARKRXERRS);
    eval 'sub FI_2MARKRXERRS () {0x8000;}' unless defined(&FI_2MARKRXERRS);
    eval 'sub FI_XCHNGRXERRS () {0x10000;}' unless defined(&FI_XCHNGRXERRS);
    eval 'sub FI_DSCRDNULL () {0x20000;}' unless defined(&FI_DSCRDNULL);
    eval 'sub FO_OLCUC () {0x1;}' unless defined(&FO_OLCUC);
    eval 'sub FO_ONLCR () {0x2;}' unless defined(&FO_ONLCR);
    eval 'sub FO_OOCRNL () {0x4;}' unless defined(&FO_OOCRNL);
    eval 'sub FO_ONOCR () {0x8;}' unless defined(&FO_ONOCR);
    eval 'sub FO_ONLRET () {0x10;}' unless defined(&FO_ONLRET);
    eval 'sub FO_ONL () {0x20;}' unless defined(&FO_ONL);
    eval 'sub FO_OBS () {0x40;}' unless defined(&FO_OBS);
    eval 'sub FO_OVT () {0x80;}' unless defined(&FO_OVT);
    eval 'sub FO_OFF () {0x100;}' unless defined(&FO_OFF);
    eval 'sub FO_OTAB1 () {0x200;}' unless defined(&FO_OTAB1);
    eval 'sub FO_OTAB2 () {0x400;}' unless defined(&FO_OTAB2);
    eval 'sub FO_OTAB3 () {0x800;}' unless defined(&FO_OTAB3);
    eval 'sub FO_OCR1 () {0x1000;}' unless defined(&FO_OCR1);
    eval 'sub FO_OCR2 () {0x2000;}' unless defined(&FO_OCR2);
    eval 'sub FO_OCR3 () {0x4000;}' unless defined(&FO_OCR3);
    eval 'sub FO_OFILL () {0x8000;}' unless defined(&FO_OFILL);
    eval 'sub FO_ODELL () {0x10000;}' unless defined(&FO_ODELL);
    eval 'sub P_RTSLOCK () {0x1;}' unless defined(&P_RTSLOCK);
    eval 'sub P_CTSLOCK () {0x2;}' unless defined(&P_CTSLOCK);
    eval 'sub P_MAPRTS () {0x4;}' unless defined(&P_MAPRTS);
    eval 'sub P_MAPCTS () {0x8;}' unless defined(&P_MAPCTS);
    eval 'sub P_LOOPBACK () {0x10;}' unless defined(&P_LOOPBACK);
    eval 'sub P_DTRFOLLOW () {0x20;}' unless defined(&P_DTRFOLLOW);
    eval 'sub P_FAKEDCD () {0x40;}' unless defined(&P_FAKEDCD);
    eval 'sub P_RXIMIN () {0x10000;}' unless defined(&P_RXIMIN);
    eval 'sub P_RXITIME () {0x20000;}' unless defined(&P_RXITIME);
    eval 'sub P_RXTHOLD () {0x40000;}' unless defined(&P_RXTHOLD);
    eval 'sub DT_TXBUSY () {0x1;}' unless defined(&DT_TXBUSY);
    eval 'sub DT_TXEMPTY () {0x2;}' unless defined(&DT_TXEMPTY);
    eval 'sub DT_TXLOW () {0x4;}' unless defined(&DT_TXLOW);
    eval 'sub DT_TXHIGH () {0x8;}' unless defined(&DT_TXHIGH);
    eval 'sub DT_TXFULL () {0x10;}' unless defined(&DT_TXFULL);
    eval 'sub DT_TXHOG () {0x20;}' unless defined(&DT_TXHOG);
    eval 'sub DT_TXFLOWED () {0x40;}' unless defined(&DT_TXFLOWED);
    eval 'sub DT_TXBREAK () {0x80;}' unless defined(&DT_TXBREAK);
    eval 'sub DT_RXBUSY () {0x100;}' unless defined(&DT_RXBUSY);
    eval 'sub DT_RXEMPTY () {0x200;}' unless defined(&DT_RXEMPTY);
    eval 'sub DT_RXLOW () {0x400;}' unless defined(&DT_RXLOW);
    eval 'sub DT_RXHIGH () {0x800;}' unless defined(&DT_RXHIGH);
    eval 'sub DT_RXFULL () {0x1000;}' unless defined(&DT_RXFULL);
    eval 'sub DT_RXHOG () {0x2000;}' unless defined(&DT_RXHOG);
    eval 'sub DT_RXFLOWED () {0x4000;}' unless defined(&DT_RXFLOWED);
    eval 'sub DT_RXBREAK () {0x8000;}' unless defined(&DT_RXBREAK);
    eval 'sub SG_DTR () {0x1;}' unless defined(&SG_DTR);
    eval 'sub SG_DCD () {0x2;}' unless defined(&SG_DCD);
    eval 'sub SG_RTS () {0x4;}' unless defined(&SG_RTS);
    eval 'sub SG_CTS () {0x8;}' unless defined(&SG_CTS);
    eval 'sub SG_DSR () {0x10;}' unless defined(&SG_DSR);
    eval 'sub SG_RI () {0x20;}' unless defined(&SG_RI);
    eval 'sub CT_ENABLE () {0x1;}' unless defined(&CT_ENABLE);
    eval 'sub CT_DISABLE () {0x2;}' unless defined(&CT_DISABLE);
    eval 'sub CT_STOP () {0x4;}' unless defined(&CT_STOP);
    eval 'sub CT_START () {0x8;}' unless defined(&CT_START);
    eval 'sub CT_STARTFLOW () {0x10;}' unless defined(&CT_STARTFLOW);
    eval 'sub CT_STOPFLOW () {0x20;}' unless defined(&CT_STOPFLOW);
    eval 'sub CT_SENDCHR () {0x40;}' unless defined(&CT_SENDCHR);
    require 'linux/ioctl.ph';
    eval 'sub STL_BINTR () { &_IO(ord(\'s\'),20);}' unless defined(&STL_BINTR);
    eval 'sub STL_BSTART () { &_IO(ord(\'s\'),21);}' unless defined(&STL_BSTART);
    eval 'sub STL_BSTOP () { &_IO(ord(\'s\'),22);}' unless defined(&STL_BSTOP);
    eval 'sub STL_BRESET () { &_IO(ord(\'s\'),23);}' unless defined(&STL_BRESET);
    eval 'sub STL_GETPFLAG () { &_IO(ord(\'s\'),80);}' unless defined(&STL_GETPFLAG);
    eval 'sub STL_SETPFLAG () { &_IO(ord(\'s\'),81);}' unless defined(&STL_SETPFLAG);
}
1;
