virtqueue: Fix comment on shm_io and fix type

This should hold a pointer to a metal_io_region, make that the type.

Also fix the comment above this variable. This region holds the address
of the message buffers, not the vring descriptor table nor available/used
ring data. It is only used for virt-to-phys/phys-to-vert translation on
the buffers pointed to by these descriptors.

Signed-off-by: Andrew Davis <afd@ti.com>
This commit is contained in:
Andrew Davis
2024-03-15 17:48:42 -05:00
committed by Arnaud Pouliquen
parent 3eab0819e5
commit 4db4a08135

View File

@@ -114,10 +114,10 @@ struct virtqueue {
uint16_t vq_queued_cnt;
/**
* Metal I/O region of the vrings and buffers.
* Metal I/O region of the buffers.
* This structure is used for conversion between virtual and physical addresses.
*/
void *shm_io;
struct metal_io_region *shm_io;
/**
* Head of the free chain in the descriptor table. If there are no free descriptors,