summaryrefslogtreecommitdiff
path: root/linux-core/drm_crtc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@airlied2.(none)>2007-04-11 16:33:03 +1000
committerDave Airlie <airlied@airlied2.(none)>2007-04-11 16:33:03 +1000
commit32f6a58db216f23a7c71ca9c7eda56aaa8293078 (patch)
treeb5c1899ce99797552cb6f01391b38a75ae6377f4 /linux-core/drm_crtc.c
parentadd7a928ad1819df17d5764d06fb81985b285d08 (diff)
add initial drm_fb framebuffer
So far I can load fbcon, once I use my miniglx to add a framebuffer. fbcon doesn't show anything on screen but baby steps and all that.
Diffstat (limited to 'linux-core/drm_crtc.c')
-rw-r--r--linux-core/drm_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 12705272..83f8e167 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -1022,6 +1022,7 @@ int drm_mode_addfb(struct inode *inode, struct file *filp,
if (copy_to_user(argp, &r, sizeof(r)))
return -EFAULT;
+ drmfb_probe(dev, fb);
return 0;
}
@@ -1040,6 +1041,7 @@ int drm_mode_rmfb(struct inode *inode, struct file *filp,
return -EINVAL;
}
+ drmfb_remove(dev, fb);
/* TODO check if we own the buffer */
/* TODO release all crtc connected to the framebuffer */
/* bind the fb to the crtc for now */