Commit 25f3f66d authored by Jack Lange's avatar Jack Lange

start porting effort

parent e3191533
......@@ -12,19 +12,13 @@
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/list.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#define DEV_FILENAME "vos"
#define VOS_LAUNCH 100
struct host_iommu_domain;
uintptr_t vos_alloc_pages(gfp_t gfp_mask, u32 order);
void vos_free_pages(uintptr_t addr, u32 order);
......@@ -36,22 +30,22 @@ void vos_kfree(void * ptr);
// The following macros are for printing in the linux module
#define vos_lnx_printk(fmt, args...) \
do { \
printk("VOS-lnx>: " fmt, ##args); \
printk("Covirt-lnx>: " fmt, ##args); \
} while (0)
#define ERROR(fmt, args...) \
do { \
printk(KERN_ERR "VOS-lnx> %s(%d): " fmt, __FILE__, __LINE__, ##args); \
printk(KERN_ERR "Covirt-lnx> %s(%d): " fmt, __FILE__, __LINE__, ##args); \
} while (0)
#define WARNING(fmt, args...) \
do { \
printk(KERN_WARNING "VOS-lnx>: " fmt, ##args); \
printk(KERN_WARNING "Covirt-lnx>: " fmt, ##args); \
} while (0)
#define DEBUG(fmt, args...) \
do { \
printk(KERN_DEBUG "VOS-lnx>: " fmt, ##args); \
printk(KERN_DEBUG "Covirt-lnx>: " fmt, ##args); \
} while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment