include/drm/display/drm_dp.h
Source file repositories/reference/linux-study-clean/include/drm/display/drm_dp.h
File Facts
- System
- Linux kernel
- Corpus path
include/drm/display/drm_dp.h- Extension
.h- Size
- 78857 bytes
- Lines
- 1882
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct dp_sdp_headerstruct dp_sdpenum drm_dp_phyenum dp_pixelformatenum dp_colorimetryenum dp_dynamic_rangeenum dp_content_typeenum operation_mode
Annotated Snippet
struct dp_sdp_header {
u8 HB0;
u8 HB1;
u8 HB2;
u8 HB3;
} __packed;
#define EDP_SDP_HEADER_REVISION_MASK 0x1F
#define EDP_SDP_HEADER_VALID_PAYLOAD_BYTES 0x1F
#define DP_SDP_PPS_HEADER_PAYLOAD_BYTES_MINUS_1 0x7F
/**
* struct dp_sdp - DP secondary data packet
* @sdp_header: DP secondary data packet header
* @db: DP secondaray data packet data blocks
* VSC SDP Payload for PSR
* db[0]: Stereo Interface
* db[1]: 0 - PSR State; 1 - Update RFB; 2 - CRC Valid
* db[2]: CRC value bits 7:0 of the R or Cr component
* db[3]: CRC value bits 15:8 of the R or Cr component
* db[4]: CRC value bits 7:0 of the G or Y component
* db[5]: CRC value bits 15:8 of the G or Y component
* db[6]: CRC value bits 7:0 of the B or Cb component
* db[7]: CRC value bits 15:8 of the B or Cb component
* db[8] - db[31]: Reserved
* VSC SDP Payload for Pixel Encoding/Colorimetry Format
* db[0] - db[15]: Reserved
* db[16]: Pixel Encoding and Colorimetry Formats
* db[17]: Dynamic Range and Component Bit Depth
* db[18]: Content Type
* db[19] - db[31]: Reserved
*/
struct dp_sdp {
struct dp_sdp_header sdp_header;
u8 db[32];
} __packed;
#define EDP_VSC_PSR_STATE_ACTIVE (1<<0)
#define EDP_VSC_PSR_UPDATE_RFB (1<<1)
#define EDP_VSC_PSR_CRC_VALUES_VALID (1<<2)
/**
* enum dp_pixelformat - drm DP Pixel encoding formats
*
* This enum is used to indicate DP VSC SDP Pixel encoding formats.
* It is based on DP 1.4 spec [Table 2-117: VSC SDP Payload for DB16 through
* DB18]
*
* @DP_PIXELFORMAT_RGB: RGB pixel encoding format
* @DP_PIXELFORMAT_YUV444: YCbCr 4:4:4 pixel encoding format
* @DP_PIXELFORMAT_YUV422: YCbCr 4:2:2 pixel encoding format
* @DP_PIXELFORMAT_YUV420: YCbCr 4:2:0 pixel encoding format
* @DP_PIXELFORMAT_Y_ONLY: Y Only pixel encoding format
* @DP_PIXELFORMAT_RAW: RAW pixel encoding format
* @DP_PIXELFORMAT_RESERVED: Reserved pixel encoding format
*/
enum dp_pixelformat {
DP_PIXELFORMAT_RGB = 0,
DP_PIXELFORMAT_YUV444 = 0x1,
DP_PIXELFORMAT_YUV422 = 0x2,
DP_PIXELFORMAT_YUV420 = 0x3,
DP_PIXELFORMAT_Y_ONLY = 0x4,
DP_PIXELFORMAT_RAW = 0x5,
DP_PIXELFORMAT_RESERVED = 0x6,
};
/**
* enum dp_colorimetry - drm DP Colorimetry formats
*
* This enum is used to indicate DP VSC SDP Colorimetry formats.
* It is based on DP 1.4 spec [Table 2-117: VSC SDP Payload for DB16 through
* DB18] and a name of enum member follows enum drm_colorimetry definition.
*
* @DP_COLORIMETRY_DEFAULT: sRGB (IEC 61966-2-1) or
* ITU-R BT.601 colorimetry format
* @DP_COLORIMETRY_RGB_WIDE_FIXED: RGB wide gamut fixed point colorimetry format
* @DP_COLORIMETRY_BT709_YCC: ITU-R BT.709 colorimetry format
* @DP_COLORIMETRY_RGB_WIDE_FLOAT: RGB wide gamut floating point
* (scRGB (IEC 61966-2-2)) colorimetry format
* @DP_COLORIMETRY_XVYCC_601: xvYCC601 colorimetry format
* @DP_COLORIMETRY_OPRGB: OpRGB colorimetry format
* @DP_COLORIMETRY_XVYCC_709: xvYCC709 colorimetry format
* @DP_COLORIMETRY_DCI_P3_RGB: DCI-P3 (SMPTE RP 431-2) colorimetry format
* @DP_COLORIMETRY_SYCC_601: sYCC601 colorimetry format
* @DP_COLORIMETRY_RGB_CUSTOM: RGB Custom Color Profile colorimetry format
* @DP_COLORIMETRY_OPYCC_601: opYCC601 colorimetry format
* @DP_COLORIMETRY_BT2020_RGB: ITU-R BT.2020 R' G' B' colorimetry format
* @DP_COLORIMETRY_BT2020_CYCC: ITU-R BT.2020 Y'c C'bc C'rc colorimetry format
* @DP_COLORIMETRY_BT2020_YCC: ITU-R BT.2020 Y' C'b C'r colorimetry format
*/
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct dp_sdp_header`, `struct dp_sdp`, `enum drm_dp_phy`, `enum dp_pixelformat`, `enum dp_colorimetry`, `enum dp_dynamic_range`, `enum dp_content_type`, `enum operation_mode`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.