]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/blobdiff - ti/runtime/netapi/netcp_cfg.h
Changing netapi_secGetChanCtxInfo API definition and implementation
[keystone-rtos/netapi.git] / ti / runtime / netapi / netcp_cfg.h
index a20df171a810b1041d4472513d9879b2db547c7f..87951ceaa2a422b2e2596cb86ccb3b3ce4c4810a 100755 (executable)
@@ -116,7 +116,7 @@ Cppi_HostDesc->origBuffPtr
  * @ingroup cfg_constants
  * @brief  This defines the handle to a NETCP configured Flow. A Flow is a set of pktlib heaps that h/w can use to obtain free packets.
  */
-typedef void* NETCP_CFG_FLOW_HANDLE_T;
+typedef NETCP_CFG_FLOW_T* NETCP_CFG_FLOW_HANDLE_T;
 
 /**
  * @ingroup cfg_constants
@@ -125,24 +125,16 @@ typedef void* NETCP_CFG_FLOW_HANDLE_T;
  * The default flow uses the default pktlib heap created by netapi_init; i.e.
  * NETCP will allocate descriptors and buffers for received packets from this heap.
  */
-#define NETCP_DEFAULT_FLOW  (NETCP_CFG_FLOW_HANDLE_T*) NULL
+#define NETCP_DEFAULT_FLOW  (NETCP_CFG_FLOW_HANDLE_T) NULL
 
 
-/**
- * @ingroup cfg_constants
- * @brief  Handle to a NETCP route.
- * @details Application to use this handle to identify a NETCP route. A NETCP route defines the
- *          pktio channel for packets received by NETCP
- *    and the flow to use.
- */
-typedef void* NETCP_CFG_ROUTE_HANDLE_T;
 
 /**
  * @def NETCP_DEFAULT_ROUTE
  * This defines the NETCP default route.  This route has NETCP send received packets to the default NETCP 
  * pktio channel using descriptors and buffers from the default flow. The default route is created by netapi_init
  */
-#define NETCP_DEFAULT_ROUTE (NETCP_CFG_ROUTE_HANDLE_T*) NULL
+#define NETCP_DEFAULT_ROUTE (NETCP_CFG_ROUTE_HANDLE_T) NULL
 
 
 /**
@@ -159,6 +151,19 @@ typedef struct NETCP_CFG_ROUTE_Tag
    PKTIO_HANDLE_T*   p_dest_q;   /**<NULL for default destination queue */
 } NETCP_CFG_ROUTE_T;
 
+
+/**
+ * @ingroup cfg_constants
+ * @brief  Handle to a NETCP route.
+ * @details Application to use this handle to identify a NETCP route. A NETCP route defines the
+ *          pktio channel for packets received by NETCP
+ *    and the flow to use.
+ */
+typedef NETCP_CFG_ROUTE_T* NETCP_CFG_ROUTE_HANDLE_T;
+
+
+
+
 /**
  * @ingroup cfg_constants
  * @def NETCP_CFG_ACTION_DISCARD
@@ -185,7 +190,11 @@ typedef struct NETCP_CFG_ROUTE_Tag
  */
 #define NETCP_CFG_ALL_EXCEPTIONS 0xff
 
-
+/**
+ * @ingroup cfg_constants
+ * @brief General APP_ID Type definition.
+ */
+typedef uint32_t NETCP_CFG_APP_ID_T;
 
 
 /**
@@ -195,6 +204,20 @@ typedef struct NETCP_CFG_ROUTE_Tag
  */
 typedef void * NETCP_CFG_VLAN_T;
 
+/**
+ * @ingroup cfg_constants
+ * @brief  NETCP PA LLD handle associated with an SA
+ * @details Application to use this handle to identify a PA PLLD handle associated with an SA.
+ */
+typedef void * NETCP_CFG_PA_HANDLE_T;
+
+/**
+ * @ingroup cfg_constants
+ * @brief  NETCP SA LLD handle associated with an SA
+ * @details Application to use this handle to identify a SA LLD handle associated with an SA.
+ */
+typedef void * NETCP_CFG_SA_HANDLE_T;
+
 /**
  * @ingroup cfg_constants
  * @brief  AppID for packets matching a  MAC interface rule
@@ -529,7 +552,7 @@ void netapi_netcpCfgDelIp(NETAPI_T          h,
  *  @brief netapi_netcpCfgCreateMacInterface  API to insert a MAC interface rule in the NETCP hardware
  *  lookup engines.
  * 
- *  @details This api is used to insert a MAC interfeace in the NETCP hardware lookup engines.
+ *  @details This api is used to insert a MAC interface in the NETCP hardware lookup engines.
  *      Once it is created, the MAC interface can be used to receive packets. The API
  *      adds a rule to the NETCP 1st level lookup tables to route all packets with destination
  *      MAC matching supplied argument and not matching any other lookup entry (see @ref netapi_netcpCfgAddIp) to