hw-decompress.h 804 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-11-21 GuEe-GUI first version
  9. */
  10. #ifndef __HW_DECOMPRESS_H__
  11. #define __HW_DECOMPRESS_H__
  12. #include <sys/ioctl.h>
  13. #define HW_DECOMPRESS_NAME "hw_decom"
  14. enum hw_decompress_mod
  15. {
  16. HW_DECOMPRESS_LZ4_MOD,
  17. HW_DECOMPRESS_GZIP_MOD,
  18. HW_DECOMPRESS_ZLIB_MOD,
  19. HW_DECOMPRESS_MAX_MOD,
  20. };
  21. /* Input of RK_DECOM_USER */
  22. struct hw_decompress_param
  23. {
  24. uint32_t mode;
  25. uint32_t dst_max_size;
  26. uint64_t src;
  27. uint64_t dst;
  28. uint64_t decom_data_len;
  29. };
  30. #define HW_DECOMPRESS_IOC_MAGIC 'D'
  31. #define HW_DECOMPRESS_REQ _IOWR(HW_DECOMPRESS_IOC_MAGIC, 0, struct hw_decompress_param)
  32. #endif /* __HW_DECOMPRESS_H__ */