]> Git Repo - qemu.git/blobdiff - hw/net/fsl_etsec/etsec.h
ivshmem: add device description
[qemu.git] / hw / net / fsl_etsec / etsec.h
index 78d2c57ed336c1133d607511660103529b5031fd..e7dc0a4b90c68161fb474aab1b6d901774054840 100644 (file)
@@ -144,6 +144,8 @@ typedef struct eTSEC {
     QEMUBH *bh;
     struct ptimer_state *ptimer;
 
+    /* Whether we should flush the rx queue when buffer becomes available. */
+    bool need_flush;
 } eTSEC;
 
 #define TYPE_ETSEC_COMMON "eTSEC"
@@ -162,7 +164,7 @@ DeviceState *etsec_create(hwaddr        base,
 
 void etsec_walk_tx_ring(eTSEC *etsec, int ring_nbr);
 void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr);
-void etsec_rx_ring_write(eTSEC *etsec, const uint8_t *buf, size_t size);
+ssize_t etsec_rx_ring_write(eTSEC *etsec, const uint8_t *buf, size_t size);
 
 void etsec_write_miim(eTSEC          *etsec,
                       eTSEC_Register *reg,
This page took 0.024981 seconds and 4 git commands to generate.