Skip to content

Commit

Permalink
drm/amdgpu: add new TOC structure
Browse files Browse the repository at this point in the history
Add new RLC_TABLE_OF_CONTENT structure definition.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Likun Gao authored and Alex Deucher committed May 2, 2024
1 parent d8fd91f commit e3a911b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,33 @@ typedef struct _RLC_TABLE_OF_CONTENT {
};
} RLC_TABLE_OF_CONTENT;

typedef struct _RLC_TABLE_OF_CONTENT_V2 {
union {
unsigned int DW0;
struct {
uint32_t offset : 25;
uint32_t id : 7;
};
};

union {
unsigned int DW1;
struct {
uint32_t reserved0 : 1;
uint32_t reserved1 : 1;
uint32_t reserved2 : 1;
uint32_t memory_destination : 2;
uint32_t vfflr_image_code : 4;
uint32_t reserved9 : 1;
uint32_t reserved10 : 1;
uint32_t reserved11 : 1;
uint32_t size_x16 : 1;
uint32_t reserved13 : 1;
uint32_t size : 18;
};
};
} RLC_TABLE_OF_CONTENT_V2;

#define RLC_TOC_MAX_SIZE 64

struct amdgpu_rlc_funcs {
Expand Down

0 comments on commit e3a911b

Please sign in to comment.