dwe_regs.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /****************************************************************************
  2. *
  3. * The MIT License (MIT)
  4. *
  5. * Copyright (c) 2020 VeriSilicon Holdings Co., Ltd.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the "Software"),
  9. * to deal in the Software without restriction, including without limitation
  10. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. * and/or sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in
  15. * all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. * DEALINGS IN THE SOFTWARE.
  24. *
  25. *****************************************************************************
  26. *
  27. * The GPL License (GPL)
  28. *
  29. * Copyright (c) 2020 VeriSilicon Holdings Co., Ltd.
  30. *
  31. * This program is free software; you can redistribute it and/or
  32. * modify it under the terms of the GNU General Public License
  33. * as published by the Free Software Foundation; either version 2
  34. * of the License, or (at your option) any later version.
  35. *
  36. * This program is distributed in the hope that it will be useful,
  37. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. * GNU General Public License for more details.
  40. *
  41. * You should have received a copy of the GNU General Public License
  42. * along with this program;
  43. *
  44. *****************************************************************************
  45. *
  46. * Note: This software is released under dual MIT and GPL licenses. A
  47. * recipient may use this file under the terms of either the MIT license or
  48. * GPL License. If you wish to use only one license not the other, you can
  49. * indicate your decision by deleting one of the above license notices in your
  50. * version of this file.
  51. *
  52. *****************************************************************************/
  53. #ifndef _DWE_REGS_H_
  54. #define _DWE_REGS_H_
  55. #define REGISTER_NUM 100
  56. #define DEWARP_REGISTER_BASE_ADDR 0x00000000
  57. #define DEWARP_CTRL 0x00000004
  58. #define SWAP_CONTROL 0x00000058
  59. #define VERTICAL_SPLIT_LINE 0x0000005C
  60. #define HORIZON_SPLIT_LINE 0x00000060
  61. #define SCALE_FACTOR 0x00000064
  62. #define ROI_START 0x00000068
  63. #define BOUNDRY_PIXEL 0x0000006C
  64. #define INTERRUPT_STATUS 0x00000070
  65. #define INT_FRAME_DONE (1 << 0)
  66. #define INT_ERR_STATUS_MASK 0x000000FE
  67. #define INT_ERR_STATUS_SHIFT 1
  68. #define INT_MSK_STATUS_MASK 0x0000FF00
  69. #define INT_MSK_STATUS_SHIFT 8
  70. #define INT_FRAME_BUSY 0x00010000
  71. #define INT_CLR_MASK 0xFF000000
  72. #define BUS_CTRL 0x00000074
  73. #define DEWRAP_BUS_CTRL_ENABLE_MASK (1 << 31)
  74. #define BUS_CTRL1 0x00000078
  75. #define BUS_TIME_OUT_CYCLE 0x0000007C
  76. #define MAP_LUT_ADDR 0x00000008
  77. #define MAP_LUT_SIZE 0x0000000C
  78. #define SRC_IMG_Y_BASE 0x00000010
  79. #define SRC_IMG_UV_BASE 0x00000014
  80. #define SRC_IMG_SIZE 0x00000018
  81. #define SRC_IMG_STRIDE 0x0000001C
  82. #define MAP_LUT_ADDR2 0x00000020
  83. #define MAP_LUT_SIZE2 0x00000024
  84. #define SRC_IMG_Y_BASE2 0x00000028
  85. #define SRC_IMG_UV_BASE2 0x0000002C
  86. #define SRC_IMG_SIZE2 0x00000030
  87. #define SRC_IMG_STRIDE2 0x00000034
  88. #define DST_IMG_Y_BASE 0x00000038
  89. #define DST_IMG_UV_BASE 0x0000003C
  90. #define DST_IMG_SIZE 0x00000040
  91. #define DST_IMG_STRIDE 0x00000044
  92. #define DST_IMG_Y_BASE2 0x00000048
  93. #define DST_IMG_UV_BASE2 0x0000004C
  94. #define DST_IMG_SIZE2 0x00000050
  95. #define DST_IMG_STRIDE2 0x00000054
  96. #define DST_IMG_Y_SIZE1 0x00000080
  97. #define DST_IMG_UV_SIZE1 0x00000084
  98. #define DST_IMG_Y_SIZE2 0x00000088
  99. #define DST_IMG_UV_SIZE2 0x0000008C
  100. #endif /* _DWE_REGS_H_ */