/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 42 struct cgs_device base; 48 ((struct amdgpu_cgs_device *)cgs_device)->adev 51 static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned offset) in amdgpu_cgs_read_register() argument 57 static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned offset, in amdgpu_cgs_write_register() argument 64 static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device, in amdgpu_cgs_read_ind_register() argument 92 static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device, in amdgpu_cgs_write_ind_register() argument 119 static uint32_t fw_type_convert(struct cgs_device *cgs_device, uint32_t fw_type) in fw_type_convert() argument 166 static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device, in amdgpu_get_firmware_version() argument 209 static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, in amdgpu_cgs_get_firmware_info() argument 222 id = fw_type_convert(cgs_device, type); in amdgpu_cgs_get_firmware_info() [all …]
|
H A D | amdgpu_acp.c | 107 adev->acp.cgs_device = in acp_sw_init() 109 if (!adev->acp.cgs_device) in acp_sw_init() 119 if (adev->acp.cgs_device) in acp_sw_fini() 120 amdgpu_cgs_destroy_device(adev->acp.cgs_device); in acp_sw_fini() 211 r = amd_acp_hw_init(adev->acp.cgs_device, in acp_hw_init() 379 val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); in acp_hw_init() 382 cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val); in acp_hw_init() 386 val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); in acp_hw_init() 398 val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL); in acp_hw_init() 400 cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val); in acp_hw_init() [all …]
|
H A D | amdgpu_acp.h | 35 struct cgs_device *cgs_device; member
|
H A D | amdgpu.h | 659 struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev); 660 void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device);
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/include/ |
H A D | cgs_common.h | 31 struct cgs_device; 93 typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset); 101 typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset, 111 typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space, 120 typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space, 139 typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device, 155 struct cgs_device struct 164 (((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__)) argument 166 (((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/acp/ |
H A D | amdgpu_acp_hw.c | 42 int amd_acp_hw_init(struct cgs_device *cgs_device, in amd_acp_hw_init() argument 48 acp_mode = cgs_read_register(cgs_device, in amd_acp_hw_init()
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/acp/include/ |
H A D | acp_gfx_if.h | 32 int amd_acp_hw_init(struct cgs_device *cgs_device,
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/ |
H A D | dm_services.h | 87 cgs_write_register(ctx->cgs_device, address, value); in dm_write_reg_func() 96 return cgs_read_ind_register(ctx->cgs_device, addr_space, index); in dm_read_index_reg() 105 cgs_write_ind_register(ctx->cgs_device, addr_space, index, value); in dm_write_index_reg()
|
H A D | dc.h | 555 struct cgs_device *cgs_device; member
|
H A D | dc_types.h | 104 void *cgs_device; member
|
H A D | amdgpu_dc_helper.c | 325 value = cgs_read_register(ctx->cgs_device, address); in dm_read_reg_func()
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm.h | 185 struct cgs_device *cgs_device; member
|
H A D | amdgpu_dm.c | 913 adev->dm.cgs_device = amdgpu_cgs_create_device(adev); in amdgpu_dm_init() 915 if (!adev->dm.cgs_device) { in amdgpu_dm_init() 920 init_data.cgs_device = adev->dm.cgs_device; in amdgpu_dm_init() 1057 if (adev->dm.cgs_device) { in amdgpu_dm_fini() 1058 amdgpu_cgs_destroy_device(adev->dm.cgs_device); in amdgpu_dm_fini() 1059 adev->dm.cgs_device = NULL; in amdgpu_dm_fini()
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/ |
H A D | amdgpu_dc.c | 599 dc_ctx->cgs_device = init_params->cgs_device; in dc_construct_ctx()
|