require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_HAYESPREG_H_)) {
    eval 'sub _HAYESPREG_H_ () {1;}' unless defined(&_HAYESPREG_H_);
    eval 'sub HAYESP_CMD1 () {4;}' unless defined(&HAYESP_CMD1);
    eval 'sub HAYESP_CMD2 () {5;}' unless defined(&HAYESP_CMD2);
    eval 'sub HAYESP_STATUS1 () { &HAYESP_CMD1;}' unless defined(&HAYESP_STATUS1);
    eval 'sub HAYESP_STATUS2 () { &HAYESP_CMD2;}' unless defined(&HAYESP_STATUS2);
    eval 'sub HAYESP_GETTEST () {0x1;}' unless defined(&HAYESP_GETTEST);
    eval 'sub HAYESP_GETDIPS () {0x2;}' unless defined(&HAYESP_GETDIPS);
    eval 'sub HAYESP_SETFLOWTYPE () {0x8;}' unless defined(&HAYESP_SETFLOWTYPE);
    eval 'sub HAYESP_SETRXFLOW () {0xa;}' unless defined(&HAYESP_SETRXFLOW);
    eval 'sub HAYESP_SETMODE () {0x10;}' unless defined(&HAYESP_SETMODE);
    eval 'sub HAYESP_MODE_FIFO () {0x2;}' unless defined(&HAYESP_MODE_FIFO);
    eval 'sub HAYESP_MODE_RTS () {0x4;}' unless defined(&HAYESP_MODE_RTS);
    eval 'sub HAYESP_MODE_SCALE () {0x80;}' unless defined(&HAYESP_MODE_SCALE);
    eval 'sub HAYESP_FLOW_RTS () {0x4;}' unless defined(&HAYESP_FLOW_RTS);
    eval 'sub HAYESP_FLOW_CTS () {0x10;}' unless defined(&HAYESP_FLOW_CTS);
    eval 'sub HAYESP_RXHIWMARK () {768;}' unless defined(&HAYESP_RXHIWMARK);
    eval 'sub HAYESP_RXLOWMARK () {512;}' unless defined(&HAYESP_RXLOWMARK);
    eval 'sub HAYESP_HIBYTE {
        my($w) = @_;
	    eval q(((($w) >> 8) & 0xff));
    }' unless defined(&HAYESP_HIBYTE);
    eval 'sub HAYESP_LOBYTE {
        my($w) = @_;
	    eval q((($w) & 0xff));
    }' unless defined(&HAYESP_LOBYTE);
}
1;
