History

drm/amd/amdgpu: export vbios information (v2)

Allows userspace components to fetch information from the vbios image. v2: agd: fix warning

Evan Quan committed 9 years ago

Commit 40ee5881 parent a9f5db92 files · +37 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+11−0
@@ -522,6 +522,12 @@ struct drm_amdgpu_cs_chunk_data { · 521 unmodified lines
522522 #define AMDGPU_INFO_MEMORY 0x19
523523 /* Query vce clock table */
524524 #define AMDGPU_INFO_VCE_CLOCK_TABLE 0x1A
525+/* Query vbios related information */
526+#define AMDGPU_INFO_VBIOS 0x1B
527+ /* Subquery id: Query vbios size */
528+ #define AMDGPU_INFO_VBIOS_SIZE 0x1
529+ /* Subquery id: Query vbios image */
530+ #define AMDGPU_INFO_VBIOS_IMAGE 0x2
525531
526532 #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0
527533 #define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff
@@ -580,6 +586,11 @@ struct drm_amdgpu_info { · 52 unmodified lines
580586 } read_mmr_reg;
581587
582588 struct drm_amdgpu_query_fw query_fw;
589+
590+ struct {
591+ __u32 type;
592+ __u32 offset;
593+ } vbios_info;
583594 };
584595 };
585596

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t