jpeg-hw-exynos4.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Copyright (c) 2013 Samsung Electronics Co., Ltd.
  2. * http://www.samsung.com/
  3. *
  4. * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
  5. *
  6. * Header file of the register interface for JPEG driver on Exynos4x12.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef JPEG_HW_EXYNOS4_H_
  13. #define JPEG_HW_EXYNOS4_H_
  14. void exynos4_jpeg_sw_reset(void __iomem *base);
  15. void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode);
  16. void __exynos4_jpeg_set_img_fmt(void __iomem *base, unsigned int img_fmt,
  17. unsigned int version);
  18. void __exynos4_jpeg_set_enc_out_fmt(void __iomem *base, unsigned int out_fmt,
  19. unsigned int version);
  20. void exynos4_jpeg_set_enc_tbl(void __iomem *base);
  21. void exynos4_jpeg_set_interrupt(void __iomem *base, unsigned int version);
  22. unsigned int exynos4_jpeg_get_int_status(void __iomem *base);
  23. void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value);
  24. void exynos4_jpeg_set_sys_int_enable(void __iomem *base, int value);
  25. void exynos4_jpeg_set_stream_buf_address(void __iomem *base,
  26. unsigned int address);
  27. void exynos4_jpeg_set_stream_size(void __iomem *base,
  28. unsigned int x_value, unsigned int y_value);
  29. void exynos4_jpeg_set_frame_buf_address(void __iomem *base,
  30. struct s5p_jpeg_addr *jpeg_addr);
  31. void exynos4_jpeg_set_encode_tbl_select(void __iomem *base,
  32. enum exynos4_jpeg_img_quality_level level);
  33. void exynos4_jpeg_set_dec_components(void __iomem *base, int n);
  34. void exynos4_jpeg_select_dec_q_tbl(void __iomem *base, char c, char x);
  35. void exynos4_jpeg_select_dec_h_tbl(void __iomem *base, char c, char x);
  36. void exynos4_jpeg_set_encode_hoff_cnt(void __iomem *base, unsigned int fmt);
  37. void exynos4_jpeg_set_dec_bitstream_size(void __iomem *base, unsigned int size);
  38. unsigned int exynos4_jpeg_get_stream_size(void __iomem *base);
  39. void exynos4_jpeg_get_frame_size(void __iomem *base,
  40. unsigned int *width, unsigned int *height);
  41. unsigned int exynos4_jpeg_get_frame_fmt(void __iomem *base);
  42. unsigned int exynos4_jpeg_get_fifo_status(void __iomem *base);
  43. void exynos4_jpeg_set_timer_count(void __iomem *base, unsigned int size);
  44. #endif /* JPEG_HW_EXYNOS4_H_ */