diff options
author | 2020-02-20 19:49:15 +0000 | |
---|---|---|
committer | 2020-02-20 19:49:15 +0000 | |
commit | 2c4a196e661f9bb242c1b5fa748d3cb98a404c8c (patch) | |
tree | 9f32e8fbace7a18e2880b04e5bd66fbc8fc8b508 /sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h | |
parent | We do not generate DNS records from text representations. (diff) | |
download | wireguard-openbsd-2c4a196e661f9bb242c1b5fa748d3cb98a404c8c.tar.xz wireguard-openbsd-2c4a196e661f9bb242c1b5fa748d3cb98a404c8c.zip |
drm/amd: Add ucode DMCU support
From David Francis
01fcfc83fe07ae42af707c3217f533fb350d4c19 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h index bdc472b6e64..e6548a2ae6f 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h @@ -157,6 +157,13 @@ struct gpu_info_firmware_header_v1_0 { uint16_t version_minor; /* version */ }; +/* version_major=1, version_minor=0 */ +struct dmcu_firmware_header_v1_0 { + struct common_firmware_header header; + uint32_t intv_offset_bytes; /* interrupt vectors offset from end of header, in bytes */ + uint32_t intv_size_bytes; /* size of interrupt vectors, in bytes */ +}; + /* header is fixed size */ union amdgpu_firmware_header { struct common_firmware_header common; @@ -170,6 +177,7 @@ union amdgpu_firmware_header { struct sdma_firmware_header_v1_0 sdma; struct sdma_firmware_header_v1_1 sdma_v1_1; struct gpu_info_firmware_header_v1_0 gpu_info; + struct dmcu_firmware_header_v1_0 dmcu; uint8_t raw[0x100]; }; @@ -195,6 +203,8 @@ enum AMDGPU_UCODE_ID { AMDGPU_UCODE_ID_UVD, AMDGPU_UCODE_ID_VCE, AMDGPU_UCODE_ID_VCN, + AMDGPU_UCODE_ID_DMCU_ERAM, + AMDGPU_UCODE_ID_DMCU_INTV, AMDGPU_UCODE_ID_MAXIMUM, }; |