require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&UEAGLE_OPTN0)) {
    eval 'sub UEAGLE_OPTN0 () {0x80020066;}' unless defined(&UEAGLE_OPTN0);
}
unless(defined(&UEAGLE_OPTN2)) {
    eval 'sub UEAGLE_OPTN2 () {0x23700000;}' unless defined(&UEAGLE_OPTN2);
}
unless(defined(&UEAGLE_OPTN7)) {
    eval 'sub UEAGLE_OPTN7 () {0x2cd8044;}' unless defined(&UEAGLE_OPTN7);
}
unless(defined(&UEAGLE_CONFIG_NO)) {
    sub UEAGLE_CONFIG_NO () {	1;}
}
unless(defined(&UEAGLE_INTR_IFACE_NO)) {
    sub UEAGLE_INTR_IFACE_NO () {	0;}
}
unless(defined(&UEAGLE_US_IFACE_NO)) {
    sub UEAGLE_US_IFACE_NO () {	1;}
}
unless(defined(&UEAGLE_DS_IFACE_NO)) {
    sub UEAGLE_DS_IFACE_NO () {	2;}
}
unless(defined(&UEAGLE_ESISTR)) {
    sub UEAGLE_ESISTR () {	4;}
}
unless(defined(&UEAGLE_TX_PIPE)) {
    sub UEAGLE_TX_PIPE () {	0x2;}
}
unless(defined(&UEAGLE_IDMA_PIPE)) {
    sub UEAGLE_IDMA_PIPE () {	0x4;}
}
unless(defined(&UEAGLE_INTR_PIPE)) {
    sub UEAGLE_INTR_PIPE () {	0x84;}
}
unless(defined(&UEAGLE_RX_PIPE)) {
    sub UEAGLE_RX_PIPE () {	0x88;}
}
unless(defined(&UEAGLE_REQUEST)) {
    sub UEAGLE_REQUEST () {	0;}
}
unless(defined(&UEAGLE_SETBLOCK)) {
    sub UEAGLE_SETBLOCK () {	0x1;}
}
unless(defined(&UEAGLE_SETMODE)) {
    sub UEAGLE_SETMODE () {	0x3;}
}
unless(defined(&UEAGLE_SET2183DATA)) {
    sub UEAGLE_SET2183DATA () {	0x4;}
}
unless(defined(&UEAGLE_LOOPBACKOFF)) {
    sub UEAGLE_LOOPBACKOFF () {	0x2;}
}
unless(defined(&UEAGLE_LOOPBACKON)) {
    sub UEAGLE_LOOPBACKON () {	0x3;}
}
unless(defined(&UEAGLE_BOOTIDMA)) {
    sub UEAGLE_BOOTIDMA () {	0x6;}
}
unless(defined(&UEAGLE_STARTRESET)) {
    sub UEAGLE_STARTRESET () {	0x7;}
}
unless(defined(&UEAGLE_ENDRESET)) {
    sub UEAGLE_ENDRESET () {	0x8;}
}
unless(defined(&UEAGLE_SWAPMAILBOX)) {
    sub UEAGLE_SWAPMAILBOX () {	0x7fcd;}
}
unless(defined(&UEAGLE_MPTXSTART)) {
    sub UEAGLE_MPTXSTART () {	0x7fce;}
}
unless(defined(&UEAGLE_MPTXMAILBOX)) {
    sub UEAGLE_MPTXMAILBOX () {	0x7fd6;}
}
unless(defined(&UEAGLE_MPRXMAILBOX)) {
    sub UEAGLE_MPRXMAILBOX () {	0x7fdf;}
}
unless(defined(&UEAGLE_BLOCK_INFO_HDR)) {
    sub UEAGLE_BLOCK_INFO_HDR () {	0xabcd;}
}
unless(defined(&UEAGLE_CMV_PREAMBLE)) {
    sub UEAGLE_CMV_PREAMBLE () {	0x535c;}
}
unless(defined(&UEAGLE_HOST)) {
    sub UEAGLE_HOST () {	0x1;}
}
unless(defined(&UEAGLE_MODEM)) {
    sub UEAGLE_MODEM () {	0x10;}
}
unless(defined(&UEAGLE_CR)) {
    sub UEAGLE_CR () {	0x10;}
}
unless(defined(&UEAGLE_CW)) {
    sub UEAGLE_CW () {	0x11;}
}
unless(defined(&UEAGLE_CR_ACK)) {
    sub UEAGLE_CR_ACK () {	0x12;}
}
unless(defined(&UEAGLE_CW_ACK)) {
    sub UEAGLE_CW_ACK () {	0x13;}
}
unless(defined(&UEAGLE_MODEMREADY)) {
    sub UEAGLE_MODEMREADY () {	0x71;}
}
unless(defined(&UEAGLE_MAKESA)) {
    sub UEAGLE_MAKESA {
	my($a, $b, $c, $d) = @_;
	eval q((($c) << 24| ($d) << 16| ($a) << 8| ($b)));
    }
}
unless(defined(&UEAGLE_CMV_CNTL)) {
    sub UEAGLE_CMV_CNTL () {	 &UEAGLE_MAKESA(ord('C', 'N', 'T', 'L'));}
}
unless(defined(&UEAGLE_CMV_DIAG)) {
    sub UEAGLE_CMV_DIAG () {	 &UEAGLE_MAKESA(ord('D', 'I', 'A', 'G'));}
}
unless(defined(&UEAGLE_CMV_INFO)) {
    sub UEAGLE_CMV_INFO () {	 &UEAGLE_MAKESA(ord('I', 'N', 'F', 'O'));}
}
unless(defined(&UEAGLE_CMV_OPTN)) {
    sub UEAGLE_CMV_OPTN () {	 &UEAGLE_MAKESA(ord('O', 'P', 'T', 'N'));}
}
unless(defined(&UEAGLE_CMV_RATE)) {
    sub UEAGLE_CMV_RATE () {	 &UEAGLE_MAKESA(ord('R', 'A', 'T', 'E'));}
}
unless(defined(&UEAGLE_CMV_STAT)) {
    sub UEAGLE_CMV_STAT () {	 &UEAGLE_MAKESA(ord('S', 'T', 'A', 'T'));}
}
unless(defined(&UGETDATA)) {
    sub UGETDATA {
	my($w) = @_;
	eval q((($w)[2] | ($w)[3] << 8| ($w)[0] << 16| ($w)[1] << 24));
    }
}
unless(defined(&USETDATA)) {
    sub USETDATA {
	my($w, $v) = @_;
	eval q((($w)[2] = ( &uint8_t)($v), ($w)[3] = ( &uint8_t)(($v) >> 8), ($w)[0] = ( &uint8_t)(($v) >> 16), ($w)[1] = ( &uint8_t)(($v) >> 24)));
    }
}
unless(defined(&UEAGLE_INTR_SWAP)) {
    sub UEAGLE_INTR_SWAP () {	1;}
}
unless(defined(&UEAGLE_INTR_CMV)) {
    sub UEAGLE_INTR_CMV () {	2;}
}
unless(defined(&UEAGLE_INTR_MAXSIZE)) {
    sub UEAGLE_INTR_MAXSIZE () {	28;}
}
1;
