[−][src]Struct vfio_bindings::bindings::vfio::vfio_region_gfx_edid
struct vfio_region_gfx_edid - EDID region layout.
Set display link state and EDID blob.
The EDID blob has monitor information such as brand, name, serial number, physical size, supported video modes and more.
This special region allows userspace (typically qemu) set a virtual EDID for the virtual monitor, which allows a flexible display configuration.
For the edid blob spec look here: https://en.wikipedia.org/wiki/Extended_Display_Identification_Data
On linux systems you can find the EDID blob in sysfs: /sys/class/drm/${card}/${connector}/edid
You can use the edid-decode ulility (comes with xorg-x11-utils) to decode the EDID blob.
@edid_offset: location of the edid blob, relative to the start of the region (readonly). @edid_max_size: max size of the edid blob (readonly). @edid_size: actual edid size (read/write). @link_state: display link state (read/write). VFIO_DEVICE_GFX_LINK_STATE_UP: Monitor is turned on. VFIO_DEVICE_GFX_LINK_STATE_DOWN: Monitor is turned off. @max_xres: max display width (0 == no limitation, readonly). @max_yres: max display height (0 == no limitation, readonly).
EDID update protocol: (1) set link-state to down. (2) update edid blob and size. (3) set link-state to up.
Fields
edid_offset: __u32
edid_max_size: __u32
edid_size: __u32
max_xres: __u32
max_yres: __u32
link_state: __u32
Trait Implementations
impl Clone for vfio_region_gfx_edid
[src]
fn clone(&self) -> vfio_region_gfx_edid
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for vfio_region_gfx_edid
[src]
impl Default for vfio_region_gfx_edid
[src]
fn default() -> vfio_region_gfx_edid
[src]
impl PartialEq<vfio_region_gfx_edid> for vfio_region_gfx_edid
[src]
fn eq(&self, other: &vfio_region_gfx_edid) -> bool
[src]
fn ne(&self, other: &vfio_region_gfx_edid) -> bool
[src]
impl Debug for vfio_region_gfx_edid
[src]
Auto Trait Implementations
impl Send for vfio_region_gfx_edid
impl Sync for vfio_region_gfx_edid
impl Unpin for vfio_region_gfx_edid
impl UnwindSafe for vfio_region_gfx_edid
impl RefUnwindSafe for vfio_region_gfx_edid
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,