More work on TCP, Connection is successfully established, but problemw with ACKing...
[tpg/acess2.git] / Kernel / include / tpl_drv_common.h
index 31edb9c..f281c0e 100644 (file)
@@ -82,6 +82,19 @@ enum eTplDrv_IOCtl {
 //! These are the official lookup names of the core calls
 #define        DRV_IOCTLNAMES  "type", "ident", "version", "lookup"
 
+#define BASE_IOCTLS(_type, _ident, _version, _ioctls)  \
+       case DRV_IOCTL_TYPE:    LEAVE('i', (_type));    return (_type);\
+       case DRV_IOCTL_IDENT: {\
+               int tmp = ModUtil_SetIdent(Data, (_ident));\
+               LEAVE('i', tmp);        return tmp;\
+               }\
+       case DRV_IOCTL_VERSION: LEAVE('x', (_version)); return (_version);\
+       case DRV_IOCTL_LOOKUP:{\
+               int tmp = ModUtil_LookupString( (char**)(_ioctls), (char*)Data );\
+               LEAVE('i', tmp);\
+               return tmp;\
+               }
+
 /**
  * \enum eTplDrv_Type
  * \brief Driver Types returned by DRV_IOCTL_TYPE

UCC git Repository :: git.ucc.asn.au