qcacmn: Add unregister API for direct buf ring

Add Unregister API to de-register and free resources in direct buf
module. Existing logic of freeing all resources as part of pdev destroy
does not take care of soc_start and soc_stop scenarios. Add this API to
enable modules to de-register as part of soc_stop and register during
start.

CRs-Fixed: 2385313
Change-Id: Ibe6f6bc5f4bd2acc5a9fe71eee09c151853073bc
This commit is contained in:
Edayilliam Jayadev
2019-01-24 19:38:45 +05:30
committed by nshrivas
parent eb26aa78ae
commit 2bee1aa8ad
8 changed files with 144 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -154,6 +154,29 @@ spectral_vdev_get_ch_width(struct wlan_objmgr_vdev *vdev);
*/
QDF_STATUS spectral_pdev_open(struct wlan_objmgr_pdev *pdev);
/**
* spectral_register_dbr() - register Spectral event handler with DDMA
* @pdev: pointer to pdev object
*
* API to register event handler with Direct DMA
*
* Return: QDF_STATUS_SUCCESS upon successful registration,
* QDF_STATUS_E_FAILURE upon failure
*/
QDF_STATUS spectral_register_dbr(struct wlan_objmgr_pdev *pdev);
/**
* spectral_unregister_dbr() - unregister Spectral event handler with DDMA
* @pdev: pointer to pdev object
*
* API to unregister event handler with Direct DMA
*
* Return: QDF_STATUS_SUCCESS upon successful unregistration,
* QDF_STATUS_E_FAILURE upon failure
*/
QDF_STATUS spectral_unregister_dbr(struct wlan_objmgr_pdev *pdev);
#ifdef DIRECT_BUF_RX_ENABLE
/**
* spectral_dbr_event_handler() - Spectral dbr event handler