@ -5,10 +5,10 @@
#define DSL_INTERN
#define DSL_INTERN
+#include <linux/kthread.h>
+#include <linux/kthread.h>
#include <linux/device.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
@@ -40,7 +41,7 @@ static DSL_ssize_t DSL_DRV_Write(DSL_DRV
#include "drv_dsl_cpe_api.h"
@@ -39,7 +40,7 @@ static DSL_ssize_t DSL_DRV_Write(DSL_DRV
static DSL_int_t DSL_DRV_Ioctls(DSL_DRV_inode_t * pINode, DSL_DRV_file_t * pFile,
static DSL_int_t DSL_DRV_Ioctls(DSL_DRV_inode_t * pINode, DSL_DRV_file_t * pFile,
DSL_uint_t nCommand, unsigned long nArg);
DSL_uint_t nCommand, unsigned long nArg);
#else
#else
@ -17,7 +17,7 @@
DSL_uint_t nCommand, unsigned long nArg);
DSL_uint_t nCommand, unsigned long nArg);
#endif
#endif
static int DSL_DRV_Open(DSL_DRV_inode_t * ino, DSL_DRV_file_t * fil);
static int DSL_DRV_Open(DSL_DRV_inode_t * ino, DSL_DRV_file_t * fil);
@@ -18 4,7 +185 ,7 @@ static DSL_int_t DSL_DRV_Ioctls(DSL_DRV_
@@ -18 3,7 +184 ,7 @@ static DSL_int_t DSL_DRV_Ioctls(DSL_DRV_
DSL_uint_t nCommand,
DSL_uint_t nCommand,
unsigned long nArg)
unsigned long nArg)
#else
#else
@ -26,7 +26,7 @@
DSL_DRV_file_t * pFile,
DSL_DRV_file_t * pFile,
DSL_uint_t nCommand,
DSL_uint_t nCommand,
unsigned long nArg)
unsigned long nArg)
@@ -52 1,9 +522 ,9 @@ DSL_void_t* DSL_IoctlMemCpyTo(
@@ -52 0,9 +521 ,9 @@ DSL_void_t* DSL_IoctlMemCpyTo(
- IFX_SUCCESS on success
- IFX_SUCCESS on success
- IFX_ERROR on error
- IFX_ERROR on error
*/
*/
@ -38,7 +38,7 @@
DSL_int32_t retVal = -1;
DSL_int32_t retVal = -1;
#ifndef _lint
#ifndef _lint
@@ -54 6,30 +547 ,6 @@ DSL_DRV_STATIC DSL_int32_t DSL_DRV_Kerne
@@ -54 5,30 +546 ,6 @@ DSL_DRV_STATIC DSL_int32_t DSL_DRV_Kerne
(DSL_NULL, "ENTER - Kernel Thread Startup <%s>" DSL_DRV_CRLF,
(DSL_NULL, "ENTER - Kernel Thread Startup <%s>" DSL_DRV_CRLF,
pThrCntrl->thrParams.pName));
pThrCntrl->thrParams.pName));
@ -69,7 +69,7 @@
/*DSL_DRV_ThreadPriorityModify(pThrCntrl->nPriority);*/
/*DSL_DRV_ThreadPriorityModify(pThrCntrl->nPriority);*/
pThrCntrl->thrParams.bRunning = 1;
pThrCntrl->thrParams.bRunning = 1;
@@ -63 9,9 +616 ,7 @@ DSL_int32_t DSL_DRV_ThreadInit(
@@ -63 8,9 +615 ,7 @@ DSL_int32_t DSL_DRV_ThreadInit(
init_completion(&pThrCntrl->thrCompletion);
init_completion(&pThrCntrl->thrCompletion);
/* start kernel thread via the wrapper function */
/* start kernel thread via the wrapper function */
@ -80,7 +80,7 @@
pThrCntrl->bValid = DSL_TRUE;
pThrCntrl->bValid = DSL_TRUE;
@@ -10 64,12 +1039 ,12 @@ static void DSL_DRV_DebugInit(void)
@@ -10 70,12 +1045 ,12 @@ static void DSL_DRV_DebugInit(void)
#endif
#endif
/* Entry point of driver */
/* Entry point of driver */
@ -95,7 +95,7 @@
&(dsl_cpe_api_version[4]));
&(dsl_cpe_api_version[4]));
DSL_DRV_MemSet( ifxDevices, 0, sizeof(DSL_devCtx_t) * DSL_DRV_MAX_DEVICE_NUMBER );
DSL_DRV_MemSet( ifxDevices, 0, sizeof(DSL_devCtx_t) * DSL_DRV_MAX_DEVICE_NUMBER );
@@ -11 18,7 +1093 ,7 @@ static int __devinit ltq_adsl_probe(stru
@@ -11 24,7 +1099 ,7 @@ static int __devinit ltq_adsl_probe(stru
return 0;
return 0;
}
}
@ -104,7 +104,7 @@
{
{
printk("Module will be unloaded"DSL_DRV_CRLF);
printk("Module will be unloaded"DSL_DRV_CRLF);
@@ -116 3,7 +1138 ,7 @@ MODULE_DEVICE_TABLE(of, ltq_adsl_match);
@@ -116 9,7 +1144 ,7 @@ MODULE_DEVICE_TABLE(of, ltq_adsl_match);
static struct platform_driver ltq_adsl_driver = {
static struct platform_driver ltq_adsl_driver = {
.probe = ltq_adsl_probe,
.probe = ltq_adsl_probe,