require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__MUSYCCREG_H__)) {
    eval 'sub __MUSYCCREG_H__ () {1;}' unless defined(&__MUSYCCREG_H__);
    eval 'sub MUSYCC_PCI_BAR () {0x10;}' unless defined(&MUSYCC_PCI_BAR);
    eval 'sub MUSYCC_GROUPBASE {
        my($x) = @_;
	    eval q((0x800 * ($x)));
    }' unless defined(&MUSYCC_GROUPBASE);
    eval 'sub MUSYCC_DACB_PTR () {0x4;}' unless defined(&MUSYCC_DACB_PTR);
    eval 'sub MUSYCC_SERREQ {
        my($x) = @_;
	    eval q((0x8 + 0x800 * ($x)));
    }' unless defined(&MUSYCC_SERREQ);
    eval 'sub MUSYCC_INTRSTATUS () {0xc;}' unless defined(&MUSYCC_INTRSTATUS);
    eval 'sub MUSYCC_INTCNT_MASK () {0x7fff;}' unless defined(&MUSYCC_INTCNT_MASK);
    eval 'sub MUSYCC_INTFULL () {0x8000;}' unless defined(&MUSYCC_INTFULL);
    eval 'sub MUSYCC_NEXTINT_GET {
        my($x) = @_;
	    eval q(((($x) >> 16) & 0x7fff));
    }' unless defined(&MUSYCC_NEXTINT_GET);
    eval 'sub MUSYCC_NEXTINT_SET {
        my($x) = @_;
	    eval q(((($x) & 0x7fff) << 16));
    }' unless defined(&MUSYCC_NEXTINT_SET);
    eval 'sub MUSYCC_GLOBALCONF () {0x600;}' unless defined(&MUSYCC_GLOBALCONF);
    eval 'sub MUSYCC_INTQPTR () {0x604;}' unless defined(&MUSYCC_INTQPTR);
    eval 'sub MUSYCC_INTQLEN () {0x608;}' unless defined(&MUSYCC_INTQLEN);
    eval 'sub MUSYCC_CONF_PORTMAP () {0x3;}' unless defined(&MUSYCC_CONF_PORTMAP);
    eval 'sub MUSYCC_CONF_INTB () {0x4;}' unless defined(&MUSYCC_CONF_INTB);
    eval 'sub MUSYCC_CONF_INTA () {0x8;}' unless defined(&MUSYCC_CONF_INTA);
    eval 'sub MUSYCC_CONF_ELAPSE_GET {
        my($x) = @_;
	    eval q(((($x) >> 4) & 0x7));
    }' unless defined(&MUSYCC_CONF_ELAPSE_GET);
    eval 'sub MUSYCC_CONF_ELAPSE_SET {
        my($x) = @_;
	    eval q((($x & 0x7) << 4));
    }' unless defined(&MUSYCC_CONF_ELAPSE_SET);
    eval 'sub MUSYCC_CONF_ALAPSE_GET {
        my($x) = @_;
	    eval q(((($x) >> 8) & 0x3));
    }' unless defined(&MUSYCC_CONF_ALAPSE_GET);
    eval 'sub MUSYCC_CONF_ALAPSE_SET {
        my($x) = @_;
	    eval q((($x & 0x3) << 8));
    }' unless defined(&MUSYCC_CONF_ALAPSE_SET);
    eval 'sub MUSYCC_CONF_MPUSEL () {0x400;}' unless defined(&MUSYCC_CONF_MPUSEL);
    eval 'sub MUSYCC_CONF_ECKEN () {0x800;}' unless defined(&MUSYCC_CONF_ECKEN);
    eval 'sub MUSYCC_CONF_BLAPSE_GET {
        my($x) = @_;
	    eval q(((($x) >> 12) & 0x7));
    }' unless defined(&MUSYCC_CONF_BLAPSE_GET);
    eval 'sub MUSYCC_CONF_BLAPSE_SET {
        my($x) = @_;
	    eval q((($x & 0x7) << 12));
    }' unless defined(&MUSYCC_CONF_BLAPSE_SET);
    eval 'sub MUSYCC_INTD_BLEN () {0x1fff;}' unless defined(&MUSYCC_INTD_BLEN);
    eval 'sub MUSYCC_INTD_ILOST () {0x8000;}' unless defined(&MUSYCC_INTD_ILOST);
    eval 'sub MUSYCC_INTD_DIR () {0x80000000;}' unless defined(&MUSYCC_INTD_DIR);
    eval 'sub MUSYCC_INTD_GRP {
        my($x) = @_;
	    eval q((((($x) >> 29) & 0x3) | ((($x) >> 12) & 0x4)));
    }' unless defined(&MUSYCC_INTD_GRP);
    eval 'sub MUSYCC_INTD_CHAN {
        my($x) = @_;
	    eval q(((($x) >> 24) & 0x1f));
    }' unless defined(&MUSYCC_INTD_CHAN);
    eval 'sub MUSYCC_INTD_EVENT {
        my($x) = @_;
	    eval q(((($x) >> 20) & 0xf));
    }' unless defined(&MUSYCC_INTD_EVENT);
    eval 'sub MUSYCC_INTD_ERROR {
        my($x) = @_;
	    eval q(((($x) >> 16) & 0xf));
    }' unless defined(&MUSYCC_INTD_ERROR);
    eval 'sub MUSYCC_INTEV_NONE () {0;}' unless defined(&MUSYCC_INTEV_NONE);
    eval 'sub MUSYCC_INTEV_SACK () {1;}' unless defined(&MUSYCC_INTEV_SACK);
    eval 'sub MUSYCC_INTEV_EOB () {2;}' unless defined(&MUSYCC_INTEV_EOB);
    eval 'sub MUSYCC_INTEV_EOM () {3;}' unless defined(&MUSYCC_INTEV_EOM);
    eval 'sub MUSYCC_INTEV_EOP () {4;}' unless defined(&MUSYCC_INTEV_EOP);
    eval 'sub MUSYCC_INTEV_CHABT () {5;}' unless defined(&MUSYCC_INTEV_CHABT);
    eval 'sub MUSYCC_INTEV_CHIC () {6;}' unless defined(&MUSYCC_INTEV_CHIC);
    eval 'sub MUSYCC_INTEV_FREC () {7;}' unless defined(&MUSYCC_INTEV_FREC);
    eval 'sub MUSYCC_INTEV_SINC () {8;}' unless defined(&MUSYCC_INTEV_SINC);
    eval 'sub MUSYCC_INTEV_SDEC () {9;}' unless defined(&MUSYCC_INTEV_SDEC);
    eval 'sub MUSYCC_INTEV_SFILT () {10;}' unless defined(&MUSYCC_INTEV_SFILT);
    eval 'sub MUSYCC_INTERR_NONE () {0;}' unless defined(&MUSYCC_INTERR_NONE);
    eval 'sub MUSYCC_INTERR_BUFF () {1;}' unless defined(&MUSYCC_INTERR_BUFF);
    eval 'sub MUSYCC_INTERR_COFA () {2;}' unless defined(&MUSYCC_INTERR_COFA);
    eval 'sub MUSYCC_INTERR_ONR () {3;}' unless defined(&MUSYCC_INTERR_ONR);
    eval 'sub MUSYCC_INTERR_PROT () {4;}' unless defined(&MUSYCC_INTERR_PROT);
    eval 'sub MUSYCC_INTERR_OOF () {8;}' unless defined(&MUSYCC_INTERR_OOF);
    eval 'sub MUSYCC_INTERR_FCS () {9;}' unless defined(&MUSYCC_INTERR_FCS);
    eval 'sub MUSYCC_INTERR_ALIGN () {10;}' unless defined(&MUSYCC_INTERR_ALIGN);
    eval 'sub MUSYCC_INTERR_ABT () {11;}' unless defined(&MUSYCC_INTERR_ABT);
    eval 'sub MUSYCC_INTERR_LNG () {12;}' unless defined(&MUSYCC_INTERR_LNG);
    eval 'sub MUSYCC_INTERR_SHT () {13;}' unless defined(&MUSYCC_INTERR_SHT);
    eval 'sub MUSYCC_INTERR_SUERR () {14;}' unless defined(&MUSYCC_INTERR_SUERR);
    eval 'sub MUSYCC_INTERR_PERR () {15;}' unless defined(&MUSYCC_INTERR_PERR);
    eval 'sub MUSYCC_SREQ_MASK () {0x1f;}' unless defined(&MUSYCC_SREQ_MASK);
    eval 'sub MUSYCC_SREQ_CHSET {
        my($x) = @_;
	    eval q((($x) &  &MUSYCC_SREQ_MASK));
    }' unless defined(&MUSYCC_SREQ_CHSET);
    eval 'sub MUSYCC_SREQ_TXDIR () {0x20;}' unless defined(&MUSYCC_SREQ_TXDIR);
    eval 'sub MUSYCC_SREQ_SET {
        my($x) = @_;
	    eval q(((($x) &  &MUSYCC_SREQ_MASK) << 8));
    }' unless defined(&MUSYCC_SREQ_SET);
    eval 'sub MUSYCC_SREQ_RX () {0x1;}' unless defined(&MUSYCC_SREQ_RX);
    eval 'sub MUSYCC_SREQ_TX () {0x2;}' unless defined(&MUSYCC_SREQ_TX);
    eval 'sub MUSYCC_SREQ_BOTH () {0x3;}' unless defined(&MUSYCC_SREQ_BOTH);
    eval 'sub MUSYCC_SREQ_NOWAIT () {0x8;}' unless defined(&MUSYCC_SREQ_NOWAIT);
    eval 'sub MUSYCC_SREQ_NONE () {0xffffffff;}' unless defined(&MUSYCC_SREQ_NONE);
    eval 'sub MUSYCC_GRCFG_RXENBL () {0x1;}' unless defined(&MUSYCC_GRCFG_RXENBL);
    eval 'sub MUSYCC_GRCFG_TXENBL () {0x2;}' unless defined(&MUSYCC_GRCFG_TXENBL);
    eval 'sub MUSYCC_GRCFG_SUBDSBL () {0x4;}' unless defined(&MUSYCC_GRCFG_SUBDSBL);
    eval 'sub MUSYCC_GRCFG_OOFABT () {0x8;}' unless defined(&MUSYCC_GRCFG_OOFABT);
    eval 'sub MUSYCC_GRCFG_MSKOOF () {0x10;}' unless defined(&MUSYCC_GRCFG_MSKOOF);
    eval 'sub MUSYCC_GRCFG_MSKCOFA () {0x20;}' unless defined(&MUSYCC_GRCFG_MSKCOFA);
    eval 'sub MUSYCC_GRCFG_MCENBL () {0x40;}' unless defined(&MUSYCC_GRCFG_MCENBL);
    eval 'sub MUSYCC_GRCFG_INHRBSD () {0x100;}' unless defined(&MUSYCC_GRCFG_INHRBSD);
    eval 'sub MUSYCC_GRCFG_INHTBSD () {0x200;}' unless defined(&MUSYCC_GRCFG_INHTBSD);
    eval 'sub MUSYCC_GRCFG_POLL16 () {0x400;}' unless defined(&MUSYCC_GRCFG_POLL16);
    eval 'sub MUSYCC_GRCFG_POLL32 () {0x800;}' unless defined(&MUSYCC_GRCFG_POLL32);
    eval 'sub MUSYCC_GRCFG_POLL64 () {0xc00;}' unless defined(&MUSYCC_GRCFG_POLL64);
    eval 'sub MUSYCC_GRCFG_SFALIGN () {0x8000;}' unless defined(&MUSYCC_GRCFG_SFALIGN);
    eval 'sub MUSYCC_GRCFG_SUETMASK () {0x3f0000;}' unless defined(&MUSYCC_GRCFG_SUETMASK);
    eval 'sub MUSYCC_PORT_MODEMASK () {0x7;}' unless defined(&MUSYCC_PORT_MODEMASK);
    eval 'sub MUSYCC_PORT_MODE_T1 () {0;}' unless defined(&MUSYCC_PORT_MODE_T1);
    eval 'sub MUSYCC_PORT_MODE_E1 () {1;}' unless defined(&MUSYCC_PORT_MODE_E1);
    eval 'sub MUSYCC_PORT_MODE_2E1 () {2;}' unless defined(&MUSYCC_PORT_MODE_2E1);
    eval 'sub MUSYCC_PORT_MODE_4E1 () {3;}' unless defined(&MUSYCC_PORT_MODE_4E1);
    eval 'sub MUSYCC_PORT_MODE_N64 () {4;}' unless defined(&MUSYCC_PORT_MODE_N64);
    eval 'sub MUSYCC_PORT_TDAT_EDGE () {0x10;}' unless defined(&MUSYCC_PORT_TDAT_EDGE);
    eval 'sub MUSYCC_PORT_TSYNC_EDGE () {0x20;}' unless defined(&MUSYCC_PORT_TSYNC_EDGE);
    eval 'sub MUSYCC_PORT_RDAT_EDGE () {0x40;}' unless defined(&MUSYCC_PORT_RDAT_EDGE);
    eval 'sub MUSYCC_PORT_RSYNC_EDGE () {0x80;}' unless defined(&MUSYCC_PORT_RSYNC_EDGE);
    eval 'sub MUSYCC_PORT_ROOF_EDGE () {0x100;}' unless defined(&MUSYCC_PORT_ROOF_EDGE);
    eval 'sub MUSYCC_PORT_TRITX () {0x200;}' unless defined(&MUSYCC_PORT_TRITX);
    eval 'sub MUSYCC_MAXFRM_MAX () {4094;}' unless defined(&MUSYCC_MAXFRM_MAX);
    eval 'sub MUSYCC_MAXFRM_MASK () {0xfff;}' unless defined(&MUSYCC_MAXFRM_MASK);
    eval 'sub MUSYCC_MAXFRM2_SHIFT () {16;}' unless defined(&MUSYCC_MAXFRM2_SHIFT);
    eval 'sub MUSYCC_TSLOT_ENABLED () {0x80;}' unless defined(&MUSYCC_TSLOT_ENABLED);
    eval 'sub MUSYCC_TSLOT_56K () {0x20;}' unless defined(&MUSYCC_TSLOT_56K);
    eval 'sub MUSYCC_TSLOT_SUB () {0x40;}' unless defined(&MUSYCC_TSLOT_SUB);
    eval 'sub MUSYCC_TSLOT_MASK () {0x1f;}' unless defined(&MUSYCC_TSLOT_MASK);
    eval 'sub MUSYCC_TSLOT_CHAN {
        my($x) = @_;
	    eval q((($x) &  &MUSYCC_TSLOT_MASK));
    }' unless defined(&MUSYCC_TSLOT_CHAN);
    eval 'sub MUSYCC_CHAN_MSKBUFF () {0x2;}' unless defined(&MUSYCC_CHAN_MSKBUFF);
    eval 'sub MUSYCC_CHAN_MSKEOM () {0x4;}' unless defined(&MUSYCC_CHAN_MSKEOM);
    eval 'sub MUSYCC_CHAN_MSKMSG () {0x8;}' unless defined(&MUSYCC_CHAN_MSKMSG);
    eval 'sub MUSYCC_CHAN_MSKIDLE () {0x10;}' unless defined(&MUSYCC_CHAN_MSKIDLE);
    eval 'sub MUSYCC_CHAN_MSKSFILT () {0x20;}' unless defined(&MUSYCC_CHAN_MSKSFILT);
    eval 'sub MUSYCC_CHAN_MSKSDEC () {0x40;}' unless defined(&MUSYCC_CHAN_MSKSDEC);
    eval 'sub MUSYCC_CHAN_MSKSINC () {0x80;}' unless defined(&MUSYCC_CHAN_MSKSINC);
    eval 'sub MUSYCC_CHAN_MSKSUERR () {0x100;}' unless defined(&MUSYCC_CHAN_MSKSUERR);
    eval 'sub MUSYCC_CHAN_FCS () {0x200;}' unless defined(&MUSYCC_CHAN_FCS);
    eval 'sub MUSYCC_CHAN_MAXLEN1 () {0x400;}' unless defined(&MUSYCC_CHAN_MAXLEN1);
    eval 'sub MUSYCC_CHAN_MAXLEN2 () {0x800;}' unless defined(&MUSYCC_CHAN_MAXLEN2);
    eval 'sub MUSYCC_CHAN_EOPI () {0x8000;}' unless defined(&MUSYCC_CHAN_EOPI);
    eval 'sub MUSYCC_CHAN_INV () {0x800000;}' unless defined(&MUSYCC_CHAN_INV);
    eval 'sub MUSYCC_CHAN_PADJ () {0x80000000;}' unless defined(&MUSYCC_CHAN_PADJ);
    eval 'sub MUSYCC_CHAN_PROTO_GET {
        my($x) = @_;
	    eval q(((($x) >> 12) & 0x7));
    }' unless defined(&MUSYCC_CHAN_PROTO_GET);
    eval 'sub MUSYCC_CHAN_PROTO_SET {
        my($x) = @_;
	    eval q((($x & 0x7) << 12));
    }' unless defined(&MUSYCC_CHAN_PROTO_SET);
    eval 'sub MUSYCC_PROTO_TRANSPARENT () {0;}' unless defined(&MUSYCC_PROTO_TRANSPARENT);
    eval 'sub MUSYCC_PROTO_SS7HDLC () {1;}' unless defined(&MUSYCC_PROTO_SS7HDLC);
    eval 'sub MUSYCC_PROTO_HDLC16 () {2;}' unless defined(&MUSYCC_PROTO_HDLC16);
    eval 'sub MUSYCC_PROTO_HDLC32 () {3;}' unless defined(&MUSYCC_PROTO_HDLC32);
    eval 'sub MUSYCC_CHAN_BUFLEN_GET {
        my($x) = @_;
	    eval q(((($x) >> 16) & 0x3f));
    }' unless defined(&MUSYCC_CHAN_BUFLEN_GET);
    eval 'sub MUSYCC_CHAN_BUFLEN_SET {
        my($x) = @_;
	    eval q(((($x) & 0x3f) << 16));
    }' unless defined(&MUSYCC_CHAN_BUFLEN_SET);
    eval 'sub MUSYCC_CHAN_BUFIDX_GET {
        my($x) = @_;
	    eval q(((($x) >> 24) & 0x3f));
    }' unless defined(&MUSYCC_CHAN_BUFIDX_GET);
    eval 'sub MUSYCC_CHAN_BUFIDX_SET {
        my($x) = @_;
	    eval q(((($x) & 0x3f) << 24));
    }' unless defined(&MUSYCC_CHAN_BUFIDX_SET);
    eval 'sub MUSYCC_STATUS_LEN {
        my($x) = @_;
	    eval q((($x) & 0x3fff));
    }' unless defined(&MUSYCC_STATUS_LEN);
    eval 'sub MUSYCC_STATUS_REPEAT () {0x8000;}' unless defined(&MUSYCC_STATUS_REPEAT);
    eval 'sub MUSYCC_STATUS_ERROR () {0xf0000;}' unless defined(&MUSYCC_STATUS_ERROR);
    eval 'sub MUSYCC_STATUS_EOBI () {0x10000000;}' unless defined(&MUSYCC_STATUS_EOBI);
    eval 'sub MUSYCC_STATUS_EOM () {0x20000000;}' unless defined(&MUSYCC_STATUS_EOM);
    eval 'sub MUSYCC_STATUS_NOPOLL () {0x40000000;}' unless defined(&MUSYCC_STATUS_NOPOLL);
    eval 'sub MUSYCC_STATUS_OWNER () {0x80000000;}' unless defined(&MUSYCC_STATUS_OWNER);
    eval 'sub MUSYCC_ROM_MAGIC () {( &htons(0xacc0));}' unless defined(&MUSYCC_ROM_MAGIC);
}
1;
