XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
drm_privacy_screen_ops Struct Reference

#include <drm_privacy_screen_driver.h>

Public Attributes

int(* set_sw_state )(struct drm_privacy_screen *priv, enum drm_privacy_screen_status sw_state)
 
void(* get_hw_state )(struct drm_privacy_screen *priv)
 

Detailed Description

struct drm_privacy_screen_ops - drm_privacy_screen operations

Defines the operations which the privacy-screen class code may call. These functions should be implemented by the privacy-screen driver.

Member Data Documentation

◆ get_hw_state

void(* drm_privacy_screen_ops::get_hw_state) (struct drm_privacy_screen *priv)

@get_hw_state: Called to request that the driver gets the current privacy-screen state from the hardware and then updates sw_state and hw_state accordingly. This will be called by the core just before the privacy-screen is registered in sysfs.

◆ set_sw_state

int(* drm_privacy_screen_ops::set_sw_state) (struct drm_privacy_screen *priv, enum drm_privacy_screen_status sw_state)

@set_sw_state: Called to request a change of the privacy-screen state. The privacy-screen class code contains a check to avoid this getting called when the hw_state reports the state is locked. It is the driver's responsibility to update sw_state and hw_state. This is always called with the drm_privacy_screen's lock held.


The documentation for this struct was generated from the following file: