PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/gpu/mali/mali/common/mali_device_pause_resume.h

https://bitbucket.org/ndreys/linux-sunxi
C++ Header | 31 lines | 6 code | 5 blank | 20 comment | 0 complexity | e911a9bc4dbc18688eb88556f2b4e353 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1/*
 2 * Copyright (C) 2010-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_DEVICE_PAUSE_RESUME_H__
12#define __MALI_DEVICE_PAUSE_RESUME_H__
13
14#include "mali_osk.h"
15
16/**
17 * Pause the scheduling and power state changes of Mali device driver.
18 * mali_dev_resume() must always be called as soon as possible after this function
19 * in order to resume normal operation of the Mali driver.
20 *
21 * @param power_is_on Receives the power current status of Mali GPU. MALI_TRUE if GPU is powered on
22 */
23void mali_dev_pause(mali_bool *power_is_on);
24
25/**
26 * Resume scheduling and allow power changes in Mali device driver.
27 * This must always be called after mali_dev_pause().
28 */
29void mali_dev_resume(void);
30
31#endif /* __MALI_DEVICE_PAUSE_RESUME_H__ */