aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-02-23 17:53:39 -0500
committerDave Airlie <airlied@redhat.com>2012-02-27 09:49:04 -0500
commit901ea57dc4a2792900497172fa41358f9b2f67c3 (patch)
tree7a8b700cc579bc98a18d179f3534c5fc1727dc4c /drivers/gpu/drm/radeon/radeon.h
parent89e5181f3f79fbe46dbf811f9bc470f524704450 (diff)
drm/radeon/kms: reorganize hpd callbacks
tidy up the radeon_asic struct. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 37e104b06325..f1a369d07e87 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -1182,10 +1182,14 @@ struct radeon_asic {
1182 uint32_t offset, uint32_t obj_size); 1182 uint32_t offset, uint32_t obj_size);
1183 void (*clear_surface_reg)(struct radeon_device *rdev, int reg); 1183 void (*clear_surface_reg)(struct radeon_device *rdev, int reg);
1184 void (*bandwidth_update)(struct radeon_device *rdev); 1184 void (*bandwidth_update)(struct radeon_device *rdev);
1185 void (*hpd_init)(struct radeon_device *rdev); 1185
1186 void (*hpd_fini)(struct radeon_device *rdev); 1186 struct {
1187 bool (*hpd_sense)(struct radeon_device *rdev, enum radeon_hpd_id hpd); 1187 void (*init)(struct radeon_device *rdev);
1188 void (*hpd_set_polarity)(struct radeon_device *rdev, enum radeon_hpd_id hpd); 1188 void (*fini)(struct radeon_device *rdev);
1189 bool (*sense)(struct radeon_device *rdev, enum radeon_hpd_id hpd);
1190 void (*set_polarity)(struct radeon_device *rdev, enum radeon_hpd_id hpd);
1191 } hpd;
1192
1189 /* ioctl hw specific callback. Some hw might want to perform special 1193 /* ioctl hw specific callback. Some hw might want to perform special
1190 * operation on specific ioctl. For instance on wait idle some hw 1194 * operation on specific ioctl. For instance on wait idle some hw
1191 * might want to perform and HDP flush through MMIO as it seems that 1195 * might want to perform and HDP flush through MMIO as it seems that
@@ -1683,10 +1687,10 @@ void radeon_ring_write(struct radeon_ring *ring, uint32_t v);
1683#define radeon_set_surface_reg(rdev, r, f, p, o, s) ((rdev)->asic->set_surface_reg((rdev), (r), (f), (p), (o), (s))) 1687#define radeon_set_surface_reg(rdev, r, f, p, o, s) ((rdev)->asic->set_surface_reg((rdev), (r), (f), (p), (o), (s)))
1684#define radeon_clear_surface_reg(rdev, r) ((rdev)->asic->clear_surface_reg((rdev), (r))) 1688#define radeon_clear_surface_reg(rdev, r) ((rdev)->asic->clear_surface_reg((rdev), (r)))
1685#define radeon_bandwidth_update(rdev) (rdev)->asic->bandwidth_update((rdev)) 1689#define radeon_bandwidth_update(rdev) (rdev)->asic->bandwidth_update((rdev))
1686#define radeon_hpd_init(rdev) (rdev)->asic->hpd_init((rdev)) 1690#define radeon_hpd_init(rdev) (rdev)->asic->hpd.init((rdev))
1687#define radeon_hpd_fini(rdev) (rdev)->asic->hpd_fini((rdev)) 1691#define radeon_hpd_fini(rdev) (rdev)->asic->hpd.fini((rdev))
1688#define radeon_hpd_sense(rdev, hpd) (rdev)->asic->hpd_sense((rdev), (hpd)) 1692#define radeon_hpd_sense(rdev, h) (rdev)->asic->hpd.sense((rdev), (h))
1689#define radeon_hpd_set_polarity(rdev, hpd) (rdev)->asic->hpd_set_polarity((rdev), (hpd)) 1693#define radeon_hpd_set_polarity(rdev, h) (rdev)->asic->hpd.set_polarity((rdev), (h))
1690#define radeon_gui_idle(rdev) (rdev)->asic->gui_idle((rdev)) 1694#define radeon_gui_idle(rdev) (rdev)->asic->gui_idle((rdev))
1691#define radeon_pm_misc(rdev) (rdev)->asic->pm_misc((rdev)) 1695#define radeon_pm_misc(rdev) (rdev)->asic->pm_misc((rdev))
1692#define radeon_pm_prepare(rdev) (rdev)->asic->pm_prepare((rdev)) 1696#define radeon_pm_prepare(rdev) (rdev)->asic->pm_prepare((rdev))