isp_jpe.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2021 Alibaba Group Holding Limited
  3. * Author: LuChongzhi <chongzhi.lcz@alibaba-inc.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <stdint.h>
  12. #include <unistd.h>
  13. #include <string.h>
  14. #include "ra_common.h"
  15. #define REG_BASE 0x00001800
  16. static const reg_field_s reg_desc[] = {
  17. /* structure field order
  18. reg_name, offset,reset_value,msb,lsb, field_name, field_desc */
  19. {"JPE_ERROR_MIR", "jpe error imr",
  20. 0x00001868, 0x00000000, 31, 0, "Undefined in reg.xml", "Undefined in reg.xml, but mrv_all_regs.h does"},
  21. };
  22. int light_isp_jpe_reg_dump(reg_analyzer_info_s *ra_info)
  23. {
  24. uint32_t count = sizeof(reg_desc) / sizeof(reg_desc[0]);
  25. return ra_dump_reg_fields(ra_info, reg_desc, count);
  26. }
  27. int light_isp_jpe_reg_define(reg_analyzer_info_s *ra_info)
  28. {
  29. uint32_t count = sizeof(reg_desc) / sizeof(reg_desc[0]);
  30. return ra_dump_reg_define(ra_info, reg_desc, count);
  31. }
  32. int light_isp_jpe_reg_find(reg_analyzer_info_s *ra_info)
  33. {
  34. uint32_t count = sizeof(reg_desc) / sizeof(reg_desc[0]);
  35. return ra_dump_reg_find(ra_info, reg_desc, count);
  36. }