diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-08-13 19:43:11 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-08-13 19:43:11 +0000 |
commit | d704a08c942c62c9f9d2187e387fbfdff7fde8b4 (patch) | |
tree | c428b1b1c4d92abf17cc837f13cc7fd92e9499a7 /sys/dev | |
parent | 279638773bb0f75f278efe72a2401bb217c2cbd2 (diff) |
Call drm_mtrr_add() directly instead adding a map.
ok jsg@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_object.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_object.c b/sys/dev/pci/drm/radeon/radeon_object.c index 5547e99be68..7e94abea811 100644 --- a/sys/dev/pci/drm/radeon/radeon_object.c +++ b/sys/dev/pci/drm/radeon/radeon_object.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeon_object.c,v 1.1 2013/08/12 04:11:53 jsg Exp $ */ +/* $OpenBSD: radeon_object.c,v 1.2 2013/08/13 19:43:10 kettenis Exp $ */ /* * Copyright 2009 Jerome Glisse. * All Rights Reserved. @@ -330,12 +330,10 @@ void radeon_bo_force_delete(struct radeon_device *rdev) int radeon_bo_init(struct radeon_device *rdev) { - struct drm_local_map *map; paddr_t start, end; /* Add an MTRR for the VRAM */ - drm_addmap(rdev->ddev, rdev->mc.aper_base, rdev->mc.aper_size, - _DRM_FRAME_BUFFER, _DRM_WRITE_COMBINING, &map); + drm_mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size, DRM_MTRR_WC); /* fake a 'cookie', seems to be unused? */ rdev->mc.vram_mtrr = 1; |