···11+/*22+ * Copyright (C) 2013 Red Hat33+ * Author: Rob Clark <robdclark@gmail.com>44+ *55+ * This program is free software; you can redistribute it and/or modify it66+ * under the terms of the GNU General Public License version 2 as published by77+ * the Free Software Foundation.88+ *99+ * This program is distributed in the hope that it will be useful, but WITHOUT1010+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or1111+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for1212+ * more details.1313+ *1414+ * You should have received a copy of the GNU General Public License along with1515+ * this program. If not, see <http://www.gnu.org/licenses/>.1616+ */1717+1818+#ifndef __MDP_KMS_H__1919+#define __MDP_KMS_H__2020+2121+#include <linux/clk.h>2222+#include <linux/platform_device.h>2323+#include <linux/regulator/consumer.h>2424+2525+#include "msm_drv.h"2626+#include "mdp_common.xml.h"2727+2828+struct mdp_format {2929+ struct msm_format base;3030+ enum mdp_bpc bpc_r, bpc_g, bpc_b;3131+ enum mdp_bpc_alpha bpc_a;3232+ uint8_t unpack[4];3333+ bool alpha_enable, unpack_tight;3434+ uint8_t cpp, unpack_count;3535+};3636+#define to_mdp_format(x) container_of(x, struct mdp_format, base)3737+3838+3939+uint32_t mdp_get_formats(uint32_t *formats, uint32_t max_formats);4040+const struct msm_format *mdp_get_format(struct msm_kms *kms, uint32_t format);4141+4242+#endif /* __MDP_KMS_H__ */