mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 21:53:28 +07:00
94cebd9da4
Add support to translate error codes returned by QI v2, i.e. Queue Interface present on DataPath Acceleration Architecture v2 (DPAA2). Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
21 lines
626 B
C
21 lines
626 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* CAAM Error Reporting code header
|
|
*
|
|
* Copyright 2009-2011 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#ifndef CAAM_ERROR_H
|
|
#define CAAM_ERROR_H
|
|
#define CAAM_ERROR_STR_MAX 302
|
|
|
|
void caam_strstatus(struct device *dev, u32 status, bool qi_v2);
|
|
|
|
#define caam_jr_strstatus(jrdev, status) caam_strstatus(jrdev, status, false)
|
|
#define caam_qi2_strstatus(qidev, status) caam_strstatus(qidev, status, true)
|
|
|
|
void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
|
|
int rowsize, int groupsize, struct scatterlist *sg,
|
|
size_t tlen, bool ascii);
|
|
#endif /* CAAM_ERROR_H */
|