]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/rmgr/src/rmgr.c
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope 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
17 Support for Intel Camera Imaging ISP subsystem.
18 Copyright (c) 2010 - 2015, Intel Corporation.
20 This program is free software; you can redistribute it and/or modify it
21 under the terms and conditions of the GNU General Public License,
22 version 2, as published by the Free Software Foundation.
24 This program is distributed in the hope it will be useful, but WITHOUT
25 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
26 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
31 #include "ia_css_rmgr.h"
33 enum ia_css_err
ia_css_rmgr_init(void)
35 enum ia_css_err err
= IA_CSS_SUCCESS
;
37 err
= ia_css_rmgr_init_vbuf(vbuf_ref
);
38 if (err
== IA_CSS_SUCCESS
)
39 err
= ia_css_rmgr_init_vbuf(vbuf_write
);
40 if (err
== IA_CSS_SUCCESS
)
41 err
= ia_css_rmgr_init_vbuf(hmm_buffer_pool
);
42 if (err
!= IA_CSS_SUCCESS
)
48 * @brief Uninitialize resource pool (host)
50 void ia_css_rmgr_uninit(void)
52 ia_css_rmgr_uninit_vbuf(hmm_buffer_pool
);
53 ia_css_rmgr_uninit_vbuf(vbuf_write
);
54 ia_css_rmgr_uninit_vbuf(vbuf_ref
);