mfc.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef __PLAT_SAMSUNG_MFC_H
  10. #define __PLAT_SAMSUNG_MFC_H __FILE__
  11. struct s5p_mfc_dt_meminfo {
  12. unsigned long loff;
  13. unsigned long lsize;
  14. unsigned long roff;
  15. unsigned long rsize;
  16. char *compatible;
  17. };
  18. /**
  19. * s5p_mfc_reserve_mem - function to early reserve memory for MFC driver
  20. * @rbase: base address for MFC 'right' memory interface
  21. * @rsize: size of the memory reserved for MFC 'right' interface
  22. * @lbase: base address for MFC 'left' memory interface
  23. * @lsize: size of the memory reserved for MFC 'left' interface
  24. *
  25. * This function reserves system memory for both MFC device memory
  26. * interfaces and registers it to respective struct device entries as
  27. * coherent memory.
  28. */
  29. void __init s5p_mfc_reserve_mem(phys_addr_t rbase, unsigned int rsize,
  30. phys_addr_t lbase, unsigned int lsize);
  31. int __init s5p_fdt_find_mfc_mem(unsigned long node, const char *uname,
  32. int depth, void *data);
  33. #endif /* __PLAT_SAMSUNG_MFC_H */