mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-02-06 02:54:32 +08:00
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:
committed by
Arnaud Pouliquen
parent
3eab0819e5
commit
4db4a08135
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user