regdrv.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Description :
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: regdrv.h,v $
  23. -- $Revision: 1.20 $
  24. -- $Date: 2010/09/07 06:47:34 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef REGDRV_H
  28. #define REGDRV_H
  29. /*------------------------------------------------------------------------------
  30. Include headers
  31. ------------------------------------------------------------------------------*/
  32. #include "basetype.h"
  33. /*------------------------------------------------------------------------------
  34. Module defines
  35. ------------------------------------------------------------------------------*/
  36. #define DEC_8170_IRQ_RDY 0x01
  37. #define DEC_8170_IRQ_BUS 0x02
  38. #define DEC_8170_IRQ_BUFFER 0x04
  39. #define DEC_8170_IRQ_ASO 0x08
  40. #define DEC_8170_IRQ_ERROR 0x10
  41. #define DEC_8170_IRQ_SLICE 0x20
  42. #define DEC_8170_IRQ_TIMEOUT 0x40
  43. #define DEC_8190_IRQ_RDY DEC_8170_IRQ_RDY
  44. #define DEC_8190_IRQ_BUS DEC_8170_IRQ_BUS
  45. #define DEC_8190_IRQ_BUFFER DEC_8170_IRQ_BUFFER
  46. #define DEC_8190_IRQ_ASO DEC_8170_IRQ_ASO
  47. #define DEC_8190_IRQ_ERROR DEC_8170_IRQ_ERROR
  48. #define DEC_8190_IRQ_SLICE DEC_8170_IRQ_SLICE
  49. #define DEC_8190_IRQ_TIMEOUT DEC_8170_IRQ_TIMEOUT
  50. typedef enum
  51. {
  52. /* include script-generated part */
  53. #include "8170enum.h"
  54. HWIF_DEC_IRQ_STAT,
  55. HWIF_PP_IRQ_STAT,
  56. HWIF_LAST_REG,
  57. /* aliases */
  58. HWIF_MPEG4_DC_BASE = HWIF_I4X4_OR_DC_BASE,
  59. HWIF_INTRA_4X4_BASE = HWIF_I4X4_OR_DC_BASE,
  60. /* VP6 */
  61. HWIF_VP6HWGOLDEN_BASE = HWIF_REFER4_BASE,
  62. HWIF_VP6HWPART1_BASE = HWIF_REFER13_BASE,
  63. HWIF_VP6HWPART2_BASE = HWIF_RLC_VLC_BASE,
  64. HWIF_VP6HWPROBTBL_BASE = HWIF_QTABLE_BASE,
  65. /* progressive JPEG */
  66. HWIF_PJPEG_COEFF_BUF = HWIF_DIR_MV_BASE,
  67. /* MVC */
  68. HWIF_INTER_VIEW_BASE = HWIF_REFER15_BASE,
  69. } hwIfName_e;
  70. /*------------------------------------------------------------------------------
  71. Data types
  72. ------------------------------------------------------------------------------*/
  73. /*------------------------------------------------------------------------------
  74. Function prototypes
  75. ------------------------------------------------------------------------------*/
  76. void SetDecRegister(u32 * regBase, u32 id, u32 value);
  77. u32 GetDecRegister(const u32 * regBase, u32 id);
  78. #endif /* #ifndef REGDRV_H */