mirror of
https://github.com/plappermaul/realtek-doc.git
synced 2025-12-10 07:44:41 +01:00
62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2009-2016 Realtek Semiconductor Corp.
|
|
* All Rights Reserved.
|
|
*
|
|
* This program is the proprietary software of Realtek Semiconductor
|
|
* Corporation and/or its licensors, and only be used, duplicated,
|
|
* modified or distributed under the authorized license from Realtek.
|
|
*
|
|
* ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER
|
|
* THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
|
*
|
|
* $Revision: 71708 $
|
|
* $Date: 2016-09-19 11:31:17 +0800 (Mon, 19 Sep 2016) $
|
|
*
|
|
* Purpose : Definition of SDK test APIs in the SDK
|
|
*
|
|
* Feature : SDK test APIs
|
|
*
|
|
*/
|
|
|
|
#define EXPORT_SYMTAB 1
|
|
|
|
/*
|
|
* Include Files
|
|
*/
|
|
#include <linux/version.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <common/rt_autoconf.h>
|
|
#include <common/rt_error.h>
|
|
#include <osal/print.h>
|
|
#include <sdk/sdk_test.h>
|
|
#include <common/unittest_util.h>
|
|
|
|
/* we install our own startup routine which sets up threads */
|
|
static int __init sdktest_init(void)
|
|
{
|
|
#ifdef CONFIG_SDK_DRIVER_TEST_MODULE
|
|
osal_printf("Init SDKTEST Module....OK\n");
|
|
#endif
|
|
return RT_ERR_OK;
|
|
}
|
|
|
|
static void __exit sdktest_exit(void)
|
|
{
|
|
#ifdef CONFIG_SDK_DRIVER_TEST_MODULE
|
|
osal_printf("Exit SDKTEST Module....OK\n");
|
|
#endif
|
|
}
|
|
|
|
module_init(sdktest_init);
|
|
module_exit(sdktest_exit);
|
|
|
|
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19))
|
|
MODULE_LICENSE("GPL");
|
|
#endif
|
|
|
|
|
|
EXPORT_SYMBOL(sdktest_run);
|
|
EXPORT_SYMBOL(sdktest_run_id);
|
|
EXPORT_SYMBOL(sdktest_mode_get);
|
|
EXPORT_SYMBOL(sdktest_mode_set);
|