require '_h2ph_pre.ph';

unless(defined(&_LINUX_SERIAL_H)) {
    eval 'sub _LINUX_SERIAL_H () {1;}' unless defined(&_LINUX_SERIAL_H);
    eval 'sub ASYNC_CLOSING_WAIT_INF () {0;}' unless defined(&ASYNC_CLOSING_WAIT_INF);
    eval 'sub ASYNC_CLOSING_WAIT_NONE () {65535;}' unless defined(&ASYNC_CLOSING_WAIT_NONE);
    eval 'sub PORT_UNKNOWN () {0;}' unless defined(&PORT_UNKNOWN);
    eval 'sub PORT_8250 () {1;}' unless defined(&PORT_8250);
    eval 'sub PORT_16450 () {2;}' unless defined(&PORT_16450);
    eval 'sub PORT_16550 () {3;}' unless defined(&PORT_16550);
    eval 'sub PORT_16550A () {4;}' unless defined(&PORT_16550A);
    eval 'sub PORT_CIRRUS () {5;}' unless defined(&PORT_CIRRUS);
    eval 'sub PORT_16650 () {6;}' unless defined(&PORT_16650);
    eval 'sub PORT_16650V2 () {7;}' unless defined(&PORT_16650V2);
    eval 'sub PORT_16750 () {8;}' unless defined(&PORT_16750);
    eval 'sub PORT_STARTECH () {9;}' unless defined(&PORT_STARTECH);
    eval 'sub PORT_16C950 () {10;}' unless defined(&PORT_16C950);
    eval 'sub PORT_16654 () {11;}' unless defined(&PORT_16654);
    eval 'sub PORT_16850 () {12;}' unless defined(&PORT_16850);
    eval 'sub PORT_RSA () {13;}' unless defined(&PORT_RSA);
    eval 'sub PORT_MAX () {13;}' unless defined(&PORT_MAX);
    eval 'sub SERIAL_IO_PORT () {0;}' unless defined(&SERIAL_IO_PORT);
    eval 'sub SERIAL_IO_HUB6 () {1;}' unless defined(&SERIAL_IO_HUB6);
    eval 'sub SERIAL_IO_MEM () {2;}' unless defined(&SERIAL_IO_MEM);
    eval 'sub SERIAL_IO_GSC () {3;}' unless defined(&SERIAL_IO_GSC);
    eval 'sub UART_CLEAR_FIFO () {0x1;}' unless defined(&UART_CLEAR_FIFO);
    eval 'sub UART_USE_FIFO () {0x2;}' unless defined(&UART_USE_FIFO);
    eval 'sub UART_STARTECH () {0x4;}' unless defined(&UART_STARTECH);
    eval 'sub ASYNC_HUP_NOTIFY () {0x1;}' unless defined(&ASYNC_HUP_NOTIFY);
    eval 'sub ASYNC_FOURPORT () {0x2;}' unless defined(&ASYNC_FOURPORT);
    eval 'sub ASYNC_SAK () {0x4;}' unless defined(&ASYNC_SAK);
    eval 'sub ASYNC_SPLIT_TERMIOS () {0x8;}' unless defined(&ASYNC_SPLIT_TERMIOS);
    eval 'sub ASYNC_SPD_MASK () {0x1030;}' unless defined(&ASYNC_SPD_MASK);
    eval 'sub ASYNC_SPD_HI () {0x10;}' unless defined(&ASYNC_SPD_HI);
    eval 'sub ASYNC_SPD_VHI () {0x20;}' unless defined(&ASYNC_SPD_VHI);
    eval 'sub ASYNC_SPD_CUST () {0x30;}' unless defined(&ASYNC_SPD_CUST);
    eval 'sub ASYNC_SKIP_TEST () {0x40;}' unless defined(&ASYNC_SKIP_TEST);
    eval 'sub ASYNC_AUTO_IRQ () {0x80;}' unless defined(&ASYNC_AUTO_IRQ);
    eval 'sub ASYNC_SESSION_LOCKOUT () {0x100;}' unless defined(&ASYNC_SESSION_LOCKOUT);
    eval 'sub ASYNC_PGRP_LOCKOUT () {0x200;}' unless defined(&ASYNC_PGRP_LOCKOUT);
    eval 'sub ASYNC_CALLOUT_NOHUP () {0x400;}' unless defined(&ASYNC_CALLOUT_NOHUP);
    eval 'sub ASYNC_HARDPPS_CD () {0x800;}' unless defined(&ASYNC_HARDPPS_CD);
    eval 'sub ASYNC_SPD_SHI () {0x1000;}' unless defined(&ASYNC_SPD_SHI);
    eval 'sub ASYNC_SPD_WARP () {0x1010;}' unless defined(&ASYNC_SPD_WARP);
    eval 'sub ASYNC_LOW_LATENCY () {0x2000;}' unless defined(&ASYNC_LOW_LATENCY);
    eval 'sub ASYNC_BUGGY_UART () {0x4000;}' unless defined(&ASYNC_BUGGY_UART);
    eval 'sub ASYNC_AUTOPROBE () {0x8000;}' unless defined(&ASYNC_AUTOPROBE);
    eval 'sub ASYNC_FLAGS () {0x7fff;}' unless defined(&ASYNC_FLAGS);
    eval 'sub ASYNC_USR_MASK () {0x3430;}' unless defined(&ASYNC_USR_MASK);
    eval 'sub ASYNC_INITIALIZED () {0x80000000;}' unless defined(&ASYNC_INITIALIZED);
    eval 'sub ASYNC_CALLOUT_ACTIVE () {0x40000000;}' unless defined(&ASYNC_CALLOUT_ACTIVE);
    eval 'sub ASYNC_NORMAL_ACTIVE () {0x20000000;}' unless defined(&ASYNC_NORMAL_ACTIVE);
    eval 'sub ASYNC_BOOT_AUTOCONF () {0x10000000;}' unless defined(&ASYNC_BOOT_AUTOCONF);
    eval 'sub ASYNC_CLOSING () {0x8000000;}' unless defined(&ASYNC_CLOSING);
    eval 'sub ASYNC_CTS_FLOW () {0x4000000;}' unless defined(&ASYNC_CTS_FLOW);
    eval 'sub ASYNC_CHECK_CD () {0x2000000;}' unless defined(&ASYNC_CHECK_CD);
    eval 'sub ASYNC_SHARE_IRQ () {0x1000000;}' unless defined(&ASYNC_SHARE_IRQ);
    eval 'sub ASYNC_CONS_FLOW () {0x800000;}' unless defined(&ASYNC_CONS_FLOW);
    eval 'sub ASYNC_BOOT_ONLYMCA () {0x400000;}' unless defined(&ASYNC_BOOT_ONLYMCA);
    eval 'sub ASYNC_INTERNAL_FLAGS () {0xffc00000;}' unless defined(&ASYNC_INTERNAL_FLAGS);
}
1;
