mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-03 02:16:09 +02:00

This patch add the support for job ring UIO so that userspace drivers can have access to the caam job rings Signed-off-by: Sandeep Malik <Sandeep.Malik@nxp.com> Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Signed-off-by: Horia Geantă <horia.geanta@nxp.com> crypto: caam - build config changes (squash to UIO) Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
26 lines
670 B
C
26 lines
670 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* CAAM Job RING UIO support header file
|
|
*
|
|
* Copyright 2013 Freescale Semiconductor, Inc
|
|
* Copyright 2018 NXP
|
|
*/
|
|
|
|
#ifndef FSL_JR_UIO_H
|
|
#define FSL_JR_UIO_H
|
|
|
|
/** UIO command used by user-space driver to request
|
|
* disabling IRQs on a certain job ring
|
|
*/
|
|
#define SEC_UIO_DISABLE_IRQ_CMD 0
|
|
/** UIO command used by user-space driver to request
|
|
* enabling IRQs on a certain job ring
|
|
*/
|
|
#define SEC_UIO_ENABLE_IRQ_CMD 1
|
|
/** UIO command used by user-space driver to request SEC kernel driver
|
|
* to simulate that an IRQ is generated on a certain job ring
|
|
*/
|
|
#define SEC_UIO_SIMULATE_IRQ_CMD 2
|
|
|
|
#endif
|