Permalink
Browse files

[TOP] Moved vmm_list.h and vmm_bitmap.h to libs/common/ as list.h and…

… bitmap.h

Signed-off-by: Anup Patel <anup@brainfault.org>
  • Loading branch information...
1 parent f9527a8 commit 144fff13ac0aab0e638605404c503607a1536582 @avpatel avpatel committed May 3, 2012
View
@@ -94,7 +94,7 @@ P: Himanshu Chauhan
M: hschauhan@nulltrace.org
S: Maintained
L: xvisor-devel@googlegroups.com
-F: core/include/vmm_list.h
+F: libs/common/list.h
MANAGMENT TERMINAL DAEMON
P: Himanshu Chauhan
@@ -24,7 +24,7 @@
#define _CPU_MMU_H__
#include <vmm_types.h>
-#include <vmm_list.h>
+#include <list.h>
/* Generic CPU page having superset of page
* attributes required by all ARM family
@@ -24,7 +24,7 @@
#define _CPU_MMU_H__
#include <vmm_types.h>
-#include <vmm_list.h>
+#include <list.h>
/** LPAE page/block */
struct cpu_page {
@@ -22,7 +22,6 @@
*/
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_heap.h>
#include <vmm_string.h>
#include <vmm_stdio.h>
@@ -21,8 +21,8 @@
* @brief source file for buddy heap allocator
*/
+#include <list.h>
#include <vmm_string.h>
-#include <vmm_list.h>
#include <vmm_stdio.h>
#include <vmm_error.h>
#include <vmm_heap.h>
@@ -23,8 +23,8 @@
#ifndef _VMM_CLOCKCHIP_H__
#define _VMM_CLOCKCHIP_H__
+#include <list.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#include <vmm_math.h>
#include <arch_regs.h>
@@ -23,8 +23,8 @@
#ifndef _VMM_CLOCKSOURCE_H__
#define _VMM_CLOCKSOURCE_H__
+#include <list.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#include <vmm_math.h>
struct vmm_clocksource;
@@ -23,8 +23,8 @@
#ifndef _VMM_CMDMGR_H__
#define _VMM_CMDMGR_H__
+#include <list.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#include <vmm_chardev.h>
typedef void (*vmm_cmd_usage_t) (struct vmm_chardev *);
@@ -24,8 +24,8 @@
#ifndef __VMM_DEVDRV_H_
#define __VMM_DEVDRV_H_
+#include <list.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#include <vmm_devtree.h>
#include <vmm_spinlocks.h>
@@ -23,8 +23,8 @@
#ifndef __VMM_DEVTREE_H_
#define __VMM_DEVTREE_H_
+#include <list.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#define VMM_DEVTREE_PATH_SEPARATOR '/'
#define VMM_DEVTREE_PATH_SEPARATOR_STRING "/"
@@ -23,7 +23,6 @@
#ifndef _VMM_GUEST_ASPACE_H__
#define _VMM_GUEST_ASPACE_H__
-#include <vmm_list.h>
#include <vmm_manager.h>
/** Find region corresponding to a guest physical address and also
@@ -23,9 +23,9 @@
#ifndef _VMM_HOST_IRQ_H__
#define _VMM_HOST_IRQ_H__
-#include <vmm_types.h>
-#include <vmm_list.h>
+#include <list.h>
#include <arch_regs.h>
+#include <vmm_types.h>
/**
* enum vmm_irq_return
@@ -23,9 +23,9 @@
#ifndef _VMM_MANAGER_H__
#define _VMM_MANAGER_H__
+#include <list.h>
#include <arch_regs.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#include <vmm_spinlocks.h>
#include <vmm_devtree.h>
@@ -23,10 +23,10 @@
#ifndef _VMM_TIMER_H__
#define _VMM_TIMER_H__
+#include <list.h>
#include <arch_regs.h>
#include <vmm_types.h>
#include <vmm_math.h>
-#include <vmm_list.h>
#include <vmm_spinlocks.h>
struct vmm_timer_event;
@@ -23,8 +23,8 @@
#ifndef _VMM_VSERIAL_H__
#define _VMM_VSERIAL_H__
+#include <list.h>
#include <vmm_types.h>
-#include <vmm_list.h>
#include <vmm_ringbuf.h>
struct vmm_vserial_receiver;
@@ -24,7 +24,7 @@
#ifndef __VMM_WAITQUEUE_H__
#define __VMM_WAITQUEUE_H__
-#include <vmm_list.h>
+#include <list.h>
#include <vmm_spinlocks.h>
#include <vmm_manager.h>
@@ -24,7 +24,7 @@
#ifndef __VMM_WORKQUEUE_H__
#define __VMM_WORKQUEUE_H__
-#include <vmm_list.h>
+#include <list.h>
#include <vmm_spinlocks.h>
#include <vmm_threads.h>
@@ -23,7 +23,6 @@
*/
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_heap.h>
#include <vmm_string.h>
#include <vmm_stdio.h>
@@ -22,7 +22,6 @@
*/
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_heap.h>
#include <vmm_string.h>
#include <vmm_stdio.h>
@@ -21,8 +21,8 @@
* @brief Real-Time Clock Device framework source
*/
+#include <list.h>
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_string.h>
#include <vmm_heap.h>
#include <vmm_stdio.h>
@@ -21,8 +21,8 @@
* @brief implementation of priority round-robin scheduling algorithm
*/
+#include <list.h>
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_heap.h>
#include <vmm_schedalgo.h>
@@ -21,8 +21,8 @@
* @brief implementation of round-robin scheduling algorithm
*/
+#include <list.h>
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_heap.h>
#include <vmm_schedalgo.h>
View
@@ -22,7 +22,6 @@
*/
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_string.h>
#include <vmm_heap.h>
#include <vmm_scheduler.h>
@@ -22,7 +22,6 @@
*/
#include <vmm_error.h>
-#include <vmm_list.h>
#include <vmm_heap.h>
#include <vmm_string.h>
#include <vmm_devtree.h>
@@ -26,8 +26,6 @@
#include <arch_board.h>
#include <arch_sections.h>
#include <vmm_error.h>
-#include <vmm_math.h>
-#include <vmm_list.h>
#include <vmm_string.h>
#include <vmm_stdio.h>
#include <vmm_host_ram.h>
View
@@ -23,10 +23,9 @@
#include <arch_cpu.h>
#include <arch_board.h>
+#include <bitmap.h>
#include <vmm_error.h>
#include <vmm_math.h>
-#include <vmm_list.h>
-#include <vmm_bitmap.h>
#include <vmm_string.h>
#include <vmm_stdio.h>
#include <vmm_host_aspace.h>
@@ -21,10 +21,9 @@
* @brief Source file for virtual address pool management.
*/
+#include <bitmap.h>
#include <vmm_error.h>
#include <vmm_math.h>
-#include <vmm_list.h>
-#include <vmm_bitmap.h>
#include <vmm_string.h>
#include <vmm_host_aspace.h>
#include <vmm_host_vapool.h>
@@ -16,13 +16,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * @file vmm_bitmap.h
+ * @file bitmap.h
* @author Anup Patel (anup@brainfault.org)
* @brief Abstraction and functions for bitmap handling.
*/
-#ifndef __VMM_BITMAP_H__
-#define __VMM_BITMAP_H__
+#ifndef __BITMAP_H__
+#define __BITMAP_H__
#include <vmm_types.h>
#include <vmm_macros.h>
@@ -88,4 +88,4 @@ static inline u32 bitmap_clearcount(u32 *bmap, u32 nbits)
return ret;
}
-#endif /* __VMM_BITMAP_H__ */
+#endif /* __BITMAP_H__ */
@@ -16,13 +16,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * @file vmm_list.h
+ * @file list.h
* @author Himanshu Chauhan (hschauhan@nulltrace.org)
* @brief Abstraction and functions for common list handling.
*/
-#ifndef __VMM_LIST_H__
-#define __VMM_LIST_H__
+#ifndef __LIST_H__
+#define __LIST_H__
#include <vmm_macros.h>
@@ -118,4 +118,4 @@ static inline int list_empty(struct dlist *head)
return (head->next == head);
}
-#endif /* __VMM_LIST_H__ */
+#endif /* __LIST_H__ */
@@ -0,0 +1,25 @@
+#/**
+# Copyright (c) 2012 Anup Patel.
+# All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# @file objects.mk
+# @author Anup Patel (anup@brainfault.org)
+# @brief list of common objects to be build
+# */
+
+libs-cppflags-y+= -I$(libs_dir)/common
+

0 comments on commit 144fff1

Please sign in to comment.