提交 833dfbe7 编写于 作者: G Greg Kroah-Hartman

Staging: epl: run Lindent on *.c files

It's a start, still a mess...

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e0ca0595
此差异已折叠。
此差异已折叠。
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#endif #endif
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* */ /* */
...@@ -100,7 +99,6 @@ ...@@ -100,7 +99,6 @@
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* */ /* */
...@@ -114,7 +112,6 @@ ...@@ -114,7 +112,6 @@
// //
/***************************************************************************/ /***************************************************************************/
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E D E F I N I T I O N S // // P R I V A T E D E F I N I T I O N S //
...@@ -130,36 +127,33 @@ ...@@ -130,36 +127,33 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0)) #if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
typedef struct typedef struct {
{ #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0 BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN];
BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN]; #endif
#endif #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 BYTE m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT];
BYTE m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT]; #endif
#endif
} tEplApiProcessImageInstance; } tEplApiProcessImageInstance;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// local vars // local vars
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static tEplApiProcessImageInstance EplApiProcessImageInstance_g; static tEplApiProcessImageInstance EplApiProcessImageInstance_g;
#endif #endif
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//=========================================================================// //=========================================================================//
// // // //
// P U B L I C F U N C T I O N S // // P U B L I C F U N C T I O N S //
// // // //
//=========================================================================// //=========================================================================//
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Function: EplApiProcessImageSetup() // Function: EplApiProcessImageSetup()
...@@ -177,125 +171,101 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g; ...@@ -177,125 +171,101 @@ static tEplApiProcessImageInstance EplApiProcessImageInstance_g;
tEplKernel PUBLIC EplApiProcessImageSetup(void) tEplKernel PUBLIC EplApiProcessImageSetup(void)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0)) #if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
unsigned int uiVarEntries; unsigned int uiVarEntries;
tEplObdSize ObdSize; tEplObdSize ObdSize;
#endif #endif
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0 #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
ObdSize = 1; ObdSize = 1;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2000,
0x2000, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageInput, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&uiVarEntries, 1);
&ObdSize,
1); uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN;
ObdSize = 1;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN; Ret = EplApiLinkObject(0x2001,
ObdSize = 1; EplApiProcessImageInstance_g.
Ret = EplApiLinkObject( m_abProcessImageInput, &uiVarEntries, &ObdSize,
0x2001, 1);
EplApiProcessImageInstance_g.m_abProcessImageInput,
&uiVarEntries, ObdSize = 2;
&ObdSize, uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
1); Ret = EplApiLinkObject(0x2010,
EplApiProcessImageInstance_g.
ObdSize = 2; m_abProcessImageInput, &uiVarEntries, &ObdSize,
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; 1);
Ret = EplApiLinkObject(
0x2010, ObdSize = 2;
EplApiProcessImageInstance_g.m_abProcessImageInput, uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
&uiVarEntries, Ret = EplApiLinkObject(0x2011,
&ObdSize, EplApiProcessImageInstance_g.
1); m_abProcessImageInput, &uiVarEntries, &ObdSize,
1);
ObdSize = 2;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; ObdSize = 4;
Ret = EplApiLinkObject( uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
0x2011, Ret = EplApiLinkObject(0x2020,
EplApiProcessImageInstance_g.m_abProcessImageInput, EplApiProcessImageInstance_g.
&uiVarEntries, m_abProcessImageInput, &uiVarEntries, &ObdSize,
&ObdSize, 1);
1);
ObdSize = 4;
ObdSize = 4; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize; Ret = EplApiLinkObject(0x2021,
Ret = EplApiLinkObject( EplApiProcessImageInstance_g.
0x2020, m_abProcessImageInput, &uiVarEntries, &ObdSize,
EplApiProcessImageInstance_g.m_abProcessImageInput, 1);
&uiVarEntries,
&ObdSize,
1);
ObdSize = 4;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_IN / ObdSize;
Ret = EplApiLinkObject(
0x2021,
EplApiProcessImageInstance_g.m_abProcessImageInput,
&uiVarEntries,
&ObdSize,
1);
#endif #endif
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
ObdSize = 1; ObdSize = 1;
Ret = EplApiLinkObject( Ret = EplApiLinkObject(0x2030,
0x2030, EplApiProcessImageInstance_g.
EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&uiVarEntries, 1);
&ObdSize,
1); uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT;
ObdSize = 1;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT; Ret = EplApiLinkObject(0x2031,
ObdSize = 1; EplApiProcessImageInstance_g.
Ret = EplApiLinkObject( m_abProcessImageOutput, &uiVarEntries, &ObdSize,
0x2031, 1);
EplApiProcessImageInstance_g.m_abProcessImageOutput,
&uiVarEntries, ObdSize = 2;
&ObdSize, uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
1); Ret = EplApiLinkObject(0x2040,
EplApiProcessImageInstance_g.
ObdSize = 2; m_abProcessImageOutput, &uiVarEntries, &ObdSize,
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; 1);
Ret = EplApiLinkObject(
0x2040, ObdSize = 2;
EplApiProcessImageInstance_g.m_abProcessImageOutput, uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
&uiVarEntries, Ret = EplApiLinkObject(0x2041,
&ObdSize, EplApiProcessImageInstance_g.
1); m_abProcessImageOutput, &uiVarEntries, &ObdSize,
1);
ObdSize = 2;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; ObdSize = 4;
Ret = EplApiLinkObject( uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
0x2041, Ret = EplApiLinkObject(0x2050,
EplApiProcessImageInstance_g.m_abProcessImageOutput, EplApiProcessImageInstance_g.
&uiVarEntries, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
&ObdSize, 1);
1);
ObdSize = 4;
ObdSize = 4; uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize; Ret = EplApiLinkObject(0x2051,
Ret = EplApiLinkObject( EplApiProcessImageInstance_g.
0x2050, m_abProcessImageOutput, &uiVarEntries, &ObdSize,
EplApiProcessImageInstance_g.m_abProcessImageOutput, 1);
&uiVarEntries,
&ObdSize,
1);
ObdSize = 4;
uiVarEntries = EPL_API_PROCESS_IMAGE_SIZE_OUT / ObdSize;
Ret = EplApiLinkObject(
0x2051,
EplApiProcessImageInstance_g.m_abProcessImageOutput,
&uiVarEntries,
&ObdSize,
1);
#endif #endif
return Ret; return Ret;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
...@@ -310,26 +280,29 @@ tEplObdSize ObdSize; ...@@ -310,26 +280,29 @@ tEplObdSize ObdSize;
// State: // State:
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
tEplKernel PUBLIC EplApiProcessImageExchangeIn(tEplApiProcessImage* pPI_p) tEplKernel PUBLIC EplApiProcessImageExchangeIn(tEplApiProcessImage * pPI_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0 #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__) #if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
copy_to_user(pPI_p->m_pImage, copy_to_user(pPI_p->m_pImage,
EplApiProcessImageInstance_g.m_abProcessImageInput, EplApiProcessImageInstance_g.m_abProcessImageInput,
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageInput))); min(pPI_p->m_uiSize,
#else sizeof(EplApiProcessImageInstance_g.
EPL_MEMCPY(pPI_p->m_pImage, m_abProcessImageInput)));
EplApiProcessImageInstance_g.m_abProcessImageInput, #else
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageInput))); EPL_MEMCPY(pPI_p->m_pImage,
#endif EplApiProcessImageInstance_g.m_abProcessImageInput,
min(pPI_p->m_uiSize,
sizeof(EplApiProcessImageInstance_g.
m_abProcessImageInput)));
#endif
#endif #endif
return Ret; return Ret;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Function: EplApiProcessImageExchangeOut() // Function: EplApiProcessImageExchangeOut()
// //
...@@ -342,33 +315,33 @@ tEplKernel Ret = kEplSuccessful; ...@@ -342,33 +315,33 @@ tEplKernel Ret = kEplSuccessful;
// State: // State:
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
tEplKernel PUBLIC EplApiProcessImageExchangeOut(tEplApiProcessImage* pPI_p) tEplKernel PUBLIC EplApiProcessImageExchangeOut(tEplApiProcessImage * pPI_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
#if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__) #if (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__)
copy_from_user(EplApiProcessImageInstance_g.m_abProcessImageOutput, copy_from_user(EplApiProcessImageInstance_g.m_abProcessImageOutput,
pPI_p->m_pImage, pPI_p->m_pImage,
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageOutput))); min(pPI_p->m_uiSize,
#else sizeof(EplApiProcessImageInstance_g.
EPL_MEMCPY(EplApiProcessImageInstance_g.m_abProcessImageOutput, m_abProcessImageOutput)));
pPI_p->m_pImage, #else
min(pPI_p->m_uiSize, sizeof (EplApiProcessImageInstance_g.m_abProcessImageOutput))); EPL_MEMCPY(EplApiProcessImageInstance_g.m_abProcessImageOutput,
#endif pPI_p->m_pImage,
min(pPI_p->m_uiSize,
sizeof(EplApiProcessImageInstance_g.
m_abProcessImageOutput)));
#endif
#endif #endif
return Ret; return Ret;
} }
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E F U N C T I O N S // // P R I V A T E F U N C T I O N S //
// // // //
//=========================================================================// //=========================================================================//
// EOF // EOF
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -96,9 +96,6 @@ ...@@ -96,9 +96,6 @@
// local function prototypes // local function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//=========================================================================// //=========================================================================//
// // // //
// P U B L I C F U N C T I O N S // // P U B L I C F U N C T I O N S //
...@@ -123,7 +120,6 @@ ...@@ -123,7 +120,6 @@
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//=========================================================================// //=========================================================================//
// // // //
// P R I V A T E F U N C T I O N S // // P R I V A T E F U N C T I O N S //
...@@ -148,7 +144,4 @@ ...@@ -148,7 +144,4 @@
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// EOF // EOF
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册