require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&UMCT_SET_REQUEST)) {
    sub UMCT_SET_REQUEST () {	0x40;}
}
unless(defined(&UMCT_GET_REQUEST)) {
    sub UMCT_GET_REQUEST () {	0xc0;}
}
unless(defined(&REQ_SET_BAUD_RATE)) {
    sub REQ_SET_BAUD_RATE () {	5;}
}
unless(defined(&LENGTH_BAUD_RATE)) {
    sub LENGTH_BAUD_RATE () {	4;}
}
unless(defined(&REQ_GET_MSR)) {
    sub REQ_GET_MSR () {	2;}
}
unless(defined(&LENGTH_GET_MSR)) {
    sub LENGTH_GET_MSR () {	1;}
}
unless(defined(&REQ_GET_LCR)) {
    sub REQ_GET_LCR () {	6;}
}
unless(defined(&LENGTH_GET_LCR)) {
    sub LENGTH_GET_LCR () {	1;}
}
unless(defined(&REQ_SET_LCR)) {
    sub REQ_SET_LCR () {	7;}
}
unless(defined(&LENGTH_SET_LCR)) {
    sub LENGTH_SET_LCR () {	1;}
}
unless(defined(&REQ_SET_MCR)) {
    sub REQ_SET_MCR () {	10;}
}
unless(defined(&LENGTH_SET_MCR)) {
    sub LENGTH_SET_MCR () {	1;}
}
unless(defined(&UMCT_BAUD_RATE)) {
    sub UMCT_BAUD_RATE {
	my($b) = @_;
	eval q((115200/$b));
    }
}
unless(defined(&LCR_SET_BREAK)) {
    sub LCR_SET_BREAK () {	0x40;}
}
unless(defined(&LCR_PARITY_EVEN)) {
    sub LCR_PARITY_EVEN () {	0x18;}
}
unless(defined(&LCR_PARITY_ODD)) {
    sub LCR_PARITY_ODD () {	0x8;}
}
unless(defined(&LCR_PARITY_NONE)) {
    sub LCR_PARITY_NONE () {	0x;}
}
unless(defined(&LCR_DATA_BITS_5)) {
    sub LCR_DATA_BITS_5 () {	0x;}
}
unless(defined(&LCR_DATA_BITS_6)) {
    sub LCR_DATA_BITS_6 () {	0x1;}
}
unless(defined(&LCR_DATA_BITS_7)) {
    sub LCR_DATA_BITS_7 () {	0x2;}
}
unless(defined(&LCR_DATA_BITS_8)) {
    sub LCR_DATA_BITS_8 () {	0x3;}
}
unless(defined(&LCR_STOP_BITS_2)) {
    sub LCR_STOP_BITS_2 () {	0x4;}
}
unless(defined(&LCR_STOP_BITS_1)) {
    sub LCR_STOP_BITS_1 () {	0x;}
}
unless(defined(&MCR_NONE)) {
    sub MCR_NONE () {	0x8;}
}
unless(defined(&MCR_RTS)) {
    sub MCR_RTS () {	0xa;}
}
unless(defined(&MCR_DTR)) {
    sub MCR_DTR () {	0x9;}
}
unless(defined(&MSR_CD)) {
    sub MSR_CD () {	0x80;}
}
unless(defined(&MSR_RI)) {
    sub MSR_RI () {	0x40;}
}
unless(defined(&MSR_DSR)) {
    sub MSR_DSR () {	0x20;}
}
unless(defined(&MSR_CTS)) {
    sub MSR_CTS () {	0x10;}
}
unless(defined(&MSR_DCD)) {
    sub MSR_DCD () {	0x8;}
}
unless(defined(&MSR_DRI)) {
    sub MSR_DRI () {	0x4;}
}
unless(defined(&MSR_DDSR)) {
    sub MSR_DDSR () {	0x2;}
}
unless(defined(&MSR_DCTS)) {
    sub MSR_DCTS () {	0x1;}
}
unless(defined(&LSR_ERR)) {
    sub LSR_ERR () {	0x80;}
}
unless(defined(&LSR_TEMT)) {
    sub LSR_TEMT () {	0x40;}
}
unless(defined(&LSR_THRE)) {
    sub LSR_THRE () {	0x20;}
}
unless(defined(&LSR_BI)) {
    sub LSR_BI () {	0x10;}
}
unless(defined(&LSR_FE)) {
    sub LSR_FE () {	0x8;}
}
unless(defined(&LSR_OE)) {
    sub LSR_OE () {	0x2;}
}
unless(defined(&LSR_PE)) {
    sub LSR_PE () {	0x4;}
}
unless(defined(&LSR_OE)) {
    sub LSR_OE () {	0x2;}
}
unless(defined(&LSR_DR)) {
    sub LSR_DR () {	0x1;}
}
1;
