Struct vfio_bindings::bindings::vfio::vfio_device_gfx_plane_info [−][src]
#[repr(C)]pub struct vfio_device_gfx_plane_info {Show 14 fields
pub argsz: __u32,
pub flags: __u32,
pub drm_plane_type: __u32,
pub drm_format: __u32,
pub drm_format_mod: __u64,
pub width: __u32,
pub height: __u32,
pub stride: __u32,
pub size: __u32,
pub x_pos: __u32,
pub y_pos: __u32,
pub x_hot: __u32,
pub y_hot: __u32,
pub __bindgen_anon_1: vfio_device_gfx_plane_info__bindgen_ty_1,
}
Expand description
VFIO_DEVICE_QUERY_GFX_PLANE - _IOW(VFIO_TYPE, VFIO_BASE + 14, struct vfio_device_query_gfx_plane)
Set the drm_plane_type and flags, then retrieve the gfx plane info.
flags supported:
- VFIO_GFX_PLANE_TYPE_PROBE and VFIO_GFX_PLANE_TYPE_DMABUF are set to ask if the mdev supports dma-buf. 0 on support, -EINVAL on no support for dma-buf.
- VFIO_GFX_PLANE_TYPE_PROBE and VFIO_GFX_PLANE_TYPE_REGION are set to ask if the mdev supports region. 0 on support, -EINVAL on no support for region.
- VFIO_GFX_PLANE_TYPE_DMABUF or VFIO_GFX_PLANE_TYPE_REGION is set with each call to query the plane info.
- Others are invalid and return -EINVAL.
Note:
- Plane could be disabled by guest. In that case, success will be returned with zero-initialized drm_format, size, width and height fields.
- x_hot/y_hot is set to 0xFFFFFFFF if no hotspot information available
Return: 0 on success, -errno on other failure.
Fields
argsz: __u32
flags: __u32
drm_plane_type: __u32
drm_format: __u32
drm_format_mod: __u64
width: __u32
height: __u32
stride: __u32
size: __u32
x_pos: __u32
y_pos: __u32
x_hot: __u32
y_hot: __u32
__bindgen_anon_1: vfio_device_gfx_plane_info__bindgen_ty_1
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for vfio_device_gfx_plane_info
impl Send for vfio_device_gfx_plane_info
impl Sync for vfio_device_gfx_plane_info
impl Unpin for vfio_device_gfx_plane_info
impl UnwindSafe for vfio_device_gfx_plane_info
Blanket Implementations
Mutably borrows from an owned value. Read more