44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* ALSA SoC - Samsung VTS driver
|
|
*
|
|
* Copyright (c) 2016 Samsung Electronics Co. Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __VTS_H
|
|
#define __VTS_H
|
|
|
|
/**
|
|
* Acquire SRAM in VTS
|
|
* @param[in] pdev pointer to struct platform_device of a VTS device
|
|
* @param[in] vts 1, if requester is vts. 0 for others.
|
|
* @return error code if any
|
|
*/
|
|
extern int vts_acquire_sram(struct platform_device *pdev, int vts);
|
|
|
|
/**
|
|
* Release SRAM in VTS
|
|
* @param[in] pdev pointer to struct platform_device of a VTS device
|
|
* @param[in] vts 1, if requester is vts. 0 for others.
|
|
* @return error code if any
|
|
*/
|
|
extern int vts_release_sram(struct platform_device *pdev, int vts);
|
|
|
|
/**
|
|
* Clear SRAM in VTS
|
|
* @param[in] pdev pointer to struct platform_device of a VTS device
|
|
* @return error code if any
|
|
*/
|
|
extern int vts_clear_sram(struct platform_device *pdev);
|
|
|
|
/**
|
|
* Check VTS is on
|
|
* @return true if VTS is on, false on otherwise
|
|
*/
|
|
extern volatile bool vts_is_on(void);
|
|
|
|
#endif /* __VTS_H */
|