Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138964
b: refs/heads/master
c: befb73c
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Mar 13, 2009
1 parent b86ed3d commit cc33228
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 995e37cafb90f104395e015a9836cc459df1fc39
refs/heads/master: befb73c2322923766df7e36b51f407dbdc047eab
14 changes: 14 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ u32 radeon_get_scratch(drm_radeon_private_t *dev_priv, int index)
return RADEON_READ(RADEON_SCRATCH_REG0 + 4*index);
}

u32 RADEON_READ_MM(drm_radeon_private_t *dev_priv, int addr)
{
u32 ret;

if (addr < 0x10000)
ret = DRM_READ32(dev_priv->mmio, addr);
else {
DRM_WRITE32(dev_priv->mmio, RADEON_MM_INDEX, addr);
ret = DRM_READ32(dev_priv->mmio, RADEON_MM_DATA);
}

return ret;
}

static u32 R500_READ_MCIND(drm_radeon_private_t *dev_priv, int addr)
{
u32 ret;
Expand Down
Loading

0 comments on commit cc33228

Please sign in to comment.