Rev 3764 | Rev 5139 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3764 | Rev 5078 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | void atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); |
45 | void atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); |
46 | u8 atombios_get_backlight_level(struct radeon_encoder *radeon_encoder); |
46 | u8 atombios_get_backlight_level(struct radeon_encoder *radeon_encoder); |
47 | void radeon_legacy_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); |
47 | void radeon_legacy_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); |
48 | u8 radeon_legacy_get_backlight_level(struct radeon_encoder *radeon_encoder); |
48 | u8 radeon_legacy_get_backlight_level(struct radeon_encoder *radeon_encoder); |
Line 49... | Line -... | ||
49 | - | ||
50 | 49 | ||
51 | /* |
50 | /* |
52 | * r100,rv100,rs100,rv200,rs200 |
51 | * r100,rv100,rs100,rv200,rs200 |
53 | */ |
52 | */ |
54 | struct r100_mc_save { |
53 | struct r100_mc_save { |
Line 66... | Line 65... | ||
66 | void r100_vga_set_state(struct radeon_device *rdev, bool state); |
65 | void r100_vga_set_state(struct radeon_device *rdev, bool state); |
67 | bool r100_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *cp); |
66 | bool r100_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *cp); |
68 | int r100_asic_reset(struct radeon_device *rdev); |
67 | int r100_asic_reset(struct radeon_device *rdev); |
69 | u32 r100_get_vblank_counter(struct radeon_device *rdev, int crtc); |
68 | u32 r100_get_vblank_counter(struct radeon_device *rdev, int crtc); |
70 | void r100_pci_gart_tlb_flush(struct radeon_device *rdev); |
69 | void r100_pci_gart_tlb_flush(struct radeon_device *rdev); |
71 | int r100_pci_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr); |
70 | void r100_pci_gart_set_page(struct radeon_device *rdev, unsigned i, |
- | 71 | uint64_t addr, uint32_t flags); |
|
72 | void r100_ring_start(struct radeon_device *rdev, struct radeon_ring *ring); |
72 | void r100_ring_start(struct radeon_device *rdev, struct radeon_ring *ring); |
73 | int r100_irq_set(struct radeon_device *rdev); |
73 | int r100_irq_set(struct radeon_device *rdev); |
74 | int r100_irq_process(struct radeon_device *rdev); |
74 | int r100_irq_process(struct radeon_device *rdev); |
75 | void r100_fence_ring_emit(struct radeon_device *rdev, |
75 | void r100_fence_ring_emit(struct radeon_device *rdev, |
76 | struct radeon_fence *fence); |
76 | struct radeon_fence *fence); |
77 | void r100_semaphore_ring_emit(struct radeon_device *rdev, |
77 | bool r100_semaphore_ring_emit(struct radeon_device *rdev, |
78 | struct radeon_ring *cp, |
78 | struct radeon_ring *cp, |
79 | struct radeon_semaphore *semaphore, |
79 | struct radeon_semaphore *semaphore, |
80 | bool emit_wait); |
80 | bool emit_wait); |
81 | int r100_cs_parse(struct radeon_cs_parser *p); |
81 | int r100_cs_parse(struct radeon_cs_parser *p); |
82 | void r100_pll_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
82 | void r100_pll_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
Line 134... | Line 134... | ||
134 | extern void r100_pm_misc(struct radeon_device *rdev); |
134 | extern void r100_pm_misc(struct radeon_device *rdev); |
135 | extern void r100_pm_prepare(struct radeon_device *rdev); |
135 | extern void r100_pm_prepare(struct radeon_device *rdev); |
136 | extern void r100_pm_finish(struct radeon_device *rdev); |
136 | extern void r100_pm_finish(struct radeon_device *rdev); |
137 | extern void r100_pm_init_profile(struct radeon_device *rdev); |
137 | extern void r100_pm_init_profile(struct radeon_device *rdev); |
138 | extern void r100_pm_get_dynpm_state(struct radeon_device *rdev); |
138 | extern void r100_pm_get_dynpm_state(struct radeon_device *rdev); |
139 | extern void r100_pre_page_flip(struct radeon_device *rdev, int crtc); |
139 | extern void r100_page_flip(struct radeon_device *rdev, int crtc, |
140 | extern u32 r100_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); |
140 | u64 crtc_base); |
141 | extern void r100_post_page_flip(struct radeon_device *rdev, int crtc); |
141 | extern bool r100_page_flip_pending(struct radeon_device *rdev, int crtc); |
142 | extern void r100_wait_for_vblank(struct radeon_device *rdev, int crtc); |
142 | extern void r100_wait_for_vblank(struct radeon_device *rdev, int crtc); |
143 | extern int r100_mc_wait_for_idle(struct radeon_device *rdev); |
143 | extern int r100_mc_wait_for_idle(struct radeon_device *rdev); |
Line -... | Line 144... | ||
- | 144 | ||
- | 145 | u32 r100_gfx_get_rptr(struct radeon_device *rdev, |
|
- | 146 | struct radeon_ring *ring); |
|
- | 147 | u32 r100_gfx_get_wptr(struct radeon_device *rdev, |
|
- | 148 | struct radeon_ring *ring); |
|
- | 149 | void r100_gfx_set_wptr(struct radeon_device *rdev, |
|
- | 150 | struct radeon_ring *ring); |
|
- | 151 | void r100_ring_hdp_flush(struct radeon_device *rdev, |
|
144 | 152 | struct radeon_ring *ring); |
|
145 | /* |
153 | /* |
146 | * r200,rv250,rs300,rv280 |
154 | * r200,rv250,rs300,rv280 |
147 | */ |
155 | */ |
148 | extern int r200_copy_dma(struct radeon_device *rdev, |
156 | extern int r200_copy_dma(struct radeon_device *rdev, |
Line 163... | Line 171... | ||
163 | extern void r300_ring_start(struct radeon_device *rdev, struct radeon_ring *ring); |
171 | extern void r300_ring_start(struct radeon_device *rdev, struct radeon_ring *ring); |
164 | extern void r300_fence_ring_emit(struct radeon_device *rdev, |
172 | extern void r300_fence_ring_emit(struct radeon_device *rdev, |
165 | struct radeon_fence *fence); |
173 | struct radeon_fence *fence); |
166 | extern int r300_cs_parse(struct radeon_cs_parser *p); |
174 | extern int r300_cs_parse(struct radeon_cs_parser *p); |
167 | extern void rv370_pcie_gart_tlb_flush(struct radeon_device *rdev); |
175 | extern void rv370_pcie_gart_tlb_flush(struct radeon_device *rdev); |
168 | extern int rv370_pcie_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr); |
176 | extern void rv370_pcie_gart_set_page(struct radeon_device *rdev, unsigned i, |
- | 177 | uint64_t addr, uint32_t flags); |
|
169 | extern void rv370_set_pcie_lanes(struct radeon_device *rdev, int lanes); |
178 | extern void rv370_set_pcie_lanes(struct radeon_device *rdev, int lanes); |
170 | extern int rv370_get_pcie_lanes(struct radeon_device *rdev); |
179 | extern int rv370_get_pcie_lanes(struct radeon_device *rdev); |
171 | extern void r300_set_reg_safe(struct radeon_device *rdev); |
180 | extern void r300_set_reg_safe(struct radeon_device *rdev); |
172 | extern void r300_mc_program(struct radeon_device *rdev); |
181 | extern void r300_mc_program(struct radeon_device *rdev); |
173 | extern void r300_mc_init(struct radeon_device *rdev); |
182 | extern void r300_mc_init(struct radeon_device *rdev); |
Line 198... | Line 207... | ||
198 | extern int rs400_init(struct radeon_device *rdev); |
207 | extern int rs400_init(struct radeon_device *rdev); |
199 | extern void rs400_fini(struct radeon_device *rdev); |
208 | extern void rs400_fini(struct radeon_device *rdev); |
200 | extern int rs400_suspend(struct radeon_device *rdev); |
209 | extern int rs400_suspend(struct radeon_device *rdev); |
201 | extern int rs400_resume(struct radeon_device *rdev); |
210 | extern int rs400_resume(struct radeon_device *rdev); |
202 | void rs400_gart_tlb_flush(struct radeon_device *rdev); |
211 | void rs400_gart_tlb_flush(struct radeon_device *rdev); |
203 | int rs400_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr); |
212 | void rs400_gart_set_page(struct radeon_device *rdev, unsigned i, |
- | 213 | uint64_t addr, uint32_t flags); |
|
204 | uint32_t rs400_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
214 | uint32_t rs400_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
205 | void rs400_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
215 | void rs400_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
206 | int rs400_gart_init(struct radeon_device *rdev); |
216 | int rs400_gart_init(struct radeon_device *rdev); |
207 | int rs400_gart_enable(struct radeon_device *rdev); |
217 | int rs400_gart_enable(struct radeon_device *rdev); |
208 | void rs400_gart_adjust_size(struct radeon_device *rdev); |
218 | void rs400_gart_adjust_size(struct radeon_device *rdev); |
Line 221... | Line 231... | ||
221 | int rs600_irq_set(struct radeon_device *rdev); |
231 | int rs600_irq_set(struct radeon_device *rdev); |
222 | int rs600_irq_process(struct radeon_device *rdev); |
232 | int rs600_irq_process(struct radeon_device *rdev); |
223 | void rs600_irq_disable(struct radeon_device *rdev); |
233 | void rs600_irq_disable(struct radeon_device *rdev); |
224 | u32 rs600_get_vblank_counter(struct radeon_device *rdev, int crtc); |
234 | u32 rs600_get_vblank_counter(struct radeon_device *rdev, int crtc); |
225 | void rs600_gart_tlb_flush(struct radeon_device *rdev); |
235 | void rs600_gart_tlb_flush(struct radeon_device *rdev); |
226 | int rs600_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr); |
236 | void rs600_gart_set_page(struct radeon_device *rdev, unsigned i, |
- | 237 | uint64_t addr, uint32_t flags); |
|
227 | uint32_t rs600_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
238 | uint32_t rs600_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
228 | void rs600_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
239 | void rs600_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
229 | void rs600_bandwidth_update(struct radeon_device *rdev); |
240 | void rs600_bandwidth_update(struct radeon_device *rdev); |
230 | void rs600_hpd_init(struct radeon_device *rdev); |
241 | void rs600_hpd_init(struct radeon_device *rdev); |
231 | void rs600_hpd_fini(struct radeon_device *rdev); |
242 | void rs600_hpd_fini(struct radeon_device *rdev); |
Line 233... | Line 244... | ||
233 | void rs600_hpd_set_polarity(struct radeon_device *rdev, |
244 | void rs600_hpd_set_polarity(struct radeon_device *rdev, |
234 | enum radeon_hpd_id hpd); |
245 | enum radeon_hpd_id hpd); |
235 | extern void rs600_pm_misc(struct radeon_device *rdev); |
246 | extern void rs600_pm_misc(struct radeon_device *rdev); |
236 | extern void rs600_pm_prepare(struct radeon_device *rdev); |
247 | extern void rs600_pm_prepare(struct radeon_device *rdev); |
237 | extern void rs600_pm_finish(struct radeon_device *rdev); |
248 | extern void rs600_pm_finish(struct radeon_device *rdev); |
238 | extern void rs600_pre_page_flip(struct radeon_device *rdev, int crtc); |
249 | extern void rs600_page_flip(struct radeon_device *rdev, int crtc, |
239 | extern u32 rs600_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); |
250 | u64 crtc_base); |
240 | extern void rs600_post_page_flip(struct radeon_device *rdev, int crtc); |
251 | extern bool rs600_page_flip_pending(struct radeon_device *rdev, int crtc); |
241 | void rs600_set_safe_registers(struct radeon_device *rdev); |
252 | void rs600_set_safe_registers(struct radeon_device *rdev); |
242 | extern void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc); |
253 | extern void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc); |
243 | extern int rs600_mc_wait_for_idle(struct radeon_device *rdev); |
254 | extern int rs600_mc_wait_for_idle(struct radeon_device *rdev); |
Line 244... | Line 255... | ||
244 | 255 | ||
Line 305... | Line 316... | ||
305 | void r600_pciep_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
316 | void r600_pciep_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
306 | int r600_cs_parse(struct radeon_cs_parser *p); |
317 | int r600_cs_parse(struct radeon_cs_parser *p); |
307 | int r600_dma_cs_parse(struct radeon_cs_parser *p); |
318 | int r600_dma_cs_parse(struct radeon_cs_parser *p); |
308 | void r600_fence_ring_emit(struct radeon_device *rdev, |
319 | void r600_fence_ring_emit(struct radeon_device *rdev, |
309 | struct radeon_fence *fence); |
320 | struct radeon_fence *fence); |
310 | void r600_semaphore_ring_emit(struct radeon_device *rdev, |
321 | bool r600_semaphore_ring_emit(struct radeon_device *rdev, |
311 | struct radeon_ring *cp, |
322 | struct radeon_ring *cp, |
312 | struct radeon_semaphore *semaphore, |
323 | struct radeon_semaphore *semaphore, |
313 | bool emit_wait); |
324 | bool emit_wait); |
314 | void r600_dma_fence_ring_emit(struct radeon_device *rdev, |
325 | void r600_dma_fence_ring_emit(struct radeon_device *rdev, |
315 | struct radeon_fence *fence); |
326 | struct radeon_fence *fence); |
316 | void r600_dma_semaphore_ring_emit(struct radeon_device *rdev, |
327 | bool r600_dma_semaphore_ring_emit(struct radeon_device *rdev, |
317 | struct radeon_ring *ring, |
328 | struct radeon_ring *ring, |
318 | struct radeon_semaphore *semaphore, |
329 | struct radeon_semaphore *semaphore, |
319 | bool emit_wait); |
330 | bool emit_wait); |
320 | void r600_dma_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
331 | void r600_dma_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
321 | bool r600_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
332 | bool r600_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
Line 328... | Line 339... | ||
328 | int r600_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
339 | int r600_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
329 | int r600_dma_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
340 | int r600_dma_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
330 | void r600_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
341 | void r600_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
331 | int r600_ring_test(struct radeon_device *rdev, struct radeon_ring *cp); |
342 | int r600_ring_test(struct radeon_device *rdev, struct radeon_ring *cp); |
332 | int r600_dma_ring_test(struct radeon_device *rdev, struct radeon_ring *cp); |
343 | int r600_dma_ring_test(struct radeon_device *rdev, struct radeon_ring *cp); |
333 | int r600_uvd_ring_test(struct radeon_device *rdev, struct radeon_ring *ring); |
- | |
334 | int r600_copy_blit(struct radeon_device *rdev, |
344 | int r600_copy_cpdma(struct radeon_device *rdev, |
335 | uint64_t src_offset, uint64_t dst_offset, |
345 | uint64_t src_offset, uint64_t dst_offset, |
336 | unsigned num_gpu_pages, struct radeon_fence **fence); |
346 | unsigned num_gpu_pages, struct radeon_fence **fence); |
337 | int r600_copy_dma(struct radeon_device *rdev, |
347 | int r600_copy_dma(struct radeon_device *rdev, |
338 | uint64_t src_offset, uint64_t dst_offset, |
348 | uint64_t src_offset, uint64_t dst_offset, |
339 | unsigned num_gpu_pages, struct radeon_fence **fence); |
349 | unsigned num_gpu_pages, struct radeon_fence **fence); |
340 | void r600_hpd_init(struct radeon_device *rdev); |
350 | void r600_hpd_init(struct radeon_device *rdev); |
341 | void r600_hpd_fini(struct radeon_device *rdev); |
351 | void r600_hpd_fini(struct radeon_device *rdev); |
342 | bool r600_hpd_sense(struct radeon_device *rdev, enum radeon_hpd_id hpd); |
352 | bool r600_hpd_sense(struct radeon_device *rdev, enum radeon_hpd_id hpd); |
343 | void r600_hpd_set_polarity(struct radeon_device *rdev, |
353 | void r600_hpd_set_polarity(struct radeon_device *rdev, |
344 | enum radeon_hpd_id hpd); |
354 | enum radeon_hpd_id hpd); |
345 | extern void r600_ioctl_wait_idle(struct radeon_device *rdev, struct radeon_bo *bo); |
355 | extern void r600_mmio_hdp_flush(struct radeon_device *rdev); |
346 | extern bool r600_gui_idle(struct radeon_device *rdev); |
356 | extern bool r600_gui_idle(struct radeon_device *rdev); |
347 | extern void r600_pm_misc(struct radeon_device *rdev); |
357 | extern void r600_pm_misc(struct radeon_device *rdev); |
348 | extern void r600_pm_init_profile(struct radeon_device *rdev); |
358 | extern void r600_pm_init_profile(struct radeon_device *rdev); |
349 | extern void rs780_pm_init_profile(struct radeon_device *rdev); |
359 | extern void rs780_pm_init_profile(struct radeon_device *rdev); |
350 | extern uint32_t rs780_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
360 | extern uint32_t rs780_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
Line 360... | Line 370... | ||
360 | void r600_cp_fini(struct radeon_device *rdev); |
370 | void r600_cp_fini(struct radeon_device *rdev); |
361 | int r600_count_pipe_bits(uint32_t val); |
371 | int r600_count_pipe_bits(uint32_t val); |
362 | int r600_mc_wait_for_idle(struct radeon_device *rdev); |
372 | int r600_mc_wait_for_idle(struct radeon_device *rdev); |
363 | int r600_pcie_gart_init(struct radeon_device *rdev); |
373 | int r600_pcie_gart_init(struct radeon_device *rdev); |
364 | void r600_scratch_init(struct radeon_device *rdev); |
374 | void r600_scratch_init(struct radeon_device *rdev); |
365 | int r600_blit_init(struct radeon_device *rdev); |
- | |
366 | void r600_blit_fini(struct radeon_device *rdev); |
- | |
367 | int r600_init_microcode(struct radeon_device *rdev); |
375 | int r600_init_microcode(struct radeon_device *rdev); |
- | 376 | u32 r600_gfx_get_rptr(struct radeon_device *rdev, |
|
- | 377 | struct radeon_ring *ring); |
|
- | 378 | u32 r600_gfx_get_wptr(struct radeon_device *rdev, |
|
- | 379 | struct radeon_ring *ring); |
|
- | 380 | void r600_gfx_set_wptr(struct radeon_device *rdev, |
|
- | 381 | struct radeon_ring *ring); |
|
368 | /* r600 irq */ |
382 | /* r600 irq */ |
369 | int r600_irq_process(struct radeon_device *rdev); |
383 | int r600_irq_process(struct radeon_device *rdev); |
370 | int r600_irq_init(struct radeon_device *rdev); |
384 | int r600_irq_init(struct radeon_device *rdev); |
371 | void r600_irq_fini(struct radeon_device *rdev); |
385 | void r600_irq_fini(struct radeon_device *rdev); |
372 | void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size); |
386 | void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size); |
Line 374... | Line 388... | ||
374 | void r600_irq_suspend(struct radeon_device *rdev); |
388 | void r600_irq_suspend(struct radeon_device *rdev); |
375 | void r600_disable_interrupts(struct radeon_device *rdev); |
389 | void r600_disable_interrupts(struct radeon_device *rdev); |
376 | void r600_rlc_stop(struct radeon_device *rdev); |
390 | void r600_rlc_stop(struct radeon_device *rdev); |
377 | /* r600 audio */ |
391 | /* r600 audio */ |
378 | int r600_audio_init(struct radeon_device *rdev); |
392 | int r600_audio_init(struct radeon_device *rdev); |
379 | struct r600_audio r600_audio_status(struct radeon_device *rdev); |
393 | struct r600_audio_pin r600_audio_status(struct radeon_device *rdev); |
380 | void r600_audio_fini(struct radeon_device *rdev); |
394 | void r600_audio_fini(struct radeon_device *rdev); |
- | 395 | void r600_audio_set_dto(struct drm_encoder *encoder, u32 clock); |
|
- | 396 | void r600_hdmi_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, |
|
- | 397 | size_t size); |
|
- | 398 | void r600_hdmi_update_ACR(struct drm_encoder *encoder, uint32_t clock); |
|
- | 399 | void r600_hdmi_audio_workaround(struct drm_encoder *encoder); |
|
381 | int r600_hdmi_buffer_status_changed(struct drm_encoder *encoder); |
400 | int r600_hdmi_buffer_status_changed(struct drm_encoder *encoder); |
382 | void r600_hdmi_update_audio_settings(struct drm_encoder *encoder); |
401 | void r600_hdmi_update_audio_settings(struct drm_encoder *encoder); |
383 | void r600_hdmi_enable(struct drm_encoder *encoder, bool enable); |
402 | void r600_hdmi_enable(struct drm_encoder *encoder, bool enable); |
384 | void r600_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode); |
403 | void r600_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode); |
385 | /* r600 blit */ |
- | |
386 | int r600_blit_prepare_copy(struct radeon_device *rdev, unsigned num_gpu_pages, |
- | |
387 | struct radeon_fence **fence, struct radeon_sa_bo **vb, |
- | |
388 | struct radeon_semaphore **sem); |
- | |
389 | void r600_blit_done_copy(struct radeon_device *rdev, struct radeon_fence **fence, |
- | |
390 | struct radeon_sa_bo *vb, struct radeon_semaphore *sem); |
- | |
391 | void r600_kms_blit_copy(struct radeon_device *rdev, |
- | |
392 | u64 src_gpu_addr, u64 dst_gpu_addr, |
- | |
393 | unsigned num_gpu_pages, |
- | |
394 | struct radeon_sa_bo *vb); |
- | |
395 | int r600_mc_wait_for_idle(struct radeon_device *rdev); |
404 | int r600_mc_wait_for_idle(struct radeon_device *rdev); |
396 | u32 r600_get_xclk(struct radeon_device *rdev); |
405 | u32 r600_get_xclk(struct radeon_device *rdev); |
397 | uint64_t r600_get_gpu_clock_counter(struct radeon_device *rdev); |
406 | uint64_t r600_get_gpu_clock_counter(struct radeon_device *rdev); |
- | 407 | int rv6xx_get_temp(struct radeon_device *rdev); |
|
- | 408 | int r600_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
|
- | 409 | int r600_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 410 | void r600_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 411 | int r600_dpm_late_enable(struct radeon_device *rdev); |
|
398 | 412 | /* r600 dma */ |
|
- | 413 | uint32_t r600_dma_get_rptr(struct radeon_device *rdev, |
|
- | 414 | struct radeon_ring *ring); |
|
- | 415 | uint32_t r600_dma_get_wptr(struct radeon_device *rdev, |
|
- | 416 | struct radeon_ring *ring); |
|
- | 417 | void r600_dma_set_wptr(struct radeon_device *rdev, |
|
- | 418 | struct radeon_ring *ring); |
|
399 | /* uvd */ |
419 | /* rv6xx dpm */ |
400 | int r600_uvd_init(struct radeon_device *rdev); |
420 | int rv6xx_dpm_init(struct radeon_device *rdev); |
401 | int r600_uvd_rbc_start(struct radeon_device *rdev); |
421 | int rv6xx_dpm_enable(struct radeon_device *rdev); |
- | 422 | void rv6xx_dpm_disable(struct radeon_device *rdev); |
|
- | 423 | int rv6xx_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 424 | void rv6xx_setup_asic(struct radeon_device *rdev); |
|
- | 425 | void rv6xx_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
402 | void r600_uvd_rbc_stop(struct radeon_device *rdev); |
426 | void rv6xx_dpm_fini(struct radeon_device *rdev); |
- | 427 | u32 rv6xx_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
403 | int r600_uvd_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
428 | u32 rv6xx_dpm_get_mclk(struct radeon_device *rdev, bool low); |
404 | void r600_uvd_fence_emit(struct radeon_device *rdev, |
429 | void rv6xx_dpm_print_power_state(struct radeon_device *rdev, |
405 | struct radeon_fence *fence); |
430 | struct radeon_ps *ps); |
406 | void r600_uvd_semaphore_emit(struct radeon_device *rdev, |
431 | void rv6xx_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
407 | struct radeon_ring *ring, |
432 | struct seq_file *m); |
- | 433 | int rv6xx_dpm_force_performance_level(struct radeon_device *rdev, |
|
408 | struct radeon_semaphore *semaphore, |
434 | enum radeon_dpm_forced_level level); |
- | 435 | /* rs780 dpm */ |
|
- | 436 | int rs780_dpm_init(struct radeon_device *rdev); |
|
- | 437 | int rs780_dpm_enable(struct radeon_device *rdev); |
|
- | 438 | void rs780_dpm_disable(struct radeon_device *rdev); |
|
- | 439 | int rs780_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 440 | void rs780_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 441 | void rs780_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 442 | void rs780_dpm_fini(struct radeon_device *rdev); |
|
- | 443 | u32 rs780_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 444 | u32 rs780_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 445 | void rs780_dpm_print_power_state(struct radeon_device *rdev, |
|
409 | bool emit_wait); |
446 | struct radeon_ps *ps); |
410 | void r600_uvd_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
447 | void rs780_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
- | 448 | struct seq_file *m); |
|
- | 449 | int rs780_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 450 | enum radeon_dpm_forced_level level); |
|
Line 411... | Line 451... | ||
411 | 451 | ||
412 | /* |
452 | /* |
413 | * rv770,rv730,rv710,rv740 |
453 | * rv770,rv730,rv710,rv740 |
414 | */ |
454 | */ |
415 | int rv770_init(struct radeon_device *rdev); |
455 | int rv770_init(struct radeon_device *rdev); |
416 | void rv770_fini(struct radeon_device *rdev); |
456 | void rv770_fini(struct radeon_device *rdev); |
417 | int rv770_suspend(struct radeon_device *rdev); |
457 | int rv770_suspend(struct radeon_device *rdev); |
418 | int rv770_resume(struct radeon_device *rdev); |
458 | int rv770_resume(struct radeon_device *rdev); |
419 | void rv770_pm_misc(struct radeon_device *rdev); |
459 | void rv770_pm_misc(struct radeon_device *rdev); |
- | 460 | void rv770_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); |
|
420 | u32 rv770_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); |
461 | bool rv770_page_flip_pending(struct radeon_device *rdev, int crtc); |
421 | void r700_vram_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc); |
462 | void r700_vram_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc); |
422 | void r700_cp_stop(struct radeon_device *rdev); |
463 | void r700_cp_stop(struct radeon_device *rdev); |
423 | void r700_cp_fini(struct radeon_device *rdev); |
464 | void r700_cp_fini(struct radeon_device *rdev); |
424 | int rv770_copy_dma(struct radeon_device *rdev, |
465 | int rv770_copy_dma(struct radeon_device *rdev, |
425 | uint64_t src_offset, uint64_t dst_offset, |
466 | uint64_t src_offset, uint64_t dst_offset, |
426 | unsigned num_gpu_pages, |
467 | unsigned num_gpu_pages, |
427 | struct radeon_fence **fence); |
468 | struct radeon_fence **fence); |
428 | u32 rv770_get_xclk(struct radeon_device *rdev); |
- | |
429 | int rv770_uvd_resume(struct radeon_device *rdev); |
469 | u32 rv770_get_xclk(struct radeon_device *rdev); |
- | 470 | int rv770_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
|
- | 471 | int rv770_get_temp(struct radeon_device *rdev); |
|
- | 472 | /* hdmi */ |
|
- | 473 | void dce3_1_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode); |
|
- | 474 | /* rv7xx pm */ |
|
- | 475 | int rv770_dpm_init(struct radeon_device *rdev); |
|
- | 476 | int rv770_dpm_enable(struct radeon_device *rdev); |
|
- | 477 | int rv770_dpm_late_enable(struct radeon_device *rdev); |
|
- | 478 | void rv770_dpm_disable(struct radeon_device *rdev); |
|
- | 479 | int rv770_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 480 | void rv770_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 481 | void rv770_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 482 | void rv770_dpm_fini(struct radeon_device *rdev); |
|
- | 483 | u32 rv770_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 484 | u32 rv770_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 485 | void rv770_dpm_print_power_state(struct radeon_device *rdev, |
|
- | 486 | struct radeon_ps *ps); |
|
- | 487 | void rv770_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 488 | struct seq_file *m); |
|
- | 489 | int rv770_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 490 | enum radeon_dpm_forced_level level); |
|
Line 430... | Line 491... | ||
430 | int rv770_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
491 | bool rv770_dpm_vblank_too_short(struct radeon_device *rdev); |
431 | 492 | ||
432 | /* |
493 | /* |
433 | * evergreen |
494 | * evergreen |
Line 463... | Line 524... | ||
463 | extern void evergreen_pm_finish(struct radeon_device *rdev); |
524 | extern void evergreen_pm_finish(struct radeon_device *rdev); |
464 | extern void sumo_pm_init_profile(struct radeon_device *rdev); |
525 | extern void sumo_pm_init_profile(struct radeon_device *rdev); |
465 | extern void btc_pm_init_profile(struct radeon_device *rdev); |
526 | extern void btc_pm_init_profile(struct radeon_device *rdev); |
466 | int sumo_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
527 | int sumo_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
467 | int evergreen_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
528 | int evergreen_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
468 | extern void evergreen_pre_page_flip(struct radeon_device *rdev, int crtc); |
529 | extern void evergreen_page_flip(struct radeon_device *rdev, int crtc, |
469 | extern u32 evergreen_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); |
530 | u64 crtc_base); |
470 | extern void evergreen_post_page_flip(struct radeon_device *rdev, int crtc); |
531 | extern bool evergreen_page_flip_pending(struct radeon_device *rdev, int crtc); |
471 | extern void dce4_wait_for_vblank(struct radeon_device *rdev, int crtc); |
532 | extern void dce4_wait_for_vblank(struct radeon_device *rdev, int crtc); |
472 | void evergreen_disable_interrupt_state(struct radeon_device *rdev); |
533 | void evergreen_disable_interrupt_state(struct radeon_device *rdev); |
473 | int evergreen_blit_init(struct radeon_device *rdev); |
- | |
474 | int evergreen_mc_wait_for_idle(struct radeon_device *rdev); |
534 | int evergreen_mc_wait_for_idle(struct radeon_device *rdev); |
475 | void evergreen_dma_fence_ring_emit(struct radeon_device *rdev, |
535 | void evergreen_dma_fence_ring_emit(struct radeon_device *rdev, |
476 | struct radeon_fence *fence); |
536 | struct radeon_fence *fence); |
477 | void evergreen_dma_ring_ib_execute(struct radeon_device *rdev, |
537 | void evergreen_dma_ring_ib_execute(struct radeon_device *rdev, |
478 | struct radeon_ib *ib); |
538 | struct radeon_ib *ib); |
Line 480... | Line 540... | ||
480 | uint64_t src_offset, uint64_t dst_offset, |
540 | uint64_t src_offset, uint64_t dst_offset, |
481 | unsigned num_gpu_pages, |
541 | unsigned num_gpu_pages, |
482 | struct radeon_fence **fence); |
542 | struct radeon_fence **fence); |
483 | void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable); |
543 | void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable); |
484 | void evergreen_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode); |
544 | void evergreen_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode); |
- | 545 | int evergreen_get_temp(struct radeon_device *rdev); |
|
- | 546 | int sumo_get_temp(struct radeon_device *rdev); |
|
- | 547 | int tn_get_temp(struct radeon_device *rdev); |
|
- | 548 | int cypress_dpm_init(struct radeon_device *rdev); |
|
- | 549 | void cypress_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 550 | int cypress_dpm_enable(struct radeon_device *rdev); |
|
- | 551 | void cypress_dpm_disable(struct radeon_device *rdev); |
|
- | 552 | int cypress_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 553 | void cypress_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 554 | void cypress_dpm_fini(struct radeon_device *rdev); |
|
- | 555 | bool cypress_dpm_vblank_too_short(struct radeon_device *rdev); |
|
- | 556 | int btc_dpm_init(struct radeon_device *rdev); |
|
- | 557 | void btc_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 558 | int btc_dpm_enable(struct radeon_device *rdev); |
|
- | 559 | void btc_dpm_disable(struct radeon_device *rdev); |
|
- | 560 | int btc_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 561 | int btc_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 562 | void btc_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 563 | void btc_dpm_fini(struct radeon_device *rdev); |
|
- | 564 | u32 btc_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 565 | u32 btc_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 566 | bool btc_dpm_vblank_too_short(struct radeon_device *rdev); |
|
- | 567 | void btc_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 568 | struct seq_file *m); |
|
- | 569 | int sumo_dpm_init(struct radeon_device *rdev); |
|
- | 570 | int sumo_dpm_enable(struct radeon_device *rdev); |
|
- | 571 | int sumo_dpm_late_enable(struct radeon_device *rdev); |
|
- | 572 | void sumo_dpm_disable(struct radeon_device *rdev); |
|
- | 573 | int sumo_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 574 | int sumo_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 575 | void sumo_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 576 | void sumo_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 577 | void sumo_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 578 | void sumo_dpm_fini(struct radeon_device *rdev); |
|
- | 579 | u32 sumo_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 580 | u32 sumo_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 581 | void sumo_dpm_print_power_state(struct radeon_device *rdev, |
|
- | 582 | struct radeon_ps *ps); |
|
- | 583 | void sumo_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 584 | struct seq_file *m); |
|
- | 585 | int sumo_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 586 | enum radeon_dpm_forced_level level); |
|
Line 485... | Line 587... | ||
485 | 587 | ||
486 | /* |
588 | /* |
487 | * cayman |
589 | * cayman |
488 | */ |
590 | */ |
489 | void cayman_fence_ring_emit(struct radeon_device *rdev, |
591 | void cayman_fence_ring_emit(struct radeon_device *rdev, |
490 | struct radeon_fence *fence); |
- | |
491 | void cayman_uvd_semaphore_emit(struct radeon_device *rdev, |
- | |
492 | struct radeon_ring *ring, |
- | |
493 | struct radeon_semaphore *semaphore, |
- | |
494 | bool emit_wait); |
592 | struct radeon_fence *fence); |
495 | void cayman_pcie_gart_tlb_flush(struct radeon_device *rdev); |
593 | void cayman_pcie_gart_tlb_flush(struct radeon_device *rdev); |
496 | int cayman_init(struct radeon_device *rdev); |
594 | int cayman_init(struct radeon_device *rdev); |
497 | void cayman_fini(struct radeon_device *rdev); |
595 | void cayman_fini(struct radeon_device *rdev); |
498 | int cayman_suspend(struct radeon_device *rdev); |
596 | int cayman_suspend(struct radeon_device *rdev); |
Line 501... | Line 599... | ||
501 | void cayman_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
599 | void cayman_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
502 | int cayman_vm_init(struct radeon_device *rdev); |
600 | int cayman_vm_init(struct radeon_device *rdev); |
503 | void cayman_vm_fini(struct radeon_device *rdev); |
601 | void cayman_vm_fini(struct radeon_device *rdev); |
504 | void cayman_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
602 | void cayman_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
505 | uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags); |
603 | uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags); |
506 | void cayman_vm_set_page(struct radeon_device *rdev, |
- | |
507 | struct radeon_ib *ib, |
- | |
508 | uint64_t pe, |
- | |
509 | uint64_t addr, unsigned count, |
- | |
510 | uint32_t incr, uint32_t flags); |
- | |
511 | int evergreen_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
604 | int evergreen_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
512 | int evergreen_dma_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
605 | int evergreen_dma_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
513 | void cayman_dma_ring_ib_execute(struct radeon_device *rdev, |
606 | void cayman_dma_ring_ib_execute(struct radeon_device *rdev, |
514 | struct radeon_ib *ib); |
607 | struct radeon_ib *ib); |
515 | bool cayman_gfx_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
608 | bool cayman_gfx_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
516 | bool cayman_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
609 | bool cayman_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
- | 610 | ||
- | 611 | void cayman_dma_vm_copy_pages(struct radeon_device *rdev, |
|
- | 612 | struct radeon_ib *ib, |
|
- | 613 | uint64_t pe, uint64_t src, |
|
- | 614 | unsigned count); |
|
- | 615 | void cayman_dma_vm_write_pages(struct radeon_device *rdev, |
|
- | 616 | struct radeon_ib *ib, |
|
- | 617 | uint64_t pe, |
|
- | 618 | uint64_t addr, unsigned count, |
|
- | 619 | uint32_t incr, uint32_t flags); |
|
- | 620 | void cayman_dma_vm_set_pages(struct radeon_device *rdev, |
|
- | 621 | struct radeon_ib *ib, |
|
- | 622 | uint64_t pe, |
|
- | 623 | uint64_t addr, unsigned count, |
|
- | 624 | uint32_t incr, uint32_t flags); |
|
- | 625 | void cayman_dma_vm_pad_ib(struct radeon_ib *ib); |
|
- | 626 | ||
517 | void cayman_dma_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
627 | void cayman_dma_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
Line -... | Line 628... | ||
- | 628 | ||
- | 629 | u32 cayman_gfx_get_rptr(struct radeon_device *rdev, |
|
- | 630 | struct radeon_ring *ring); |
|
- | 631 | u32 cayman_gfx_get_wptr(struct radeon_device *rdev, |
|
- | 632 | struct radeon_ring *ring); |
|
- | 633 | void cayman_gfx_set_wptr(struct radeon_device *rdev, |
|
- | 634 | struct radeon_ring *ring); |
|
- | 635 | uint32_t cayman_dma_get_rptr(struct radeon_device *rdev, |
|
- | 636 | struct radeon_ring *ring); |
|
- | 637 | uint32_t cayman_dma_get_wptr(struct radeon_device *rdev, |
|
- | 638 | struct radeon_ring *ring); |
|
- | 639 | void cayman_dma_set_wptr(struct radeon_device *rdev, |
|
- | 640 | struct radeon_ring *ring); |
|
- | 641 | ||
- | 642 | int ni_dpm_init(struct radeon_device *rdev); |
|
- | 643 | void ni_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 644 | int ni_dpm_enable(struct radeon_device *rdev); |
|
- | 645 | void ni_dpm_disable(struct radeon_device *rdev); |
|
- | 646 | int ni_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 647 | int ni_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 648 | void ni_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 649 | void ni_dpm_fini(struct radeon_device *rdev); |
|
- | 650 | u32 ni_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 651 | u32 ni_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 652 | void ni_dpm_print_power_state(struct radeon_device *rdev, |
|
- | 653 | struct radeon_ps *ps); |
|
- | 654 | void ni_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 655 | struct seq_file *m); |
|
- | 656 | int ni_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 657 | enum radeon_dpm_forced_level level); |
|
- | 658 | bool ni_dpm_vblank_too_short(struct radeon_device *rdev); |
|
- | 659 | int trinity_dpm_init(struct radeon_device *rdev); |
|
- | 660 | int trinity_dpm_enable(struct radeon_device *rdev); |
|
- | 661 | int trinity_dpm_late_enable(struct radeon_device *rdev); |
|
- | 662 | void trinity_dpm_disable(struct radeon_device *rdev); |
|
- | 663 | int trinity_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 664 | int trinity_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 665 | void trinity_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 666 | void trinity_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 667 | void trinity_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 668 | void trinity_dpm_fini(struct radeon_device *rdev); |
|
- | 669 | u32 trinity_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 670 | u32 trinity_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 671 | void trinity_dpm_print_power_state(struct radeon_device *rdev, |
|
- | 672 | struct radeon_ps *ps); |
|
- | 673 | void trinity_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 674 | struct seq_file *m); |
|
- | 675 | int trinity_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 676 | enum radeon_dpm_forced_level level); |
|
- | 677 | void trinity_dpm_enable_bapm(struct radeon_device *rdev, bool enable); |
|
518 | 678 | ||
519 | /* DCE6 - SI */ |
679 | /* DCE6 - SI */ |
- | 680 | void dce6_bandwidth_update(struct radeon_device *rdev); |
|
- | 681 | int dce6_audio_init(struct radeon_device *rdev); |
|
Line 520... | Line 682... | ||
520 | void dce6_bandwidth_update(struct radeon_device *rdev); |
682 | void dce6_audio_fini(struct radeon_device *rdev); |
521 | 683 | ||
522 | /* |
684 | /* |
523 | * si |
685 | * si |
Line 535... | Line 697... | ||
535 | void si_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
697 | void si_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
536 | int si_irq_set(struct radeon_device *rdev); |
698 | int si_irq_set(struct radeon_device *rdev); |
537 | int si_irq_process(struct radeon_device *rdev); |
699 | int si_irq_process(struct radeon_device *rdev); |
538 | int si_vm_init(struct radeon_device *rdev); |
700 | int si_vm_init(struct radeon_device *rdev); |
539 | void si_vm_fini(struct radeon_device *rdev); |
701 | void si_vm_fini(struct radeon_device *rdev); |
540 | void si_vm_set_page(struct radeon_device *rdev, |
- | |
541 | struct radeon_ib *ib, |
- | |
542 | uint64_t pe, |
- | |
543 | uint64_t addr, unsigned count, |
- | |
544 | uint32_t incr, uint32_t flags); |
- | |
545 | void si_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
702 | void si_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
546 | int si_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
703 | int si_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
547 | int si_copy_dma(struct radeon_device *rdev, |
704 | int si_copy_dma(struct radeon_device *rdev, |
548 | uint64_t src_offset, uint64_t dst_offset, |
705 | uint64_t src_offset, uint64_t dst_offset, |
549 | unsigned num_gpu_pages, |
706 | unsigned num_gpu_pages, |
550 | struct radeon_fence **fence); |
707 | struct radeon_fence **fence); |
- | 708 | ||
- | 709 | void si_dma_vm_copy_pages(struct radeon_device *rdev, |
|
- | 710 | struct radeon_ib *ib, |
|
- | 711 | uint64_t pe, uint64_t src, |
|
- | 712 | unsigned count); |
|
- | 713 | void si_dma_vm_write_pages(struct radeon_device *rdev, |
|
- | 714 | struct radeon_ib *ib, |
|
- | 715 | uint64_t pe, |
|
- | 716 | uint64_t addr, unsigned count, |
|
- | 717 | uint32_t incr, uint32_t flags); |
|
- | 718 | void si_dma_vm_set_pages(struct radeon_device *rdev, |
|
- | 719 | struct radeon_ib *ib, |
|
- | 720 | uint64_t pe, |
|
- | 721 | uint64_t addr, unsigned count, |
|
- | 722 | uint32_t incr, uint32_t flags); |
|
- | 723 | ||
551 | void si_dma_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
724 | void si_dma_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
552 | u32 si_get_xclk(struct radeon_device *rdev); |
725 | u32 si_get_xclk(struct radeon_device *rdev); |
553 | uint64_t si_get_gpu_clock_counter(struct radeon_device *rdev); |
726 | uint64_t si_get_gpu_clock_counter(struct radeon_device *rdev); |
554 | int si_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
727 | int si_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
- | 728 | int si_get_temp(struct radeon_device *rdev); |
|
- | 729 | int si_dpm_init(struct radeon_device *rdev); |
|
- | 730 | void si_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 731 | int si_dpm_enable(struct radeon_device *rdev); |
|
- | 732 | int si_dpm_late_enable(struct radeon_device *rdev); |
|
- | 733 | void si_dpm_disable(struct radeon_device *rdev); |
|
- | 734 | int si_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 735 | int si_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 736 | void si_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 737 | void si_dpm_fini(struct radeon_device *rdev); |
|
- | 738 | void si_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 739 | void si_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 740 | struct seq_file *m); |
|
- | 741 | int si_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 742 | enum radeon_dpm_forced_level level); |
|
- | 743 | ||
- | 744 | /* DCE8 - CIK */ |
|
- | 745 | void dce8_bandwidth_update(struct radeon_device *rdev); |
|
- | 746 | ||
- | 747 | /* |
|
- | 748 | * cik |
|
- | 749 | */ |
|
- | 750 | uint64_t cik_get_gpu_clock_counter(struct radeon_device *rdev); |
|
- | 751 | u32 cik_get_xclk(struct radeon_device *rdev); |
|
- | 752 | uint32_t cik_pciep_rreg(struct radeon_device *rdev, uint32_t reg); |
|
- | 753 | void cik_pciep_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
|
- | 754 | int cik_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); |
|
- | 755 | int cik_set_vce_clocks(struct radeon_device *rdev, u32 evclk, u32 ecclk); |
|
- | 756 | void cik_sdma_fence_ring_emit(struct radeon_device *rdev, |
|
- | 757 | struct radeon_fence *fence); |
|
- | 758 | bool cik_sdma_semaphore_ring_emit(struct radeon_device *rdev, |
|
- | 759 | struct radeon_ring *ring, |
|
- | 760 | struct radeon_semaphore *semaphore, |
|
- | 761 | bool emit_wait); |
|
- | 762 | void cik_sdma_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
|
- | 763 | int cik_copy_dma(struct radeon_device *rdev, |
|
- | 764 | uint64_t src_offset, uint64_t dst_offset, |
|
- | 765 | unsigned num_gpu_pages, |
|
- | 766 | struct radeon_fence **fence); |
|
- | 767 | int cik_copy_cpdma(struct radeon_device *rdev, |
|
- | 768 | uint64_t src_offset, uint64_t dst_offset, |
|
- | 769 | unsigned num_gpu_pages, |
|
- | 770 | struct radeon_fence **fence); |
|
- | 771 | int cik_sdma_ring_test(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 772 | int cik_sdma_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 773 | bool cik_sdma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 774 | void cik_fence_gfx_ring_emit(struct radeon_device *rdev, |
|
- | 775 | struct radeon_fence *fence); |
|
- | 776 | void cik_fence_compute_ring_emit(struct radeon_device *rdev, |
|
- | 777 | struct radeon_fence *fence); |
|
- | 778 | bool cik_semaphore_ring_emit(struct radeon_device *rdev, |
|
- | 779 | struct radeon_ring *cp, |
|
- | 780 | struct radeon_semaphore *semaphore, |
|
- | 781 | bool emit_wait); |
|
- | 782 | void cik_pcie_gart_tlb_flush(struct radeon_device *rdev); |
|
- | 783 | int cik_init(struct radeon_device *rdev); |
|
- | 784 | void cik_fini(struct radeon_device *rdev); |
|
- | 785 | int cik_suspend(struct radeon_device *rdev); |
|
- | 786 | int cik_resume(struct radeon_device *rdev); |
|
- | 787 | bool cik_gfx_is_lockup(struct radeon_device *rdev, struct radeon_ring *cp); |
|
- | 788 | int cik_asic_reset(struct radeon_device *rdev); |
|
- | 789 | void cik_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
|
- | 790 | int cik_ring_test(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 791 | int cik_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 792 | int cik_irq_set(struct radeon_device *rdev); |
|
- | 793 | int cik_irq_process(struct radeon_device *rdev); |
|
- | 794 | int cik_vm_init(struct radeon_device *rdev); |
|
- | 795 | void cik_vm_fini(struct radeon_device *rdev); |
|
- | 796 | void cik_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
|
- | 797 | ||
- | 798 | void cik_sdma_vm_copy_pages(struct radeon_device *rdev, |
|
- | 799 | struct radeon_ib *ib, |
|
- | 800 | uint64_t pe, uint64_t src, |
|
- | 801 | unsigned count); |
|
- | 802 | void cik_sdma_vm_write_pages(struct radeon_device *rdev, |
|
- | 803 | struct radeon_ib *ib, |
|
- | 804 | uint64_t pe, |
|
- | 805 | uint64_t addr, unsigned count, |
|
- | 806 | uint32_t incr, uint32_t flags); |
|
- | 807 | void cik_sdma_vm_set_pages(struct radeon_device *rdev, |
|
- | 808 | struct radeon_ib *ib, |
|
- | 809 | uint64_t pe, |
|
- | 810 | uint64_t addr, unsigned count, |
|
- | 811 | uint32_t incr, uint32_t flags); |
|
- | 812 | void cik_sdma_vm_pad_ib(struct radeon_ib *ib); |
|
- | 813 | ||
- | 814 | void cik_dma_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
|
- | 815 | int cik_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
|
- | 816 | u32 cik_gfx_get_rptr(struct radeon_device *rdev, |
|
- | 817 | struct radeon_ring *ring); |
|
- | 818 | u32 cik_gfx_get_wptr(struct radeon_device *rdev, |
|
- | 819 | struct radeon_ring *ring); |
|
- | 820 | void cik_gfx_set_wptr(struct radeon_device *rdev, |
|
- | 821 | struct radeon_ring *ring); |
|
- | 822 | u32 cik_compute_get_rptr(struct radeon_device *rdev, |
|
- | 823 | struct radeon_ring *ring); |
|
- | 824 | u32 cik_compute_get_wptr(struct radeon_device *rdev, |
|
- | 825 | struct radeon_ring *ring); |
|
- | 826 | void cik_compute_set_wptr(struct radeon_device *rdev, |
|
- | 827 | struct radeon_ring *ring); |
|
- | 828 | u32 cik_sdma_get_rptr(struct radeon_device *rdev, |
|
- | 829 | struct radeon_ring *ring); |
|
- | 830 | u32 cik_sdma_get_wptr(struct radeon_device *rdev, |
|
- | 831 | struct radeon_ring *ring); |
|
- | 832 | void cik_sdma_set_wptr(struct radeon_device *rdev, |
|
- | 833 | struct radeon_ring *ring); |
|
- | 834 | int ci_get_temp(struct radeon_device *rdev); |
|
- | 835 | int kv_get_temp(struct radeon_device *rdev); |
|
- | 836 | ||
- | 837 | int ci_dpm_init(struct radeon_device *rdev); |
|
- | 838 | int ci_dpm_enable(struct radeon_device *rdev); |
|
- | 839 | int ci_dpm_late_enable(struct radeon_device *rdev); |
|
- | 840 | void ci_dpm_disable(struct radeon_device *rdev); |
|
- | 841 | int ci_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 842 | int ci_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 843 | void ci_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 844 | void ci_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 845 | void ci_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 846 | void ci_dpm_fini(struct radeon_device *rdev); |
|
- | 847 | u32 ci_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 848 | u32 ci_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 849 | void ci_dpm_print_power_state(struct radeon_device *rdev, |
|
- | 850 | struct radeon_ps *ps); |
|
- | 851 | void ci_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 852 | struct seq_file *m); |
|
- | 853 | int ci_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 854 | enum radeon_dpm_forced_level level); |
|
- | 855 | bool ci_dpm_vblank_too_short(struct radeon_device *rdev); |
|
- | 856 | void ci_dpm_powergate_uvd(struct radeon_device *rdev, bool gate); |
|
- | 857 | ||
- | 858 | int kv_dpm_init(struct radeon_device *rdev); |
|
- | 859 | int kv_dpm_enable(struct radeon_device *rdev); |
|
- | 860 | int kv_dpm_late_enable(struct radeon_device *rdev); |
|
- | 861 | void kv_dpm_disable(struct radeon_device *rdev); |
|
- | 862 | int kv_dpm_pre_set_power_state(struct radeon_device *rdev); |
|
- | 863 | int kv_dpm_set_power_state(struct radeon_device *rdev); |
|
- | 864 | void kv_dpm_post_set_power_state(struct radeon_device *rdev); |
|
- | 865 | void kv_dpm_setup_asic(struct radeon_device *rdev); |
|
- | 866 | void kv_dpm_display_configuration_changed(struct radeon_device *rdev); |
|
- | 867 | void kv_dpm_fini(struct radeon_device *rdev); |
|
- | 868 | u32 kv_dpm_get_sclk(struct radeon_device *rdev, bool low); |
|
- | 869 | u32 kv_dpm_get_mclk(struct radeon_device *rdev, bool low); |
|
- | 870 | void kv_dpm_print_power_state(struct radeon_device *rdev, |
|
- | 871 | struct radeon_ps *ps); |
|
- | 872 | void kv_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, |
|
- | 873 | struct seq_file *m); |
|
- | 874 | int kv_dpm_force_performance_level(struct radeon_device *rdev, |
|
- | 875 | enum radeon_dpm_forced_level level); |
|
- | 876 | void kv_dpm_powergate_uvd(struct radeon_device *rdev, bool gate); |
|
- | 877 | void kv_dpm_enable_bapm(struct radeon_device *rdev, bool enable); |
|
- | 878 | ||
- | 879 | /* uvd v1.0 */ |
|
- | 880 | uint32_t uvd_v1_0_get_rptr(struct radeon_device *rdev, |
|
- | 881 | struct radeon_ring *ring); |
|
- | 882 | uint32_t uvd_v1_0_get_wptr(struct radeon_device *rdev, |
|
- | 883 | struct radeon_ring *ring); |
|
- | 884 | void uvd_v1_0_set_wptr(struct radeon_device *rdev, |
|
- | 885 | struct radeon_ring *ring); |
|
- | 886 | ||
- | 887 | int uvd_v1_0_init(struct radeon_device *rdev); |
|
- | 888 | void uvd_v1_0_fini(struct radeon_device *rdev); |
|
- | 889 | int uvd_v1_0_start(struct radeon_device *rdev); |
|
- | 890 | void uvd_v1_0_stop(struct radeon_device *rdev); |
|
- | 891 | ||
- | 892 | int uvd_v1_0_ring_test(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 893 | int uvd_v1_0_ib_test(struct radeon_device *rdev, struct radeon_ring *ring); |
|
- | 894 | bool uvd_v1_0_semaphore_emit(struct radeon_device *rdev, |
|
- | 895 | struct radeon_ring *ring, |
|
- | 896 | struct radeon_semaphore *semaphore, |
|
- | 897 | bool emit_wait); |
|
- | 898 | void uvd_v1_0_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
|
- | 899 | ||
- | 900 | /* uvd v2.2 */ |
|
- | 901 | int uvd_v2_2_resume(struct radeon_device *rdev); |
|
- | 902 | void uvd_v2_2_fence_emit(struct radeon_device *rdev, |
|
- | 903 | struct radeon_fence *fence); |
|
- | 904 | ||
- | 905 | /* uvd v3.1 */ |
|
- | 906 | bool uvd_v3_1_semaphore_emit(struct radeon_device *rdev, |
|
- | 907 | struct radeon_ring *ring, |
|
- | 908 | struct radeon_semaphore *semaphore, |
|
- | 909 | bool emit_wait); |
|
- | 910 | ||
- | 911 | /* uvd v4.2 */ |
|
- | 912 | int uvd_v4_2_resume(struct radeon_device *rdev); |
|
- | 913 | ||
- | 914 | /* vce v1.0 */ |
|
- | 915 | uint32_t vce_v1_0_get_rptr(struct radeon_device *rdev, |
|
- | 916 | struct radeon_ring *ring); |
|
- | 917 | uint32_t vce_v1_0_get_wptr(struct radeon_device *rdev, |
|
- | 918 | struct radeon_ring *ring); |
|
- | 919 | void vce_v1_0_set_wptr(struct radeon_device *rdev, |
|
- | 920 | struct radeon_ring *ring); |
|
- | 921 | int vce_v1_0_init(struct radeon_device *rdev); |
|
- | 922 | int vce_v1_0_start(struct radeon_device *rdev); |
|
- | 923 | ||
- | 924 | /* vce v2.0 */ |
|
- | 925 | int vce_v2_0_resume(struct radeon_device *rdev); |
|
Line 555... | Line 926... | ||
555 | 926 |