#ifndef __LPAL_DIRECTPATH #define __LPAL_DIRECTPATH #include /** * @file ppa_api.h * @brief This file contains the Litepath Directpath API's. */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** @defgroup LPAL_DIRECTPATH Directpath API's */ /** @{ */ /** * @brief API for WiFi Driver to register/deregister with Puma Litepath * * @param *subif Pointer to Network Device sub-interface * * @param *dev Pointer to Network Device * * @param *pDirectpathCb Pointer to Callback functions of the Network interface registered * * @param flags Flags associated with the network interface * * @return zero for success, non-zero for failure */ extern int32_t(*ppa_hook_directpath_ex_register_dev_fn) (PPA_SUBIF * subif, PPA_NETIF * dev, PPA_DIRECTPATH_CB * pDirectpathCb, uint32_t flags); /** * @brief API for WiFI Driver to send skb * * @param *subif Pointer to Network Device sub-interface * * @param *buf Pointer to skb * * @param len Length of skb * * @param flags Flags associated with the interface * * @return zero for success, non-zero for failure */ extern int32_t(*ppa_hook_directpath_ex_send_fn) (PPA_SUBIF *subif, PPA_BUF *buf, int32_t len, uint32_t flags); /** * @brief API for WiFI Driver to alloc skb * * @param *psubif Pointer to Network Device sub-interface * * @param len Length of skb * * @param flags Flags associated with the interface * * @return zero for success, non-zero for failure */ extern PPA_BUF *(*ppa_hook_directpath_alloc_skb_fn) (PPA_SUBIF *psubif, int32_t len, uint32_t flags); /** * @brief API for WiFI Driver to Enable/Disable PDSP with Puma Litepath * * @param *psubif Pointer to Network Device sub-interface * * @param enablePdsp enable_pdsp 0- Disable 1- Enable * * @return zero for success, non-zero for failure */ extern int32_t (*ppa_hook_directpath_enable_wifi_pdsp) (PPA_SUBIF *psubif, uint32_t enablePdsp); /** @} */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __LPAL_DIRECTPATH */