summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_kms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c
index acc0fbc95cb..f9e72e449cd 100644
--- a/sys/dev/pci/drm/radeon/radeon_kms.c
+++ b/sys/dev/pci/drm/radeon/radeon_kms.c
@@ -435,6 +435,7 @@ radeondrm_attach_kms(struct device *parent, struct device *self, void *aux)
pcireg_t type;
int i;
uint8_t rmmio_bar;
+ paddr_t fb_aper;
#if !defined(__sparc64__)
pcireg_t addr, mask;
int s;
@@ -660,6 +661,10 @@ radeondrm_attach_kms(struct device *parent, struct device *self, void *aux)
}
#endif
+ fb_aper = bus_space_mmap(rdev->memt, rdev->fb_aper_offset, 0, 0, 0);
+ if (fb_aper != -1)
+ rasops_claim_framebuffer(fb_aper, rdev->fb_aper_size, self);
+
rdev->shutdown = true;
config_mountroot(self, radeondrm_attachhook);
}