2016-03-18 05:21:45 +08:00
|
|
|
#ifndef _KERNEL_H
|
|
|
|
#define _KERNEL_H
|
|
|
|
|
2016-12-17 04:11:05 +08:00
|
|
|
#include "../../include/linux/kernel.h"
|
2016-03-18 05:21:45 +08:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <limits.h>
|
|
|
|
|
2016-12-17 00:52:43 +08:00
|
|
|
#include <linux/compiler.h>
|
|
|
|
#include <linux/err.h>
|
|
|
|
#include <linux/bitops.h>
|
|
|
|
#include <linux/log2.h>
|
2016-05-21 08:02:26 +08:00
|
|
|
#include "../../../include/linux/kconfig.h"
|
2016-05-21 08:01:39 +08:00
|
|
|
|
2016-03-18 05:21:45 +08:00
|
|
|
#define printk printf
|
2016-05-21 08:01:36 +08:00
|
|
|
#define pr_debug printk
|
2016-12-20 23:27:56 +08:00
|
|
|
#define pr_cont printk
|
2016-05-21 08:01:36 +08:00
|
|
|
|
2016-03-18 05:21:45 +08:00
|
|
|
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
|
|
|
|
|
|
|
#endif /* _KERNEL_H */
|