mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
drm/amdgpu: Add vbios info ioctl interface
Add AMDGPU_INFO_VBIOS_INFO subquery id for detailed vbios info. Provides a way for the user application to get the VBIOS information without having to parse the binary. It is useful for the user to be able to display in a simple way the VBIOS version in their system if they happen to encounter an issue. V2: Use numeric serial. Parse and expose vbios version string. V3: Remove redundant data in drm_amdgpu_info_vbios struct. V4: 64 bit alignment in drm_amdgpu_info_vbios. v5: squash together all the reverts, etc. (Alex) Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -112,6 +112,10 @@ struct drm_device;
|
||||
#define ATOM_IO_SYSIO 2
|
||||
#define ATOM_IO_IIO 0x80
|
||||
|
||||
#define STRLEN_NORMAL 32
|
||||
#define STRLEN_LONG 64
|
||||
#define STRLEN_VERYLONG 254
|
||||
|
||||
struct card_info {
|
||||
struct drm_device *dev;
|
||||
void (* reg_write)(struct card_info *, uint32_t, uint32_t); /* filled by driver */
|
||||
@@ -140,6 +144,12 @@ struct atom_context {
|
||||
uint32_t *scratch;
|
||||
int scratch_size_bytes;
|
||||
char vbios_version[20];
|
||||
|
||||
uint8_t name[STRLEN_LONG];
|
||||
uint8_t vbios_pn[STRLEN_LONG];
|
||||
uint32_t version;
|
||||
uint8_t vbios_ver_str[STRLEN_NORMAL];
|
||||
uint8_t date[STRLEN_NORMAL];
|
||||
};
|
||||
|
||||
extern int amdgpu_atom_debug;
|
||||
|
||||
Reference in New Issue
Block a user