Rev 1129 | Rev 1268 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1129 | Rev 1179 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * Jerome Glisse |
26 | * Jerome Glisse |
27 | */ |
27 | */ |
28 | #include "drmP.h" |
28 | #include "drmP.h" |
29 | #include "radeon_reg.h" |
29 | #include "radeon_reg.h" |
30 | #include "radeon.h" |
30 | #include "radeon.h" |
- | 31 | #include "avivod.h" |
|
- | 32 | ||
- | 33 | #include "rs600_reg_safe.h" |
|
Line 31... | Line 34... | ||
31 | 34 | ||
32 | /* rs600 depends on : */ |
35 | /* rs600 depends on : */ |
33 | void r100_hdp_reset(struct radeon_device *rdev); |
36 | void r100_hdp_reset(struct radeon_device *rdev); |
34 | int r100_gui_wait_for_idle(struct radeon_device *rdev); |
37 | int r100_gui_wait_for_idle(struct radeon_device *rdev); |
Line 221... | Line 224... | ||
221 | rs600_mc_disable_clients(rdev); |
224 | rs600_mc_disable_clients(rdev); |
222 | if (rs600_mc_wait_for_idle(rdev)) { |
225 | if (rs600_mc_wait_for_idle(rdev)) { |
223 | printk(KERN_WARNING "Failed to wait MC idle while " |
226 | printk(KERN_WARNING "Failed to wait MC idle while " |
224 | "programming pipes. Bad things might happen.\n"); |
227 | "programming pipes. Bad things might happen.\n"); |
225 | } |
228 | } |
226 | tmp = rdev->mc.vram_location + rdev->mc.vram_size - 1; |
229 | tmp = rdev->mc.vram_location + rdev->mc.mc_vram_size - 1; |
227 | tmp = REG_SET(RS600_MC_FB_TOP, tmp >> 16); |
230 | tmp = REG_SET(RS600_MC_FB_TOP, tmp >> 16); |
228 | tmp |= REG_SET(RS600_MC_FB_START, rdev->mc.vram_location >> 16); |
231 | tmp |= REG_SET(RS600_MC_FB_START, rdev->mc.vram_location >> 16); |
229 | WREG32_MC(RS600_MC_FB_LOCATION, tmp); |
232 | WREG32_MC(RS600_MC_FB_LOCATION, tmp); |
230 | WREG32(RS690_HDP_FB_LOCATION, rdev->mc.vram_location >> 16); |
233 | WREG32(RS690_HDP_FB_LOCATION, rdev->mc.vram_location >> 16); |
231 | return 0; |
234 | return 0; |
Line 299... | Line 302... | ||
299 | /* FIXME: to do or is these values sane ? */ |
302 | /* FIXME: to do or is these values sane ? */ |
300 | rdev->mc.vram_is_ddr = true; |
303 | rdev->mc.vram_is_ddr = true; |
301 | rdev->mc.vram_width = 128; |
304 | rdev->mc.vram_width = 128; |
302 | } |
305 | } |
Line -... | Line 306... | ||
- | 306 | ||
- | 307 | void rs600_bandwidth_update(struct radeon_device *rdev) |
|
- | 308 | { |
|
- | 309 | /* FIXME: implement, should this be like rs690 ? */ |
|
- | 310 | } |
|
Line 303... | Line 311... | ||
303 | 311 | ||
304 | 312 | ||
305 | /* |
313 | /* |
306 | * Indirect registers accessor |
314 | * Indirect registers accessor |