65 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/****************************************************************************
 | 
						|
 | 
						|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
 | 
						|
 | 
						|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
 | 
						|
be copied by any method or incorporated into another program without
 | 
						|
the express written consent of Aerospace C.Power. This Information or any portion
 | 
						|
thereof remains the property of Aerospace C.Power. The Information contained herein
 | 
						|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
 | 
						|
liability for its use in any way and conveys no license or title under
 | 
						|
any patent or copyright and makes no representation or warranty that this
 | 
						|
Information is free from patent or copyright infringement.
 | 
						|
 | 
						|
****************************************************************************/
 | 
						|
 | 
						|
#ifndef CVG_TASK_H
 | 
						|
#define CVG_TASK_H
 | 
						|
 | 
						|
/* os shim includes */
 | 
						|
#include "os_types.h"
 | 
						|
 | 
						|
/* cvg module internal includes */
 | 
						|
#include "cvg.h"
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
/*
 | 
						|
 * cvg_start_tasks() - start all cvg layer tasks
 | 
						|
 * @glb:    pointer of cvg global data
 | 
						|
 *
 | 
						|
 * return:
 | 
						|
 *      0         -- for success case
 | 
						|
 *      othersie  -- error code
 | 
						|
 */
 | 
						|
uint32_t cvg_start_tasks(cvg_global_t *glb);
 | 
						|
 | 
						|
/*
 | 
						|
 * cvg_stop_tasks() - stop all cvg layer tasks
 | 
						|
 * @glb:    pointer of cvg global data
 | 
						|
 */
 | 
						|
void cvg_stop_tasks(cvg_global_t *glb);
 | 
						|
 | 
						|
/*
 | 
						|
 * cvg_boost_task_prio() - boost cvg task priority to be same as mac task.
 | 
						|
 *                         this function is mainly used in critical mac message
 | 
						|
 *                         handling case only.
 | 
						|
 */
 | 
						|
void cvg_boost_task_prio();
 | 
						|
 | 
						|
/*
 | 
						|
 * cvg_restore_task_prio() - restore task priority of cvg task.
 | 
						|
 *                           this function is mainly used in critical mac
 | 
						|
 *                           message andling case only.
 | 
						|
 */
 | 
						|
void cvg_restore_task_prio();
 | 
						|
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif /* CVG_TASK_H */
 |