PATH:
usr
/
src
/
kernels
/
5.14.0-611.49.2.el9_7.x86_64
/
include
/
drm
/* SPDX-License-Identifier: MIT */ /* * Copyright (C) 2020 Red Hat, Inc. * * Authors: * Hans de Goede <hdegoede@redhat.com> */ #ifndef __DRM_PRIVACY_SCREEN_DRIVER_H__ #define __DRM_PRIVACY_SCREEN_DRIVER_H__ #include <linux/device.h> #include <linux/list.h> #include <linux/mutex.h> #include <drm/drm_connector.h> struct drm_privacy_screen; /** * 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. */ struct drm_privacy_screen_ops { /** * @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. */ int (*set_sw_state)(struct drm_privacy_screen *priv, enum drm_privacy_screen_status sw_state); /** * @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. */ void (*get_hw_state)(struct drm_privacy_screen *priv); }; /** * struct drm_privacy_screen - central privacy-screen structure * * Central privacy-screen structure, this contains the struct device used * to register the screen in sysfs, the screen's state, ops, etc. */ struct drm_privacy_screen { /** @dev: device used to register the privacy-screen in sysfs. */ struct device dev; /** @lock: mutex protection all fields in this struct. */ struct mutex lock; /** @list: privacy-screen devices list list-entry. */ struct list_head list; /** @notifier_head: privacy-screen notifier head. */ struct blocking_notifier_head notifier_head; /** * @ops: &struct drm_privacy_screen_ops for this privacy-screen. * This is NULL if the driver has unregistered the privacy-screen. */ const struct drm_privacy_screen_ops *ops; /** * @sw_state: The privacy-screen's software state, see * :ref:`Standard Connector Properties<standard_connector_properties>` * for more info. */ enum drm_privacy_screen_status sw_state; /** * @hw_state: The privacy-screen's hardware state, see * :ref:`Standard Connector Properties<standard_connector_properties>` * for more info. */ enum drm_privacy_screen_status hw_state; /** * @drvdata: Private data owned by the privacy screen provider */ void *drvdata; }; static inline void *drm_privacy_screen_get_drvdata(struct drm_privacy_screen *priv) { return priv->drvdata; } struct drm_privacy_screen *drm_privacy_screen_register( struct device *parent, const struct drm_privacy_screen_ops *ops, void *data); void drm_privacy_screen_unregister(struct drm_privacy_screen *priv); void drm_privacy_screen_call_notifier_chain(struct drm_privacy_screen *priv); #endif
[-] drm_eld.h
[edit]
[-] drm_bridge.h
[edit]
[-] spsc_queue.h
[edit]
[-] drm_gem_dma_helper.h
[edit]
[-] drm_property.h
[edit]
[-] drm_auth.h
[edit]
[-] drm_mipi_dbi.h
[edit]
[-] drm_mode_object.h
[edit]
[-] drm_pciids.h
[edit]
[+]
ttm
[-] drm_privacy_screen_machine.h
[edit]
[-] drm_fixed.h
[edit]
[-] drm_fb_helper.h
[edit]
[-] drm_gem_ttm_helper.h
[edit]
[-] drm_pagemap.h
[edit]
[-] drm_atomic_uapi.h
[edit]
[-] drm_module.h
[edit]
[+]
display
[-] drm_encoder.h
[edit]
[-] drm_file.h
[edit]
[-] drm_connector.h
[edit]
[-] drm_utils.h
[edit]
[-] drm_suballoc.h
[edit]
[+]
intel
[-] drm_audio_component.h
[edit]
[-] drm_prime.h
[edit]
[-] drm_atomic_helper.h
[edit]
[-] i915_pciids.h
[edit]
[-] drm_mipi_dsi.h
[edit]
[-] drm_writeback.h
[edit]
[-] drm_gem_framebuffer_helper.h
[edit]
[-] drm_lease.h
[edit]
[-] drm_crtc_helper.h
[edit]
[-] drm_client.h
[edit]
[-] Makefile
[edit]
[-] drm_vblank.h
[edit]
[-] drm_format_helper.h
[edit]
[-] drm_fb_dma_helper.h
[edit]
[-] drm_mode_config.h
[edit]
[-] drm_debugfs.h
[edit]
[-] drm_print.h
[edit]
[-] drm_client_event.h
[edit]
[-] drm_panel.h
[edit]
[-] drm_gem_shmem_helper.h
[edit]
[-] drm_debugfs_crc.h
[edit]
[-] drm_cache.h
[edit]
[-] drm_sysfs.h
[edit]
[+]
clients
[-] drm_edid.h
[edit]
[-] drm_modeset_helper.h
[edit]
[-] drm_atomic_state_helper.h
[edit]
[-] drm_ioctl.h
[edit]
[-] drm_blend.h
[edit]
[-] drm_gem_vram_helper.h
[edit]
[-] drm_panic.h
[edit]
[-] drm_plane_helper.h
[edit]
[-] drm_fbdev_dma.h
[edit]
[-] drm_bridge_connector.h
[edit]
[-] drm_probe_helper.h
[edit]
[-] drm_modeset_helper_vtables.h
[edit]
[-] drm_device.h
[edit]
[-] drm_exec.h
[edit]
[-] drm_atomic.h
[edit]
[-] gud.h
[edit]
[-] drm_gem.h
[edit]
[-] drm_gpuvm.h
[edit]
[-] drm_mm.h
[edit]
[-] drm_plane.h
[edit]
[-] drm_gpusvm.h
[edit]
[-] drm_simple_kms_helper.h
[edit]
[-] drm_syncobj.h
[edit]
[-] drm_gem_atomic_helper.h
[edit]
[-] drm_fbdev_shmem.h
[edit]
[-] drm_framebuffer.h
[edit]
[-] drm_accel.h
[edit]
[-] drm_self_refresh_helper.h
[edit]
[-] amd_asic_type.h
[edit]
[-] drm_privacy_screen_consumer.h
[edit]
[-] gpu_scheduler.h
[edit]
[-] drm_fbdev_ttm.h
[edit]
[-] drm_managed.h
[edit]
[-] task_barrier.h
[edit]
[-] drm_fourcc.h
[edit]
[-] drm_vblank_work.h
[edit]
[-] drm_modes.h
[edit]
[-] drm_vma_manager.h
[edit]
[-] drm_buddy.h
[edit]
[-] drm_of.h
[edit]
[+]
..
[+]
bridge
[-] drm_modeset_lock.h
[edit]
[-] drm_rect.h
[edit]
[-] drm_flip_work.h
[edit]
[-] drm_util.h
[edit]
[-] drm_damage_helper.h
[edit]
[-] drm_drv.h
[edit]
[-] drm_kunit_helpers.h
[edit]
[-] drm_color_mgmt.h
[edit]
[-] drm_crtc.h
[edit]
[-] drm_privacy_screen_driver.h
[edit]