50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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 version 2
|
|
* as published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <asm/uaccess.h>
|
|
|
|
#include <linux/dsms.h>
|
|
#include <linux/init.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/kmod.h>
|
|
#include <linux/module.h>
|
|
#include <linux/proc_fs.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/stddef.h>
|
|
#include <linux/string.h>
|
|
|
|
#include "dsms_debug.h"
|
|
#include "dsms_init.h"
|
|
|
|
static int is_dsms_initialized_flag = false;
|
|
|
|
int dsms_is_initialized(void)
|
|
{
|
|
return is_dsms_initialized_flag;
|
|
}
|
|
|
|
static __init int dsms_init(void)
|
|
{
|
|
printk(DSMS_TAG "Started"
|
|
#ifdef DSMS_DEBUG_ENABLE
|
|
" (DSMS_DEBUG_ENABLE"
|
|
#ifdef DSMS_DEBUG_TRACE_DSMS_CALLS
|
|
" DSMS_DEBUG_TRACE_DSMS_CALLS"
|
|
#endif //DSMS_DEBUG_TRACE_DSMS_CALLS
|
|
#ifdef DSMS_DEBUG_WHITELIST
|
|
" DSMS_DEBUG_WHITELIST"
|
|
#endif //DSMS_DEBUG_WHITELIST
|
|
")"
|
|
#endif //DSMS_DEBUG_ENABLE
|
|
".");
|
|
is_dsms_initialized_flag = true;
|
|
return 0;
|
|
}
|
|
|
|
module_init(dsms_init);
|