aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-12-04 15:26:55 -0500
committerDave Airlie <airlied@redhat.com>2009-12-07 19:48:12 -0500
commit429770b3e39999c4d025fbcb9959502adc3989d8 (patch)
treeccd0c474190283019d341ab9da1468e12b750ec0 /drivers/gpu/drm/radeon/radeon.h
parente0df1ac5c2cf346f4cc335025734978a4d747aa0 (diff)
drm/radeon/kms: add asic callbacks for hpd
Signed-off-by: Alex Deucher <alexdeucher@gmail.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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index eafe5fad38b3..29c6e0af3755 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -649,6 +649,10 @@ struct radeon_asic {
649 int (*clear_surface_reg)(struct radeon_device *rdev, int reg); 649 int (*clear_surface_reg)(struct radeon_device *rdev, int reg);
650 void (*bandwidth_update)(struct radeon_device *rdev); 650 void (*bandwidth_update)(struct radeon_device *rdev);
651 void (*hdp_flush)(struct radeon_device *rdev); 651 void (*hdp_flush)(struct radeon_device *rdev);
652 void (*hpd_init)(struct radeon_device *rdev);
653 void (*hpd_fini)(struct radeon_device *rdev);
654 bool (*hpd_sense)(struct radeon_device *rdev, enum radeon_hpd_id hpd);
655 void (*hpd_set_polarity)(struct radeon_device *rdev, enum radeon_hpd_id hpd);
652}; 656};
653 657
654/* 658/*
@@ -988,6 +992,10 @@ static inline void radeon_ring_write(struct radeon_device *rdev, uint32_t v)
988#define radeon_clear_surface_reg(rdev, r) ((rdev)->asic->clear_surface_reg((rdev), (r))) 992#define radeon_clear_surface_reg(rdev, r) ((rdev)->asic->clear_surface_reg((rdev), (r)))
989#define radeon_bandwidth_update(rdev) (rdev)->asic->bandwidth_update((rdev)) 993#define radeon_bandwidth_update(rdev) (rdev)->asic->bandwidth_update((rdev))
990#define radeon_hdp_flush(rdev) (rdev)->asic->hdp_flush((rdev)) 994#define radeon_hdp_flush(rdev) (rdev)->asic->hdp_flush((rdev))
995#define radeon_hpd_init(rdev) (rdev)->asic->hpd_init((rdev))
996#define radeon_hpd_fini(rdev) (rdev)->asic->hpd_fini((rdev))
997#define radeon_hpd_sense(rdev, hpd) (rdev)->asic->hpd_sense((rdev), (hpd))
998#define radeon_hpd_set_polarity(rdev, hpd) (rdev)->asic->hpd_set_polarity((rdev), (hpd))
991 999
992/* Common functions */ 1000/* Common functions */
993extern int radeon_gart_table_vram_pin(struct radeon_device *rdev); 1001extern int radeon_gart_table_vram_pin(struct radeon_device *rdev);