]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/staging/epl/user/EplNmtu.h
Staging: epl: run Lindent on all user/*.h files
[linux-2.6-omap-h63xx.git] / drivers / staging / epl / user / EplNmtu.h
index 0ed7fffec0ed783224c6bc62d5aa3a0301650222..5a56c58306035ec4327ba999bad4ccdf803790d5 100644 (file)
@@ -66,7 +66,6 @@
 
   2006/06/09 k.t.:   start of the implementation
 
-
 ****************************************************************************/
 
 #include "../EplNmt.h"
 #ifndef _EPLNMTU_H_
 #define _EPLNMTU_H_
 
-
 //---------------------------------------------------------------------------
 // const defines
 //---------------------------------------------------------------------------
 
-
 //---------------------------------------------------------------------------
 // typedef
 //---------------------------------------------------------------------------
 // nmt commands
-typedef enum
-{
-    // requestable ASnd ServiceIds    0x01..0x1F
-    kEplNmtCmdIdentResponse             = 0x01,
-    kEplNmtCmdStatusResponse            = 0x02,
-    // plain NMT state commands       0x20..0x3F
-    kEplNmtCmdStartNode                 = 0x21,
-    kEplNmtCmdStopNode                  = 0x22,
-    kEplNmtCmdEnterPreOperational2      = 0x23,
-    kEplNmtCmdEnableReadyToOperate      = 0x24,
-    kEplNmtCmdResetNode                 = 0x28,
-    kEplNmtCmdResetCommunication        = 0x29,
-    kEplNmtCmdResetConfiguration        = 0x2A,
-    kEplNmtCmdSwReset                   = 0x2B,
-    // extended NMT state commands    0x40..0x5F
-    kEplNmtCmdStartNodeEx               = 0x41,
-    kEplNmtCmdStopNodeEx                = 0x42,
-    kEplNmtCmdEnterPreOperational2Ex    = 0x43,
-    kEplNmtCmdEnableReadyToOperateEx    = 0x44,
-    kEplNmtCmdResetNodeEx               = 0x48,
-    kEplNmtCmdResetCommunicationEx      = 0x49,
-    kEplNmtCmdResetConfigurationEx      = 0x4A,
-    kEplNmtCmdSwResetEx                 = 0x4B,
-    // NMT managing commands          0x60..0x7F
-    kEplNmtCmdNetHostNameSet            = 0x62,
-    kEplNmtCmdFlushArpEntry             = 0x63,
-    // NMT info services              0x80..0xBF
-    kEplNmtCmdPublishConfiguredCN       = 0x80,
-    kEplNmtCmdPublishActiveCN           = 0x90,
-    kEplNmtCmdPublishPreOperational1    = 0x91,
-    kEplNmtCmdPublishPreOperational2    = 0x92,
-    kEplNmtCmdPublishReadyToOperate     = 0x93,
-    kEplNmtCmdPublishOperational        = 0x94,
-    kEplNmtCmdPublishStopped            = 0x95,
-    kEplNmtCmdPublishEmergencyNew       = 0xA0,
-    kEplNmtCmdPublishTime               = 0xB0,
-
-    kEplNmtCmdInvalidService            = 0xFF
-
+typedef enum {
+       // requestable ASnd ServiceIds    0x01..0x1F
+       kEplNmtCmdIdentResponse = 0x01,
+       kEplNmtCmdStatusResponse = 0x02,
+       // plain NMT state commands       0x20..0x3F
+       kEplNmtCmdStartNode = 0x21,
+       kEplNmtCmdStopNode = 0x22,
+       kEplNmtCmdEnterPreOperational2 = 0x23,
+       kEplNmtCmdEnableReadyToOperate = 0x24,
+       kEplNmtCmdResetNode = 0x28,
+       kEplNmtCmdResetCommunication = 0x29,
+       kEplNmtCmdResetConfiguration = 0x2A,
+       kEplNmtCmdSwReset = 0x2B,
+       // extended NMT state commands    0x40..0x5F
+       kEplNmtCmdStartNodeEx = 0x41,
+       kEplNmtCmdStopNodeEx = 0x42,
+       kEplNmtCmdEnterPreOperational2Ex = 0x43,
+       kEplNmtCmdEnableReadyToOperateEx = 0x44,
+       kEplNmtCmdResetNodeEx = 0x48,
+       kEplNmtCmdResetCommunicationEx = 0x49,
+       kEplNmtCmdResetConfigurationEx = 0x4A,
+       kEplNmtCmdSwResetEx = 0x4B,
+       // NMT managing commands          0x60..0x7F
+       kEplNmtCmdNetHostNameSet = 0x62,
+       kEplNmtCmdFlushArpEntry = 0x63,
+       // NMT info services              0x80..0xBF
+       kEplNmtCmdPublishConfiguredCN = 0x80,
+       kEplNmtCmdPublishActiveCN = 0x90,
+       kEplNmtCmdPublishPreOperational1 = 0x91,
+       kEplNmtCmdPublishPreOperational2 = 0x92,
+       kEplNmtCmdPublishReadyToOperate = 0x93,
+       kEplNmtCmdPublishOperational = 0x94,
+       kEplNmtCmdPublishStopped = 0x95,
+       kEplNmtCmdPublishEmergencyNew = 0xA0,
+       kEplNmtCmdPublishTime = 0xB0,
+
+       kEplNmtCmdInvalidService = 0xFF
 } tEplNmtCommand;
 
-typedef tEplKernel (PUBLIC * tEplNmtuStateChangeCallback) (
-    tEplEventNmtStateChange  NmtStateChange_p);
+typedef tEplKernel(PUBLIC *
+                  tEplNmtuStateChangeCallback) (tEplEventNmtStateChange
+                                                NmtStateChange_p);
 
-typedef tEplKernel (PUBLIC * tEplNmtuCheckEventCallback) (
-    tEplNmtEvent  NmtEvent_p);
+typedef tEplKernel(PUBLIC *
+                  tEplNmtuCheckEventCallback) (tEplNmtEvent NmtEvent_p);
 
 //---------------------------------------------------------------------------
 // function prototypes
@@ -148,14 +144,12 @@ EPLDLLEXPORT tEplKernel PUBLIC EplNmtuNmtEvent(tEplNmtEvent NmtEvent_p);
 
 EPLDLLEXPORT tEplNmtState PUBLIC EplNmtuGetNmtState(void);
 
-EPLDLLEXPORT tEplKernel PUBLIC EplNmtuProcessEvent(
-                                tEplEvent* pEplEvent_p);
+EPLDLLEXPORT tEplKernel PUBLIC EplNmtuProcessEvent(tEplEvent * pEplEvent_p);
 
-EPLDLLEXPORT tEplKernel PUBLIC EplNmtuRegisterStateChangeCb(
-                tEplNmtuStateChangeCallback pfnEplNmtStateChangeCb_p);
+EPLDLLEXPORT tEplKernel PUBLIC
+EplNmtuRegisterStateChangeCb(tEplNmtuStateChangeCallback
+                            pfnEplNmtStateChangeCb_p);
 
 #endif // #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMTU)) != 0)
 
-#endif  // #ifndef _EPLNMTU_H_
-
-
+#endif // #ifndef _EPLNMTU_H_