error.h 626 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * CAAM Error Reporting code header
  4. *
  5. * Copyright 2009-2011 Freescale Semiconductor, Inc.
  6. */
  7. #ifndef CAAM_ERROR_H
  8. #define CAAM_ERROR_H
  9. #define CAAM_ERROR_STR_MAX 302
  10. void caam_strstatus(struct device *dev, u32 status, bool qi_v2);
  11. #define caam_jr_strstatus(jrdev, status) caam_strstatus(jrdev, status, false)
  12. #define caam_qi2_strstatus(qidev, status) caam_strstatus(qidev, status, true)
  13. void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
  14. int rowsize, int groupsize, struct scatterlist *sg,
  15. size_t tlen, bool ascii);
  16. #endif /* CAAM_ERROR_H */