Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.59.207
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-5.15.0-25 /
include /
drm /
[ HOME SHELL ]
Name
Size
Permission
Action
bridge
[ DIR ]
drwxr-xr-x
i2c
[ DIR ]
drwxr-xr-x
ttm
[ DIR ]
drwxr-xr-x
amd_asic_type.h
2.15
KB
-rw-r--r--
drm_aperture.h
1.13
KB
-rw-r--r--
drm_atomic.h
40.7
KB
-rw-r--r--
drm_atomic_helper.h
9.27
KB
-rw-r--r--
drm_atomic_state_helper.h
4.21
KB
-rw-r--r--
drm_atomic_uapi.h
2.17
KB
-rw-r--r--
drm_audio_component.h
3.79
KB
-rw-r--r--
drm_auth.h
4.64
KB
-rw-r--r--
drm_blend.h
2.35
KB
-rw-r--r--
drm_bridge.h
33.19
KB
-rw-r--r--
drm_bridge_connector.h
548
B
-rw-r--r--
drm_cache.h
3.01
KB
-rw-r--r--
drm_client.h
4.94
KB
-rw-r--r--
drm_color_mgmt.h
3.79
KB
-rw-r--r--
drm_connector.h
55.15
KB
-rw-r--r--
drm_crtc.h
44.48
KB
-rw-r--r--
drm_crtc_helper.h
2.39
KB
-rw-r--r--
drm_damage_helper.h
3.33
KB
-rw-r--r--
drm_debugfs.h
3.4
KB
-rw-r--r--
drm_debugfs_crc.h
2.66
KB
-rw-r--r--
drm_device.h
8.52
KB
-rw-r--r--
drm_displayid.h
3.32
KB
-rw-r--r--
drm_dp_aux_bus.h
1.7
KB
-rw-r--r--
drm_dp_dual_mode_helper.h
4.62
KB
-rw-r--r--
drm_dp_helper.h
87.62
KB
-rw-r--r--
drm_dp_mst_helper.h
27.73
KB
-rw-r--r--
drm_drv.h
18.67
KB
-rw-r--r--
drm_dsc.h
16.29
KB
-rw-r--r--
drm_edid.h
17.16
KB
-rw-r--r--
drm_encoder.h
10.64
KB
-rw-r--r--
drm_encoder_slave.h
6.44
KB
-rw-r--r--
drm_fb_cma_helper.h
575
B
-rw-r--r--
drm_fb_helper.h
12.71
KB
-rw-r--r--
drm_file.h
12.12
KB
-rw-r--r--
drm_fixed.h
4.71
KB
-rw-r--r--
drm_flip_work.h
3.01
KB
-rw-r--r--
drm_format_helper.h
1.49
KB
-rw-r--r--
drm_fourcc.h
9.7
KB
-rw-r--r--
drm_framebuffer.h
10.4
KB
-rw-r--r--
drm_gem.h
11.8
KB
-rw-r--r--
drm_gem_atomic_helper.h
4.61
KB
-rw-r--r--
drm_gem_cma_helper.h
6.83
KB
-rw-r--r--
drm_gem_framebuffer_helper.h
2.06
KB
-rw-r--r--
drm_gem_shmem_helper.h
4.23
KB
-rw-r--r--
drm_gem_ttm_helper.h
861
B
-rw-r--r--
drm_gem_vram_helper.h
6.17
KB
-rw-r--r--
drm_hashtab.h
3.01
KB
-rw-r--r--
drm_hdcp.h
8.79
KB
-rw-r--r--
drm_ioctl.h
6.23
KB
-rw-r--r--
drm_lease.h
1010
B
-rw-r--r--
drm_legacy.h
9.26
KB
-rw-r--r--
drm_managed.h
3.35
KB
-rw-r--r--
drm_mipi_dbi.h
4.72
KB
-rw-r--r--
drm_mipi_dsi.h
10.79
KB
-rw-r--r--
drm_mm.h
17.5
KB
-rw-r--r--
drm_mode_config.h
32.24
KB
-rw-r--r--
drm_mode_object.h
5.17
KB
-rw-r--r--
drm_modes.h
18.18
KB
-rw-r--r--
drm_modeset_helper.h
1.77
KB
-rw-r--r--
drm_modeset_helper_vtables.h
55.98
KB
-rw-r--r--
drm_modeset_lock.h
6.8
KB
-rw-r--r--
drm_of.h
4.11
KB
-rw-r--r--
drm_panel.h
6.26
KB
-rw-r--r--
drm_pciids.h
66.47
KB
-rw-r--r--
drm_plane.h
28.48
KB
-rw-r--r--
drm_plane_helper.h
1.75
KB
-rw-r--r--
drm_prime.h
4.07
KB
-rw-r--r--
drm_print.h
16.09
KB
-rw-r--r--
drm_probe_helper.h
848
B
-rw-r--r--
drm_property.h
11.76
KB
-rw-r--r--
drm_rect.h
6.86
KB
-rw-r--r--
drm_scdc_helper.h
4.34
KB
-rw-r--r--
drm_self_refresh_helper.h
594
B
-rw-r--r--
drm_simple_kms_helper.h
8.91
KB
-rw-r--r--
drm_syncobj.h
3.85
KB
-rw-r--r--
drm_sysfs.h
442
B
-rw-r--r--
drm_util.h
2.58
KB
-rw-r--r--
drm_utils.h
504
B
-rw-r--r--
drm_vblank.h
9.04
KB
-rw-r--r--
drm_vblank_work.h
1.91
KB
-rw-r--r--
drm_vma_manager.h
8.15
KB
-rw-r--r--
drm_writeback.h
4.05
KB
-rw-r--r--
gma_drm.h
413
B
-rw-r--r--
gpu_scheduler.h
15.44
KB
-rw-r--r--
gud.h
11.58
KB
-rw-r--r--
i915_component.h
1.76
KB
-rw-r--r--
i915_drm.h
3.6
KB
-rw-r--r--
i915_mei_hdcp_interface.h
5.76
KB
-rw-r--r--
i915_pciids.h
21.38
KB
-rw-r--r--
intel-gtt.h
996
B
-rw-r--r--
intel_lpe_audio.h
1.72
KB
-rw-r--r--
spsc_queue.h
3.06
KB
-rw-r--r--
task_barrier.h
2.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : drm_mipi_dsi.h
/* SPDX-License-Identifier: GPL-2.0-only */ /* * MIPI DSI Bus * * Copyright (C) 2012-2013, Samsung Electronics, Co., Ltd. * Andrzej Hajda <a.hajda@samsung.com> */ #ifndef __DRM_MIPI_DSI_H__ #define __DRM_MIPI_DSI_H__ #include <linux/device.h> struct mipi_dsi_host; struct mipi_dsi_device; struct drm_dsc_picture_parameter_set; /* request ACK from peripheral */ #define MIPI_DSI_MSG_REQ_ACK BIT(0) /* use Low Power Mode to transmit message */ #define MIPI_DSI_MSG_USE_LPM BIT(1) /** * struct mipi_dsi_msg - read/write DSI buffer * @channel: virtual channel id * @type: payload data type * @flags: flags controlling this message transmission * @tx_len: length of @tx_buf * @tx_buf: data to be written * @rx_len: length of @rx_buf * @rx_buf: data to be read, or NULL */ struct mipi_dsi_msg { u8 channel; u8 type; u16 flags; size_t tx_len; const void *tx_buf; size_t rx_len; void *rx_buf; }; bool mipi_dsi_packet_format_is_short(u8 type); bool mipi_dsi_packet_format_is_long(u8 type); /** * struct mipi_dsi_packet - represents a MIPI DSI packet in protocol format * @size: size (in bytes) of the packet * @header: the four bytes that make up the header (Data ID, Word Count or * Packet Data, and ECC) * @payload_length: number of bytes in the payload * @payload: a pointer to a buffer containing the payload, if any */ struct mipi_dsi_packet { size_t size; u8 header[4]; size_t payload_length; const u8 *payload; }; int mipi_dsi_create_packet(struct mipi_dsi_packet *packet, const struct mipi_dsi_msg *msg); /** * struct mipi_dsi_host_ops - DSI bus operations * @attach: attach DSI device to DSI host * @detach: detach DSI device from DSI host * @transfer: transmit a DSI packet * * DSI packets transmitted by .transfer() are passed in as mipi_dsi_msg * structures. This structure contains information about the type of packet * being transmitted as well as the transmit and receive buffers. When an * error is encountered during transmission, this function will return a * negative error code. On success it shall return the number of bytes * transmitted for write packets or the number of bytes received for read * packets. * * Note that typically DSI packet transmission is atomic, so the .transfer() * function will seldomly return anything other than the number of bytes * contained in the transmit buffer on success. * * Also note that those callbacks can be called no matter the state the * host is in. Drivers that need the underlying device to be powered to * perform these operations will first need to make sure it's been * properly enabled. */ struct mipi_dsi_host_ops { int (*attach)(struct mipi_dsi_host *host, struct mipi_dsi_device *dsi); int (*detach)(struct mipi_dsi_host *host, struct mipi_dsi_device *dsi); ssize_t (*transfer)(struct mipi_dsi_host *host, const struct mipi_dsi_msg *msg); }; /** * struct mipi_dsi_host - DSI host device * @dev: driver model device node for this DSI host * @ops: DSI host operations * @list: list management */ struct mipi_dsi_host { struct device *dev; const struct mipi_dsi_host_ops *ops; struct list_head list; }; int mipi_dsi_host_register(struct mipi_dsi_host *host); void mipi_dsi_host_unregister(struct mipi_dsi_host *host); struct mipi_dsi_host *of_find_mipi_dsi_host_by_node(struct device_node *node); /* DSI mode flags */ /* video mode */ #define MIPI_DSI_MODE_VIDEO BIT(0) /* video burst mode */ #define MIPI_DSI_MODE_VIDEO_BURST BIT(1) /* video pulse mode */ #define MIPI_DSI_MODE_VIDEO_SYNC_PULSE BIT(2) /* enable auto vertical count mode */ #define MIPI_DSI_MODE_VIDEO_AUTO_VERT BIT(3) /* enable hsync-end packets in vsync-pulse and v-porch area */ #define MIPI_DSI_MODE_VIDEO_HSE BIT(4) /* disable hfront-porch area */ #define MIPI_DSI_MODE_VIDEO_NO_HFP BIT(5) /* disable hback-porch area */ #define MIPI_DSI_MODE_VIDEO_NO_HBP BIT(6) /* disable hsync-active area */ #define MIPI_DSI_MODE_VIDEO_NO_HSA BIT(7) /* flush display FIFO on vsync pulse */ #define MIPI_DSI_MODE_VSYNC_FLUSH BIT(8) /* disable EoT packets in HS mode */ #define MIPI_DSI_MODE_NO_EOT_PACKET BIT(9) /* device supports non-continuous clock behavior (DSI spec 5.6.1) */ #define MIPI_DSI_CLOCK_NON_CONTINUOUS BIT(10) /* transmit data in low power */ #define MIPI_DSI_MODE_LPM BIT(11) enum mipi_dsi_pixel_format { MIPI_DSI_FMT_RGB888, MIPI_DSI_FMT_RGB666, MIPI_DSI_FMT_RGB666_PACKED, MIPI_DSI_FMT_RGB565, }; #define DSI_DEV_NAME_SIZE 20 /** * struct mipi_dsi_device_info - template for creating a mipi_dsi_device * @type: DSI peripheral chip type * @channel: DSI virtual channel assigned to peripheral * @node: pointer to OF device node or NULL * * This is populated and passed to mipi_dsi_device_new to create a new * DSI device */ struct mipi_dsi_device_info { char type[DSI_DEV_NAME_SIZE]; u32 channel; struct device_node *node; }; /** * struct mipi_dsi_device - DSI peripheral device * @host: DSI host for this peripheral * @dev: driver model device node for this peripheral * @name: DSI peripheral chip type * @channel: virtual channel assigned to the peripheral * @format: pixel format for video mode * @lanes: number of active data lanes * @mode_flags: DSI operation mode related flags * @hs_rate: maximum lane frequency for high speed mode in hertz, this should * be set to the real limits of the hardware, zero is only accepted for * legacy drivers * @lp_rate: maximum lane frequency for low power mode in hertz, this should * be set to the real limits of the hardware, zero is only accepted for * legacy drivers */ struct mipi_dsi_device { struct mipi_dsi_host *host; struct device dev; char name[DSI_DEV_NAME_SIZE]; unsigned int channel; unsigned int lanes; enum mipi_dsi_pixel_format format; unsigned long mode_flags; unsigned long hs_rate; unsigned long lp_rate; }; #define MIPI_DSI_MODULE_PREFIX "mipi-dsi:" static inline struct mipi_dsi_device *to_mipi_dsi_device(struct device *dev) { return container_of(dev, struct mipi_dsi_device, dev); } /** * mipi_dsi_pixel_format_to_bpp - obtain the number of bits per pixel for any * given pixel format defined by the MIPI DSI * specification * @fmt: MIPI DSI pixel format * * Returns: The number of bits per pixel of the given pixel format. */ static inline int mipi_dsi_pixel_format_to_bpp(enum mipi_dsi_pixel_format fmt) { switch (fmt) { case MIPI_DSI_FMT_RGB888: case MIPI_DSI_FMT_RGB666: return 24; case MIPI_DSI_FMT_RGB666_PACKED: return 18; case MIPI_DSI_FMT_RGB565: return 16; } return -EINVAL; } struct mipi_dsi_device * mipi_dsi_device_register_full(struct mipi_dsi_host *host, const struct mipi_dsi_device_info *info); void mipi_dsi_device_unregister(struct mipi_dsi_device *dsi); struct mipi_dsi_device *of_find_mipi_dsi_device_by_node(struct device_node *np); int mipi_dsi_attach(struct mipi_dsi_device *dsi); int mipi_dsi_detach(struct mipi_dsi_device *dsi); int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi); int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi); int mipi_dsi_set_maximum_return_packet_size(struct mipi_dsi_device *dsi, u16 value); ssize_t mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable); ssize_t mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi, const struct drm_dsc_picture_parameter_set *pps); ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload, size_t size); ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params, size_t num_params, void *data, size_t size); /** * enum mipi_dsi_dcs_tear_mode - Tearing Effect Output Line mode * @MIPI_DSI_DCS_TEAR_MODE_VBLANK: the TE output line consists of V-Blanking * information only * @MIPI_DSI_DCS_TEAR_MODE_VHBLANK : the TE output line consists of both * V-Blanking and H-Blanking information */ enum mipi_dsi_dcs_tear_mode { MIPI_DSI_DCS_TEAR_MODE_VBLANK, MIPI_DSI_DCS_TEAR_MODE_VHBLANK, }; #define MIPI_DSI_DCS_POWER_MODE_DISPLAY (1 << 2) #define MIPI_DSI_DCS_POWER_MODE_NORMAL (1 << 3) #define MIPI_DSI_DCS_POWER_MODE_SLEEP (1 << 4) #define MIPI_DSI_DCS_POWER_MODE_PARTIAL (1 << 5) #define MIPI_DSI_DCS_POWER_MODE_IDLE (1 << 6) ssize_t mipi_dsi_dcs_write_buffer(struct mipi_dsi_device *dsi, const void *data, size_t len); ssize_t mipi_dsi_dcs_write(struct mipi_dsi_device *dsi, u8 cmd, const void *data, size_t len); ssize_t mipi_dsi_dcs_read(struct mipi_dsi_device *dsi, u8 cmd, void *data, size_t len); int mipi_dsi_dcs_nop(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_soft_reset(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_get_power_mode(struct mipi_dsi_device *dsi, u8 *mode); int mipi_dsi_dcs_get_pixel_format(struct mipi_dsi_device *dsi, u8 *format); int mipi_dsi_dcs_enter_sleep_mode(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_exit_sleep_mode(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_set_display_off(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_set_display_on(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_set_column_address(struct mipi_dsi_device *dsi, u16 start, u16 end); int mipi_dsi_dcs_set_page_address(struct mipi_dsi_device *dsi, u16 start, u16 end); int mipi_dsi_dcs_set_tear_off(struct mipi_dsi_device *dsi); int mipi_dsi_dcs_set_tear_on(struct mipi_dsi_device *dsi, enum mipi_dsi_dcs_tear_mode mode); int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format); int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline); int mipi_dsi_dcs_set_display_brightness(struct mipi_dsi_device *dsi, u16 brightness); int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi, u16 *brightness); /** * struct mipi_dsi_driver - DSI driver * @driver: device driver model driver * @probe: callback for device binding * @remove: callback for device unbinding * @shutdown: called at shutdown time to quiesce the device */ struct mipi_dsi_driver { struct device_driver driver; int(*probe)(struct mipi_dsi_device *dsi); int(*remove)(struct mipi_dsi_device *dsi); void (*shutdown)(struct mipi_dsi_device *dsi); }; static inline struct mipi_dsi_driver * to_mipi_dsi_driver(struct device_driver *driver) { return container_of(driver, struct mipi_dsi_driver, driver); } static inline void *mipi_dsi_get_drvdata(const struct mipi_dsi_device *dsi) { return dev_get_drvdata(&dsi->dev); } static inline void mipi_dsi_set_drvdata(struct mipi_dsi_device *dsi, void *data) { dev_set_drvdata(&dsi->dev, data); } int mipi_dsi_driver_register_full(struct mipi_dsi_driver *driver, struct module *owner); void mipi_dsi_driver_unregister(struct mipi_dsi_driver *driver); #define mipi_dsi_driver_register(driver) \ mipi_dsi_driver_register_full(driver, THIS_MODULE) #define module_mipi_dsi_driver(__mipi_dsi_driver) \ module_driver(__mipi_dsi_driver, mipi_dsi_driver_register, \ mipi_dsi_driver_unregister) #endif /* __DRM_MIPI_DSI__ */
Close