require '_h2ph_pre.ph';

no warnings 'redefine';

if(defined(&MAGMA_DEBUG)) {
    eval 'sub dprintf {
        my($x) = @_;
	    eval q( &printf $x);
    }' unless defined(&dprintf);
} else {
    eval 'sub dprintf {
        my($x) = @_;
	    eval q();
    }' unless defined(&dprintf);
}
unless(defined(&MAGMA_MAX_CARDS)) {
    sub MAGMA_MAX_CARDS () {	4;}
}
unless(defined(&MAGMA_MAX_TTY)) {
    sub MAGMA_MAX_TTY () {	16;}
}
unless(defined(&MAGMA_MAX_BPP)) {
    sub MAGMA_MAX_BPP () {	2;}
}
unless(defined(&MAGMA_MAX_CD1400)) {
    sub MAGMA_MAX_CD1400 () {	4;}
}
unless(defined(&MAGMA_MAX_CD1190)) {
    sub MAGMA_MAX_CD1190 () {	2;}
}
unless(defined(&MAGMA_CARD)) {
    sub MAGMA_CARD {
	my($x) = @_;
	eval q((( &minor($x) >> 6) & 0x3));
    }
}
unless(defined(&MAGMA_PORT)) {
    sub MAGMA_PORT {
	my($x) = @_;
	eval q(( &minor($x) & 0xf));
    }
}
unless(defined(&MTTY_DIALOUT)) {
    sub MTTY_DIALOUT {
	my($x) = @_;
	eval q(( &minor($x) & 0x10));
    }
}
unless(defined(&MTTY_RBUF_SIZE)) {
    sub MTTY_RBUF_SIZE () {	(2* 512);}
}
unless(defined(&MTTY_RX_FIFO_THRESHOLD)) {
    sub MTTY_RX_FIFO_THRESHOLD () {	6;}
}
unless(defined(&MTTY_RX_DTR_THRESHOLD)) {
    sub MTTY_RX_DTR_THRESHOLD () {	9;}
}
unless(defined(&MTTYF_CARRIER_CHANGED)) {
    sub MTTYF_CARRIER_CHANGED () {	(1<<0);}
}
unless(defined(&MTTYF_SET_BREAK)) {
    sub MTTYF_SET_BREAK () {	(1<<1);}
}
unless(defined(&MTTYF_CLR_BREAK)) {
    sub MTTYF_CLR_BREAK () {	(1<<2);}
}
unless(defined(&MTTYF_DONE)) {
    sub MTTYF_DONE () {	(1<<3);}
}
unless(defined(&MTTYF_STOP)) {
    sub MTTYF_STOP () {	(1<<4);}
}
unless(defined(&MTTYF_RING_OVERFLOW)) {
    sub MTTYF_RING_OVERFLOW () {	(1<<5);}
}
unless(defined(&MBPP_RX_FIFO_THRESHOLD)) {
    sub MBPP_RX_FIFO_THRESHOLD () {	25;}
}
unless(defined(&mp_burst)) {
    sub mp_burst () {	 ($mp_param->{bp_burst});}
}
unless(defined(&mp_timeout)) {
    sub mp_timeout () {	 ($mp_param->{bp_timeout});}
}
unless(defined(&mp_delay)) {
    sub mp_delay () {	 ($mp_param->{bp_delay});}
}
unless(defined(&MBPPF_OPEN)) {
    sub MBPPF_OPEN () {	(1<<0);}
}
unless(defined(&MBPPF_TIMEOUT)) {
    sub MBPPF_TIMEOUT () {	(1<<1);}
}
unless(defined(&MBPPF_UIO)) {
    sub MBPPF_UIO () {	(1<<2);}
}
unless(defined(&MBPPF_DELAY)) {
    sub MBPPF_DELAY () {	(1<<3);}
}
unless(defined(&MBPPF_WAKEUP)) {
    sub MBPPF_WAKEUP () {	(1<<4);}
}
unless(defined(&CD1400_REGMAPSIZE)) {
    sub CD1400_REGMAPSIZE () {	0x80;}
}
unless(defined(&CD1190_REGMAPSIZE)) {
    sub CD1190_REGMAPSIZE () {	0x20;}
}
1;
