aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-02-18 11:59:19 -0500
committerDave Airlie <airlied@redhat.com>2011-02-22 19:35:20 -0500
commit3574dda4851d2058841ae9e6b583e54cf52c71fa (patch)
treef94c760cda00223ace0ae45a2c8225b6eecbc79c /drivers/gpu/drm/radeon/radeon.h
parent31c3603d83a774df4acdfe3a89ce64719d0db0d8 (diff)
radeon: consolidate asic-specific function decls for r600 & later
Now all the asic specific stuff ist mostly hid in radeon_asic.* Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> 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.h61
1 files changed, 3 insertions, 58 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 975f4a10cfaf..9070f556fc9d 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -1459,59 +1459,12 @@ extern void radeon_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc
1459extern int radeon_resume_kms(struct drm_device *dev); 1459extern int radeon_resume_kms(struct drm_device *dev);
1460extern int radeon_suspend_kms(struct drm_device *dev, pm_message_t state); 1460extern int radeon_suspend_kms(struct drm_device *dev, pm_message_t state);
1461 1461
1462/* r600, rv610, rv630, rv620, rv635, rv670, rs780, rs880 */ 1462/*
1463extern bool r600_card_posted(struct radeon_device *rdev); 1463 * r600 functions used by radeon_encoder.c
1464extern void r600_cp_stop(struct radeon_device *rdev); 1464 */
1465extern int r600_cp_start(struct radeon_device *rdev);
1466extern void r600_ring_init(struct radeon_device *rdev, unsigned ring_size);
1467extern int r600_cp_resume(struct radeon_device *rdev);
1468extern void r600_cp_fini(struct radeon_device *rdev);
1469extern int r600_count_pipe_bits(uint32_t val);
1470extern int r600_mc_wait_for_idle(struct radeon_device *rdev);
1471extern int r600_pcie_gart_init(struct radeon_device *rdev);
1472extern void r600_pcie_gart_tlb_flush(struct radeon_device *rdev);
1473extern int r600_ib_test(struct radeon_device *rdev);
1474extern int r600_ring_test(struct radeon_device *rdev);
1475extern void r600_scratch_init(struct radeon_device *rdev);
1476extern int r600_blit_init(struct radeon_device *rdev);
1477extern void r600_blit_fini(struct radeon_device *rdev);
1478extern int r600_init_microcode(struct radeon_device *rdev);
1479extern int r600_asic_reset(struct radeon_device *rdev);
1480/* r600 irq */
1481extern int r600_irq_init(struct radeon_device *rdev);
1482extern void r600_irq_fini(struct radeon_device *rdev);
1483extern void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size);
1484extern int r600_irq_set(struct radeon_device *rdev);
1485extern void r600_irq_suspend(struct radeon_device *rdev);
1486extern void r600_disable_interrupts(struct radeon_device *rdev);
1487extern void r600_rlc_stop(struct radeon_device *rdev);
1488/* r600 audio */
1489extern int r600_audio_init(struct radeon_device *rdev);
1490extern int r600_audio_tmds_index(struct drm_encoder *encoder);
1491extern void r600_audio_set_clock(struct drm_encoder *encoder, int clock);
1492extern int r600_audio_channels(struct radeon_device *rdev);
1493extern int r600_audio_bits_per_sample(struct radeon_device *rdev);
1494extern int r600_audio_rate(struct radeon_device *rdev);
1495extern uint8_t r600_audio_status_bits(struct radeon_device *rdev);
1496extern uint8_t r600_audio_category_code(struct radeon_device *rdev);
1497extern void r600_audio_schedule_polling(struct radeon_device *rdev);
1498extern void r600_audio_enable_polling(struct drm_encoder *encoder);
1499extern void r600_audio_disable_polling(struct drm_encoder *encoder);
1500extern void r600_audio_fini(struct radeon_device *rdev);
1501extern void r600_hdmi_init(struct drm_encoder *encoder);
1502extern void r600_hdmi_enable(struct drm_encoder *encoder); 1465extern void r600_hdmi_enable(struct drm_encoder *encoder);
1503extern void r600_hdmi_disable(struct drm_encoder *encoder); 1466extern void r600_hdmi_disable(struct drm_encoder *encoder);
1504extern void r600_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode); 1467extern void r600_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode);
1505extern int r600_hdmi_buffer_status_changed(struct drm_encoder *encoder);
1506extern void r600_hdmi_update_audio_settings(struct drm_encoder *encoder);
1507
1508extern void r700_vram_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc);
1509extern void r700_cp_stop(struct radeon_device *rdev);
1510extern void r700_cp_fini(struct radeon_device *rdev);
1511extern void evergreen_disable_interrupt_state(struct radeon_device *rdev);
1512extern int evergreen_irq_set(struct radeon_device *rdev);
1513extern int evergreen_blit_init(struct radeon_device *rdev);
1514extern void evergreen_blit_fini(struct radeon_device *rdev);
1515 1468
1516extern int ni_init_microcode(struct radeon_device *rdev); 1469extern int ni_init_microcode(struct radeon_device *rdev);
1517extern int btc_mc_load_microcode(struct radeon_device *rdev); 1470extern int btc_mc_load_microcode(struct radeon_device *rdev);
@@ -1523,14 +1476,6 @@ extern int radeon_acpi_init(struct radeon_device *rdev);
1523static inline int radeon_acpi_init(struct radeon_device *rdev) { return 0; } 1476static inline int radeon_acpi_init(struct radeon_device *rdev) { return 0; }
1524#endif 1477#endif
1525 1478
1526/* evergreen */
1527struct evergreen_mc_save {
1528 u32 vga_control[6];
1529 u32 vga_render_control;
1530 u32 vga_hdp_control;
1531 u32 crtc_control[6];
1532};
1533
1534#include "radeon_object.h" 1479#include "radeon_object.h"
1535 1480
1536#endif 1481#endif