aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-07-21 23:29:01 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-08-17 16:50:21 -0400
commit2f7d10b393c83acd3eedc3d6ab94dce29ac6a890 (patch)
treedc13e4604dc31f280f0593123e29450460969fa5 /drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
parentfa9f1d4e86f67a4df03e153d9b9cd1bd1838767c (diff)
drm/amdgpu: merge amdgpu_family.h into amd_shared.h (v2)
Make the definitions common for all driver components v2: fix kfd Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
index ceb444f6d418..02add0a508cb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
@@ -48,7 +48,7 @@ static bool igp_read_bios_from_vram(struct amdgpu_device *adev)
48 resource_size_t vram_base; 48 resource_size_t vram_base;
49 resource_size_t size = 256 * 1024; /* ??? */ 49 resource_size_t size = 256 * 1024; /* ??? */
50 50
51 if (!(adev->flags & AMDGPU_IS_APU)) 51 if (!(adev->flags & AMD_IS_APU))
52 if (!amdgpu_card_posted(adev)) 52 if (!amdgpu_card_posted(adev))
53 return false; 53 return false;
54 54
@@ -184,7 +184,7 @@ static bool amdgpu_atrm_get_bios(struct amdgpu_device *adev)
184 bool found = false; 184 bool found = false;
185 185
186 /* ATRM is for the discrete card only */ 186 /* ATRM is for the discrete card only */
187 if (adev->flags & AMDGPU_IS_APU) 187 if (adev->flags & AMD_IS_APU)
188 return false; 188 return false;
189 189
190 while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) { 190 while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) {
@@ -246,7 +246,7 @@ static inline bool amdgpu_atrm_get_bios(struct amdgpu_device *adev)
246 246
247static bool amdgpu_read_disabled_bios(struct amdgpu_device *adev) 247static bool amdgpu_read_disabled_bios(struct amdgpu_device *adev)
248{ 248{
249 if (adev->flags & AMDGPU_IS_APU) 249 if (adev->flags & AMD_IS_APU)
250 return igp_read_bios_from_vram(adev); 250 return igp_read_bios_from_vram(adev);
251 else 251 else
252 return amdgpu_asic_read_disabled_bios(adev); 252 return amdgpu_asic_read_disabled_bios(adev);