Skip to content

Commit 66b29a9

Browse files
committed
Add queue prototype
1 parent 35ef04f commit 66b29a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

virtio-snd.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "CNFA_sf.h"
99

1010
#include "device.h"
11+
#include "queue.h"
1112
#include "riscv.h"
1213
#include "riscv_private.h"
1314
#include "virtio.h"
@@ -663,6 +664,11 @@ static int virtio_snd_desc_handler(virtio_snd_state_t *vsnd,
663664
return 0;
664665
}
665666

667+
668+
typedef struct {
669+
struct virtq_desc;
670+
struct queue_head q;
671+
} virtq_desc_queue_t;
666672
static int virtio_snd_tx_desc_handler(virtio_snd_state_t *vsnd,
667673
const virtio_snd_queue_t *queue,
668674
uint32_t desc_idx,

0 commit comments

Comments
 (0)