tizen 2.4 release
[kernel/linux-3.0.git] / drivers / gpu / arm / mali400 / mali / common / mali_user_settings_db.h
1 /*
2  * Copyright (C) 2011-2012 ARM Limited. All rights reserved.
3  *
4  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6  *
7  * A copy of the licence is included with the program, and can also be obtained from Free Software
8  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9  */
10
11 #ifndef __MALI_USER_SETTINGS_DB_H__
12 #define __MALI_USER_SETTINGS_DB_H__
13
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif
18
19 #include "mali_uk_types.h"
20
21 /** @brief Set Mali user setting in DB
22  *
23  * Update the DB with a new value for \a setting. If the value is different from theprevious set value running sessions will be notified of the change.
24  *
25  * @param setting the setting to be changed
26  * @param value the new value to set
27  */
28 void mali_set_user_setting(_mali_uk_user_setting_t setting, u32 value);
29
30 /** @brief Get current Mali user setting value from DB
31  *
32  * @param setting the setting to extract
33  * @return the value of the selected setting
34  */
35 u32 mali_get_user_setting(_mali_uk_user_setting_t setting);
36
37 #ifdef __cplusplus
38 }
39 #endif
40 #endif  /* __MALI_KERNEL_USER_SETTING__ */