Add VIRTIO_GPU_F_BLOB_READONLY and VIRTIO_GPU_BLOB_FLAG_USE_READONLY to the imported virtio-gpu header.
Mirror the kernel UAPI definitions needed by readonly blob support. This is a targeted header update, not a full Linux header resync. Signed-off-by: Honglei Huang <[email protected]> --- include/standard-headers/linux/virtio_gpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/standard-headers/linux/virtio_gpu.h b/include/standard-headers/linux/virtio_gpu.h index 976bd225875..7a91181287e 100644 --- a/include/standard-headers/linux/virtio_gpu.h +++ b/include/standard-headers/linux/virtio_gpu.h @@ -72,6 +72,7 @@ * must be aligned to that value. */ #define VIRTIO_GPU_F_BLOB_ALIGNMENT 5 +#define VIRTIO_GPU_F_BLOB_READONLY 6 enum virtio_gpu_ctrl_type { VIRTIO_GPU_UNDEFINED = 0, @@ -415,6 +416,7 @@ struct virtio_gpu_resource_create_blob { #define VIRTIO_GPU_BLOB_FLAG_USE_MAPPABLE 0x0001 #define VIRTIO_GPU_BLOB_FLAG_USE_SHAREABLE 0x0002 #define VIRTIO_GPU_BLOB_FLAG_USE_CROSS_DEVICE 0x0004 +#define VIRTIO_GPU_BLOB_FLAG_USE_READONLY 0x0008 /* zero is invalid blob mem */ uint32_t blob_mem; uint32_t blob_flags; -- 2.34.1
