Allows userspace components to fetch information from the vbios image. v2: agd: fix warning
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -522,6 +522,12 @@ struct drm_amdgpu_cs_chunk_data { · 521 unmodified lines | |||
| 522 | #define AMDGPU_INFO_MEMORY 0x19 | 522 | #define AMDGPU_INFO_MEMORY 0x19 |
| 523 | /* Query vce clock table */ | 523 | /* Query vce clock table */ |
| 524 | #define AMDGPU_INFO_VCE_CLOCK_TABLE 0x1A | 524 | #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 | ||
| 525 | 531 | ||
| 526 | #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0 | 532 | #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0 |
| 527 | #define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff | 533 | #define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff |
| @@ -580,6 +586,11 @@ struct drm_amdgpu_info { · 52 unmodified lines | |||
| 580 | } read_mmr_reg; | 586 | } read_mmr_reg; |
| 581 | 587 | ||
| 582 | struct drm_amdgpu_query_fw query_fw; | 588 | struct drm_amdgpu_query_fw query_fw; |
| 589 | |||
| 590 | struct { | ||
| 591 | __u32 type; | ||
| 592 | __u32 offset; | ||
| 593 | } vbios_info; | ||
| 583 | }; | 594 | }; |
| 584 | }; | 595 | }; |
| 585 | 596 | ||