static int rtl8139_can_receive(void *opaque)

{

    RTL8139State *s = opaque;

    int avail;



    /* Receive (drop) packets if card is disabled.  */

    if (!s->clock_enabled)

      return 1;

    if (!rtl8139_receiver_enabled(s))

      return 1;



    if (rtl8139_cp_receiver_enabled(s)) {

        /* ??? Flow control not implemented in c+ mode.

           This is a hack to work around slirp deficiencies anyway.  */

        return 1;

    } else {

        avail = MOD2(s->RxBufferSize + s->RxBufPtr - s->RxBufAddr,

                     s->RxBufferSize);

        return (avail == 0 || avail >= 1514);

    }

}

static int rtl8139_can_receive(void *opaque)

{

    RTL8139State *s = opaque;

    int avail;



    

    if (!s->clock_enabled)

      return 1;

    if (!rtl8139_receiver_enabled(s))

      return 1;



    if (rtl8139_cp_receiver_enabled(s)) {

        



        return 1;

    } else {

        avail = MOD2(s->RxBufferSize + s->RxBufPtr - s->RxBufAddr,

                     s->RxBufferSize);

        return (avail == 0 || avail >= 1514);

    }

}

static int FUNC_0(void *VAR_0)

{

    RTL8139State *s = VAR_0;

    int VAR_1;



    

    if (!s->clock_enabled)

      return 1;

    if (!rtl8139_receiver_enabled(s))

      return 1;



    if (rtl8139_cp_receiver_enabled(s)) {

        



        return 1;

    } else {

        VAR_1 = MOD2(s->RxBufferSize + s->RxBufPtr - s->RxBufAddr,

                     s->RxBufferSize);

        return (VAR_1 == 0 || VAR_1 >= 1514);

    }

}

static int FUNC_0(void *VAR_0)
{ RTL8139State *s = VAR_0; int VAR_1; if (!s->clock_enabled)
return 1; if (!rtl8139_receiver_enabled(s))
return 1; if (rtl8139_cp_receiver_enabled(s)) { return 1; } else { VAR_1 = MOD2(s->RxBufferSize + s->RxBufPtr - s->RxBufAddr,
s->RxBufferSize); return (VAR_1 == 0 || VAR_1 >= 1514); } }