diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-07-21 23:29:01 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:21 -0400 |
commit | 2f7d10b393c83acd3eedc3d6ab94dce29ac6a890 (patch) | |
tree | dc13e4604dc31f280f0593123e29450460969fa5 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | fa9f1d4e86f67a4df03e153d9b9cd1bd1838767c (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_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index a816580fb474..f7a67a142edc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -63,7 +63,7 @@ bool amdgpu_device_is_px(struct drm_device *dev) | |||
63 | { | 63 | { |
64 | struct amdgpu_device *adev = dev->dev_private; | 64 | struct amdgpu_device *adev = dev->dev_private; |
65 | 65 | ||
66 | if (adev->flags & AMDGPU_IS_PX) | 66 | if (adev->flags & AMD_IS_PX) |
67 | return true; | 67 | return true; |
68 | return false; | 68 | return false; |
69 | } | 69 | } |
@@ -1377,7 +1377,7 @@ int amdgpu_device_init(struct amdgpu_device *adev, | |||
1377 | adev->ddev = ddev; | 1377 | adev->ddev = ddev; |
1378 | adev->pdev = pdev; | 1378 | adev->pdev = pdev; |
1379 | adev->flags = flags; | 1379 | adev->flags = flags; |
1380 | adev->asic_type = flags & AMDGPU_ASIC_MASK; | 1380 | adev->asic_type = flags & AMD_ASIC_MASK; |
1381 | adev->is_atom_bios = false; | 1381 | adev->is_atom_bios = false; |
1382 | adev->usec_timeout = AMDGPU_MAX_USEC_TIMEOUT; | 1382 | adev->usec_timeout = AMDGPU_MAX_USEC_TIMEOUT; |
1383 | adev->mc.gtt_size = 512 * 1024 * 1024; | 1383 | adev->mc.gtt_size = 512 * 1024 * 1024; |