Commit | Line | Data |
---|---|---|
0f75a96b KD |
1 | /* |
2 | * Copyright (C) 2011 Samsung Electronics Co.Ltd | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify it | |
5 | * under the terms of the GNU General Public License as published by the | |
6 | * Free Software Foundation; either version 2 of the License, or (at your | |
7 | * option) any later version. | |
8 | */ | |
9 | ||
e90a0f3c KK |
10 | #ifndef __PLAT_SAMSUNG_MFC_H |
11 | #define __PLAT_SAMSUNG_MFC_H __FILE__ | |
0f75a96b | 12 | |
2eae613b AK |
13 | struct s5p_mfc_dt_meminfo { |
14 | unsigned long loff; | |
15 | unsigned long lsize; | |
16 | unsigned long roff; | |
17 | unsigned long rsize; | |
18 | char *compatible; | |
19 | }; | |
20 | ||
0f75a96b KD |
21 | /** |
22 | * s5p_mfc_reserve_mem - function to early reserve memory for MFC driver | |
23 | * @rbase: base address for MFC 'right' memory interface | |
24 | * @rsize: size of the memory reserved for MFC 'right' interface | |
25 | * @lbase: base address for MFC 'left' memory interface | |
26 | * @lsize: size of the memory reserved for MFC 'left' interface | |
27 | * | |
28 | * This function reserves system memory for both MFC device memory | |
29 | * interfaces and registers it to respective struct device entries as | |
30 | * coherent memory. | |
31 | */ | |
32 | void __init s5p_mfc_reserve_mem(phys_addr_t rbase, unsigned int rsize, | |
33 | phys_addr_t lbase, unsigned int lsize); | |
34 | ||
e90a0f3c | 35 | #endif /* __PLAT_SAMSUNG_MFC_H */ |