Commit | Line | Data |
---|---|---|
06c0dd96 | 1 | /* |
bfcdfb0e | 2 | * Copyright (c) 2014, The Linux Foundation. All rights reserved. |
06c0dd96 RC |
3 | * Copyright (C) 2013 Red Hat |
4 | * Author: Rob Clark <robdclark@gmail.com> | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License version 2 as published by | |
8 | * the Free Software Foundation. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | * more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License along with | |
16 | * this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | */ | |
18 | ||
19 | #ifndef __MDP5_SMP_H__ | |
20 | #define __MDP5_SMP_H__ | |
21 | ||
22 | #include "msm_drv.h" | |
23 | ||
06c0dd96 RC |
24 | struct mdp5_client_smp_state { |
25 | mdp5_smp_state_t inuse; | |
26 | mdp5_smp_state_t pending; | |
27 | }; | |
28 | ||
29 | struct mdp5_kms; | |
30 | ||
bfcdfb0e SV |
31 | /* |
32 | * SMP module prototypes: | |
33 | * mdp5_smp_init() returns a SMP @handler, | |
34 | * which is then used to call the other mdp5_smp_*(handler, ...) functions. | |
35 | */ | |
36 | ||
37 | void *mdp5_smp_init(struct drm_device *dev, const struct mdp5_smp_block *cfg); | |
38 | void mdp5_smp_destroy(void *handler); | |
06c0dd96 | 39 | |
bfcdfb0e SV |
40 | int mdp5_smp_request(void *handler, enum mdp5_pipe pipe, u32 fmt, u32 width); |
41 | void mdp5_smp_configure(void *handler, enum mdp5_pipe pipe); | |
42 | void mdp5_smp_commit(void *handler, enum mdp5_pipe pipe); | |
43 | void mdp5_smp_release(void *handler, enum mdp5_pipe pipe); | |
06c0dd96 RC |
44 | |
45 | #endif /* __MDP5_SMP_H__ */ |