]> Zhao Yanbai Git Server - minix.git/commitdiff
vm map request - ioctl to /dev/video
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:11:59 +0000 (14:11 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:11:59 +0000 (14:11 +0000)
include/sys/vm.h

index b0155aa441f196235550a5748017597566c9efe6..c431cd89e6acfb6f88897773d9f6189526c24494 100644 (file)
@@ -2,23 +2,15 @@
 sys/vm.h
 */
 
-/* MIOCMAP */
-struct mapreq
-{
-       void *base;
-       size_t size;
-       off_t offset;
-       int readonly;
-};
-
-
-/* MIOCMAPVM */
+/* used in ioctl to tty for mapvm map and unmap request. */
 struct mapreqvm
 {
        int     flags;          /* reserved, must be 0 */
-       off_t   phys_offset;
+       off_t   phys_offset;    
        size_t  size;
        int     readonly;
-       char    reserved[40];   /* reserved, must be 0 */
-       void    *vaddr_ret;     /* result vaddr */
+       char    reserved[36];   /* reserved, must be 0 */
+       void    *vaddr;         
+       void    *vaddr_ret;     
 };
+