rk29: vpu: add author info
author陈恒明 <chm@rock-chips.com>
Tue, 23 Aug 2011 09:53:01 +0000 (17:53 +0800)
committer陈恒明 <chm@rock-chips.com>
Tue, 23 Aug 2011 09:53:01 +0000 (17:53 +0800)
arch/arm/mach-rk29/include/mach/vpu_mem.h
arch/arm/mach-rk29/include/mach/vpu_service.h
arch/arm/mach-rk29/vpu_mem.c
arch/arm/mach-rk29/vpu_service.c

index 909e4c5cdd046d5cd5c2c55c227c718b0b61a312..7d4c5279ef7be091f943fe8356ba1de19eaaabb9 100644 (file)
@@ -1,6 +1,7 @@
 /* arch/arm/mach-rk29/include/mach/vpu_mem.h
  *
  * Copyright (C) 2007 Google, Inc.
+ * author: chenhengming chm@rock-chips.com
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
index 9733600a61bf81fa72aee0b13cb16e30ad89d9cb..9162196880b7ae7072e014e70407c52b6906c869 100644 (file)
@@ -1,6 +1,7 @@
 /* arch/arm/mach-rk29/include/mach/vpu_service.h
  *
  * Copyright (C) 2010 ROCKCHIP, Inc.
+ * author: chenhengming chm@rock-chips.com
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
index 89e8e968d64c3f10a145e9c60ecc4e6d845de44e..3390323b5ed114a00871c263edf470cd1bd43966 100644 (file)
@@ -1,6 +1,7 @@
 /* arch/arm/mach-rk29/vpu_mem.c\r
  *\r
  * Copyright (C) 2010 ROCKCHIP, Inc.\r
+ * author: chenhengming chm@rock-chips.com\r
  *\r
  * This software is licensed under the terms of the GNU General Public\r
  * License version 2, as published by the Free Software Foundation, and\r
@@ -45,7 +46,7 @@
 \r
 /**\r
  * struct for process session which connect to vpu_mem\r
- * \r
+ *\r
  * @author ChenHengming (2011-4-11)\r
  */\r
 typedef struct vpu_mem_session {\r
@@ -70,8 +71,8 @@ typedef struct vpu_mem_region_info {
 } vdm_region;\r
 \r
 /**\r
- * struct for region information \r
- * this struct should be modified with bitmap lock \r
+ * struct for region information\r
+ * this struct should be modified with bitmap lock\r
  */\r
 typedef struct vpu_mem_link_info {\r
     struct list_head session_link;      /* link to vpu_mem_session list */\r
@@ -101,7 +102,7 @@ typedef struct vpu_mem_info {
         * O_SYNC to get an uncached region */\r
        unsigned cached;\r
        unsigned buffered;\r
-       /* \r
+       /*\r
         * vdm_session init only store the free region but use a vdm_session for convenience\r
         */\r
     vdm_session status;\r
@@ -124,9 +125,9 @@ static int vpu_mem_over = 0;
 #define is_free_region(x)       ((0 == (x)->used) && (0 == (x)->post))\r
 \r
 /**\r
- * vpu memory info dump: \r
- * first dump global info, then dump each session info \r
- * \r
+ * vpu memory info dump:\r
+ * first dump global info, then dump each session info\r
+ *\r
  * @author ChenHengming (2011-4-20)\r
  */\r
 static void dump_status(void)\r
@@ -176,13 +177,13 @@ static void dump_status(void)
 \r
 /**\r
  * find used link in a session\r
- * \r
+ *\r
  * @author ChenHengming (2011-4-18)\r
- * \r
- * @param session \r
- * @param index \r
- * \r
- * @return vdm_link* \r
+ *\r
+ * @param session\r
+ * @param index\r
+ *\r
+ * @return vdm_link*\r
  */\r
 static vdm_link *find_used_link(vdm_session *session, int index)\r
 {\r
@@ -200,12 +201,12 @@ static vdm_link *find_used_link(vdm_session *session, int index)
 \r
 /**\r
  * find post link from vpu_mem's vdm_post list\r
- * \r
+ *\r
  * @author ChenHengming (2011-4-18)\r
- * \r
- * @param index \r
- * \r
- * @return vdm_link* \r
+ *\r
+ * @param index\r
+ *\r
+ * @return vdm_link*\r
  */\r
 static vdm_link *find_post_link(int index)\r
 {\r
@@ -222,12 +223,12 @@ static vdm_link *find_post_link(int index)
 \r
 /**\r
  * find free link from vpu_mem's vdm_free list\r
- * \r
+ *\r
  * @author Administrator (2011-4-19)\r
- * \r
- * @param index \r
- * \r
- * @return vdm_link* \r
+ *\r
+ * @param index\r
+ *\r
+ * @return vdm_link*\r
  */\r
 static vdm_link *find_free_link(int index)\r
 {\r
@@ -243,12 +244,12 @@ static vdm_link *find_free_link(int index)
 }\r
 /**\r
  * insert a region into the index list for search\r
- * \r
+ *\r
  * @author ChenHengming (2011-4-18)\r
- * \r
- * @param region \r
- * \r
- * @return int \r
+ *\r
+ * @param region\r
+ *\r
+ * @return int\r
  */\r
 static int _insert_region_index(vdm_region *region)\r
 {\r
@@ -281,10 +282,10 @@ static int _insert_region_index(vdm_region *region)
 \r
 /**\r
  * insert a link into vdm_free list, indexed by vdm_link->index\r
- * \r
+ *\r
  * @author ChenHengming (2011-4-20)\r
- * \r
- * @param link \r
+ *\r
+ * @param link\r
  */\r
 static void _insert_link_status_free(vdm_link *link)\r
 {\r
@@ -498,15 +499,15 @@ static void put_post_link(vdm_link *link, vdm_session *session)
 }\r
 \r
 /**\r
- * Create a link and a region by index and pfn at a same time, \r
- * and connect the link with the region \r
- * \r
+ * Create a link and a region by index and pfn at a same time,\r
+ * and connect the link with the region\r
+ *\r
  * @author ChenHengming (2011-4-20)\r
- * \r
- * @param index \r
- * @param pfn \r
- * \r
- * @return vdm_link* \r
+ *\r
+ * @param index\r
+ * @param pfn\r
+ *\r
+ * @return vdm_link*\r
  */\r
 static vdm_link *new_link_by_index(int index, int pfn)\r
 {\r
@@ -543,14 +544,14 @@ static vdm_link *new_link_by_index(int index, int pfn)
 }\r
 \r
 /**\r
- * Create a link from a already exist region and connect to the \r
- * region \r
- * \r
+ * Create a link from a already exist region and connect to the\r
+ * region\r
+ *\r
  * @author ChenHengming (2011-4-20)\r
- * \r
- * @param region \r
- * \r
- * @return vdm_link* \r
+ *\r
+ * @param region\r
+ *\r
+ * @return vdm_link*\r
  */\r
 static vdm_link *new_link_by_region(vdm_region *region)\r
 {\r
@@ -573,10 +574,10 @@ static vdm_link *new_link_by_region(vdm_region *region)
 \r
 /**\r
  * Delete a link completely\r
- * \r
+ *\r
  * @author ChenHengming (2011-4-20)\r
- * \r
- * @param link \r
+ *\r
+ * @param link\r
  */\r
 static void link_del(vdm_link *link)\r
 {\r
@@ -586,16 +587,16 @@ static void link_del(vdm_link *link)
 }\r
 \r
 /**\r
- * Called by malloc, check whether a free link can by used for a \r
- * len of pfn, if can then put a used link to status link \r
- * \r
+ * Called by malloc, check whether a free link can by used for a\r
+ * len of pfn, if can then put a used link to status link\r
+ *\r
  * @author ChenHengming (2011-4-20)\r
- * \r
- * @param link \r
- * @param session \r
- * @param pfn \r
- * \r
- * @return vdm_link* \r
+ *\r
+ * @param link\r
+ * @param session\r
+ * @param pfn\r
+ *\r
+ * @return vdm_link*\r
  */\r
 static vdm_link *get_used_link_from_free_link(vdm_link *link, vdm_session *session, int pfn)\r
 {\r
@@ -872,7 +873,7 @@ static int vpu_mem_open(struct inode *inode, struct file *file)
 {\r
     vdm_session *session;\r
     int ret = 0;\r
-    \r
+\r
     DLOG("current %u file %p(%d)\n", current->pid, file, (int)file_count(file));\r
     /* setup file->private_data to indicate its unmapped */\r
     /*  you can only open a vpu_mem device one time */\r
@@ -886,9 +887,9 @@ static int vpu_mem_open(struct inode *inode, struct file *file)
     session->pid = current->pid;\r
     INIT_LIST_HEAD(&session->list_post);\r
     INIT_LIST_HEAD(&session->list_used);\r
-    \r
+\r
     file->private_data = session;\r
-    \r
+\r
     down_write(&vdm_rwsem);\r
     list_add_tail(&session->list_session, &vdm_proc);\r
     up_write(&vdm_rwsem);\r
@@ -982,7 +983,7 @@ static int vpu_mem_release(struct inode *inode, struct file *file)
 static long vpu_mem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)\r
 {\r
     long index, ret = 0;\r
-    \r
+\r
        switch (cmd) {\r
        case VPU_MEM_GET_PHYS:\r
                DLOG("get_phys\n");\r
@@ -1119,13 +1120,13 @@ int vpu_mem_setup(struct vpu_mem_platform_data *pdata)
     vpu_mem.dev.name = pdata->name;\r
     vpu_mem.dev.minor = MISC_DYNAMIC_MINOR;\r
     vpu_mem.dev.fops = &vpu_mem_fops;\r
-    \r
+\r
     err = misc_register(&vpu_mem.dev);\r
     if (err) {\r
         printk(KERN_ALERT "Unable to register vpu_mem driver!\n");\r
         goto err_cant_register_device;\r
     }\r
-    \r
+\r
     vpu_mem.num_entries = vpu_mem.size / VPU_MEM_MIN_ALLOC;\r
 \r
     tmp = new_link_by_index(0, vpu_mem.num_entries);\r
@@ -1144,10 +1145,10 @@ int vpu_mem_setup(struct vpu_mem_platform_data *pdata)
     #endif\r
     else\r
         vpu_mem.vbase = ioremap(vpu_mem.base, vpu_mem.size);\r
-    \r
+\r
     if (vpu_mem.vbase == 0)\r
         goto error_cant_remap;\r
-    \r
+\r
     #if VPU_MEM_DEBUG\r
     debugfs_create_file(pdata->name, S_IFREG | S_IRUGO, NULL, (void *)vpu_mem.dev.minor,\r
                         &debug_fops);\r
@@ -1263,7 +1264,7 @@ static int proc_vpu_mem_show(struct seq_file *s, void *v)
                     link->index, link->pfn, link->link_used, link->link_post);\r
             }\r
         }\r
-    \r
+\r
         // ´òÓ¡ vpu_mem_info ÖеÄÈ«²¿ session µÄ region Õ¼ÓÃÇé¿ö\r
         list_for_each_entry_safe(session, tmp_session, &vdm_proc, list_session) {\r
             seq_printf(s, "\npid: %d\n", session->pid);\r
index 1ccc145ddf9dd5d624ac31df8747799bb52e0484..374f9dac4e832594a25413f1b531d778364bda86 100644 (file)
@@ -1,6 +1,7 @@
 /* arch/arm/mach-rk29/vpu.c
  *
  * Copyright (C) 2010 ROCKCHIP, Inc.
+ * author: chenhengming chm@rock-chips.com
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and