mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 02:54:32 +08:00
2e731e443f
Move firmware allocation from open to probe to avoid problems when using CMA for allocation. In certain circumstances CMA may allocate buffer that is not in the beginning of the MFC memory area. Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
32 lines
951 B
C
32 lines
951 B
C
/*
|
|
* linux/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.h
|
|
*
|
|
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com/
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef S5P_MFC_CTRL_H
|
|
#define S5P_MFC_CTRL_H
|
|
|
|
#include "s5p_mfc_common.h"
|
|
|
|
int s5p_mfc_release_firmware(struct s5p_mfc_dev *dev);
|
|
int s5p_mfc_alloc_firmware(struct s5p_mfc_dev *dev);
|
|
int s5p_mfc_load_firmware(struct s5p_mfc_dev *dev);
|
|
int s5p_mfc_reload_firmware(struct s5p_mfc_dev *dev);
|
|
|
|
int s5p_mfc_init_hw(struct s5p_mfc_dev *dev);
|
|
void s5p_mfc_deinit_hw(struct s5p_mfc_dev *dev);
|
|
|
|
int s5p_mfc_sleep(struct s5p_mfc_dev *dev);
|
|
int s5p_mfc_wakeup(struct s5p_mfc_dev *dev);
|
|
|
|
int s5p_mfc_reset(struct s5p_mfc_dev *dev);
|
|
|
|
#endif /* S5P_MFC_CTRL_H */
|