s5p_mfc_opr_v5.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * drivers/media/platform/samsung/mfc5/s5p_mfc_opr_v5.h
  3. *
  4. * Header file for Samsung MFC (Multi Function Codec - FIMV) driver
  5. * Contains declarations of hw related functions.
  6. *
  7. * Kamil Debski, Copyright (C) 2011 Samsung Electronics
  8. * http://www.samsung.com/
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef S5P_MFC_OPR_V5_H_
  15. #define S5P_MFC_OPR_V5_H_
  16. #include "s5p_mfc_common.h"
  17. #include "s5p_mfc_opr.h"
  18. enum MFC_SHM_OFS {
  19. EXTENEDED_DECODE_STATUS = 0x00, /* D */
  20. SET_FRAME_TAG = 0x04, /* D */
  21. GET_FRAME_TAG_TOP = 0x08, /* D */
  22. GET_FRAME_TAG_BOT = 0x0C, /* D */
  23. PIC_TIME_TOP = 0x10, /* D */
  24. PIC_TIME_BOT = 0x14, /* D */
  25. START_BYTE_NUM = 0x18, /* D */
  26. CROP_INFO_H = 0x20, /* D */
  27. CROP_INFO_V = 0x24, /* D */
  28. EXT_ENC_CONTROL = 0x28, /* E */
  29. ENC_PARAM_CHANGE = 0x2C, /* E */
  30. RC_VOP_TIMING = 0x30, /* E, MPEG4 */
  31. HEC_PERIOD = 0x34, /* E, MPEG4 */
  32. METADATA_ENABLE = 0x38, /* C */
  33. METADATA_STATUS = 0x3C, /* C */
  34. METADATA_DISPLAY_INDEX = 0x40, /* C */
  35. EXT_METADATA_START_ADDR = 0x44, /* C */
  36. PUT_EXTRADATA = 0x48, /* C */
  37. EXTRADATA_ADDR = 0x4C, /* C */
  38. ALLOC_LUMA_DPB_SIZE = 0x64, /* D */
  39. ALLOC_CHROMA_DPB_SIZE = 0x68, /* D */
  40. ALLOC_MV_SIZE = 0x6C, /* D */
  41. P_B_FRAME_QP = 0x70, /* E */
  42. SAMPLE_ASPECT_RATIO_IDC = 0x74, /* E, H.264, depend on
  43. ASPECT_RATIO_VUI_ENABLE in EXT_ENC_CONTROL */
  44. EXTENDED_SAR = 0x78, /* E, H.264, depned on
  45. ASPECT_RATIO_VUI_ENABLE in EXT_ENC_CONTROL */
  46. DISP_PIC_PROFILE = 0x7C, /* D */
  47. FLUSH_CMD_TYPE = 0x80, /* C */
  48. FLUSH_CMD_INBUF1 = 0x84, /* C */
  49. FLUSH_CMD_INBUF2 = 0x88, /* C */
  50. FLUSH_CMD_OUTBUF = 0x8C, /* E */
  51. NEW_RC_BIT_RATE = 0x90, /* E, format as RC_BIT_RATE(0xC5A8)
  52. depend on RC_BIT_RATE_CHANGE in ENC_PARAM_CHANGE */
  53. NEW_RC_FRAME_RATE = 0x94, /* E, format as RC_FRAME_RATE(0xD0D0)
  54. depend on RC_FRAME_RATE_CHANGE in ENC_PARAM_CHANGE */
  55. NEW_I_PERIOD = 0x98, /* E, format as I_FRM_CTRL(0xC504)
  56. depend on I_PERIOD_CHANGE in ENC_PARAM_CHANGE */
  57. H264_I_PERIOD = 0x9C, /* E, H.264, open GOP */
  58. RC_CONTROL_CONFIG = 0xA0, /* E */
  59. BATCH_INPUT_ADDR = 0xA4, /* E */
  60. BATCH_OUTPUT_ADDR = 0xA8, /* E */
  61. BATCH_OUTPUT_SIZE = 0xAC, /* E */
  62. MIN_LUMA_DPB_SIZE = 0xB0, /* D */
  63. DEVICE_FORMAT_ID = 0xB4, /* C */
  64. H264_POC_TYPE = 0xB8, /* D */
  65. MIN_CHROMA_DPB_SIZE = 0xBC, /* D */
  66. DISP_PIC_FRAME_TYPE = 0xC0, /* D */
  67. FREE_LUMA_DPB = 0xC4, /* D, VC1 MPEG4 */
  68. ASPECT_RATIO_INFO = 0xC8, /* D, MPEG4 */
  69. EXTENDED_PAR = 0xCC, /* D, MPEG4 */
  70. DBG_HISTORY_INPUT0 = 0xD0, /* C */
  71. DBG_HISTORY_INPUT1 = 0xD4, /* C */
  72. DBG_HISTORY_OUTPUT = 0xD8, /* C */
  73. HIERARCHICAL_P_QP = 0xE0, /* E, H.264 */
  74. FRAME_PACK_SEI_ENABLE = 0x168, /* C */
  75. FRAME_PACK_SEI_AVAIL = 0x16c, /* D */
  76. FRAME_PACK_SEI_INFO = 0x17c, /* E */
  77. };
  78. struct s5p_mfc_hw_ops *s5p_mfc_init_hw_ops_v5(void);
  79. #endif /* S5P_MFC_OPR_H_ */