drivers/gpu/drm/tests/drm_kunit_edid.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/tests/drm_kunit_edid.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/tests/drm_kunit_edid.h
Extension
.h
Size
40794 bytes
Lines
984
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef DRM_KUNIT_EDID_H_
#define DRM_KUNIT_EDID_H_

/*
 * edid-decode (hex):
 *
 * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
 * 00 21 01 03 81 a0 5a 78 0a 00 00 00 00 00 00 00
 * 00 00 00 00 00 00 01 01 01 01 01 01 01 01 01 01
 * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
 * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
 * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
 * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
 * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ab
 *
 * ----------------
 *
 * Block 0, Base EDID:
 *   EDID Structure Version & Revision: 1.3
 *   Vendor & Product Identification:
 *     Manufacturer: LNX
 *     Model: 42
 *     Made in: 2023
 *   Basic Display Parameters & Features:
 *     Digital display
 *     DFP 1.x compatible TMDS
 *     Maximum image size: 160 cm x 90 cm
 *     Gamma: 2.20
 *     RGB color display
 *     First detailed timing is the preferred timing
 *   Color Characteristics:
 *     Red  : 0.0000, 0.0000
 *     Green: 0.0000, 0.0000
 *     Blue : 0.0000, 0.0000
 *     White: 0.0000, 0.0000
 *   Established Timings I & II: none
 *   Standard Timings: none
 *   Detailed Timing Descriptors:
 *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
 *                  Hfront   88 Hsync  44 Hback  148 Hpol P
 *                  Vfront    4 Vsync   5 Vback   36 Vpol P
 *     Display Product Name: 'Test EDID'
 *     Display Range Limits:
 *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
 *     Dummy Descriptor:
 * Checksum: 0xab
 *
 * ----------------
 *
 * edid-decode 1.30.0-5367
 * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
 *
 * EDID conformity: PASS
 */
static const unsigned char test_edid_dvi_1080p[] = {
	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
	0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xab
};

/*
 *
 * This edid is intentionally broken with the 100MHz limit. It's meant
 * to be used only with tests in unusual situations.
 *
 * edid-decode (hex):
 *
 * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
 * 00 21 01 03 81 a0 5a 78 02 00 00 00 00 00 00 00
 * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
 * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
 * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
 * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
 * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
 * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 92
 *
 * 02 03 15 81 e3 05 00 20 41 10 e2 00 4a 67 03 0c
 * 00 12 34 00 14 00 00 00 00 00 00 00 00 00 00 00
 * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Annotation

Implementation Notes