drivers/gpu/drm/hyperv/hyperv_drm_proto.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/hyperv/hyperv_drm_proto.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/hyperv/hyperv_drm_proto.c- Extension
.c- Size
- 16528 bytes
- Lines
- 605
- 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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/hyperv.hdrm/drm_print.hdrm/drm_simple_kms_helper.hhyperv_drm.h
Detected Declarations
struct pipe_msg_hdrstruct hvd_screen_infostruct synthvid_msg_hdrstruct synthvid_version_reqstruct synthvid_version_respstruct synthvid_vram_locationstruct synthvid_vram_location_ackstruct video_output_situationstruct synthvid_situation_updatestruct synthvid_situation_update_ackstruct synthvid_pointer_positionstruct synthvid_pointer_shapestruct synthvid_feature_changestruct rectstruct synthvid_dirtstruct synthvid_supported_resolution_reqstruct synthvid_supported_resolution_respstruct synthvid_msgenum pipe_msg_typeenum synthvid_msg_typefunction hyperv_version_gefunction hyperv_sendpacketfunction hyperv_negotiate_versionfunction hyperv_update_vram_locationfunction hyperv_update_situationfunction hyperv_hide_hw_ptrfunction hyperv_update_dirtfunction hyperv_get_supported_resolutionfunction hyperv_receive_subfunction hyperv_receivefunction hyperv_connect_vsp
Annotated Snippet
struct pipe_msg_hdr {
u32 type;
u32 size; /* size of message after this field */
} __packed;
struct hvd_screen_info {
u16 width;
u16 height;
} __packed;
struct synthvid_msg_hdr {
u32 type;
u32 size; /* size of this header + payload after this field */
} __packed;
struct synthvid_version_req {
u32 version;
} __packed;
struct synthvid_version_resp {
u32 version;
u8 is_accepted;
u8 max_video_outputs;
} __packed;
struct synthvid_vram_location {
u64 user_ctx;
u8 is_vram_gpa_specified;
u64 vram_gpa;
} __packed;
struct synthvid_vram_location_ack {
u64 user_ctx;
} __packed;
struct video_output_situation {
u8 active;
u32 vram_offset;
u8 depth_bits;
u32 width_pixels;
u32 height_pixels;
u32 pitch_bytes;
} __packed;
struct synthvid_situation_update {
u64 user_ctx;
u8 video_output_count;
struct video_output_situation video_output[1];
} __packed;
struct synthvid_situation_update_ack {
u64 user_ctx;
} __packed;
struct synthvid_pointer_position {
u8 is_visible;
u8 video_output;
s32 image_x;
s32 image_y;
} __packed;
#define SYNTHVID_CURSOR_MAX_X 96
#define SYNTHVID_CURSOR_MAX_Y 96
#define SYNTHVID_CURSOR_ARGB_PIXEL_SIZE 4
#define SYNTHVID_CURSOR_MAX_SIZE (SYNTHVID_CURSOR_MAX_X * \
SYNTHVID_CURSOR_MAX_Y * SYNTHVID_CURSOR_ARGB_PIXEL_SIZE)
#define SYNTHVID_CURSOR_COMPLETE (-1)
struct synthvid_pointer_shape {
u8 part_idx;
u8 is_argb;
u32 width; /* SYNTHVID_CURSOR_MAX_X at most */
u32 height; /* SYNTHVID_CURSOR_MAX_Y at most */
u32 hot_x; /* hotspot relative to upper-left of pointer image */
u32 hot_y;
u8 data[4];
} __packed;
struct synthvid_feature_change {
u8 is_dirt_needed;
u8 is_ptr_pos_needed;
u8 is_ptr_shape_needed;
u8 is_situ_needed;
} __packed;
struct rect {
s32 x1, y1; /* top left corner */
s32 x2, y2; /* bottom right corner, exclusive */
} __packed;
Annotation
- Immediate include surface: `linux/hyperv.h`, `drm/drm_print.h`, `drm/drm_simple_kms_helper.h`, `hyperv_drm.h`.
- Detected declarations: `struct pipe_msg_hdr`, `struct hvd_screen_info`, `struct synthvid_msg_hdr`, `struct synthvid_version_req`, `struct synthvid_version_resp`, `struct synthvid_vram_location`, `struct synthvid_vram_location_ack`, `struct video_output_situation`, `struct synthvid_situation_update`, `struct synthvid_situation_update_ack`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.