intern.h (c95baf12f5077419db01313ab61c2aac007d40cd) | intern.h (ee38767f152a3310aabee7074848911f43bf5d69) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * CAAM/SEC 4.x driver backend 4 * Private/internal definitions between modules 5 * 6 * Copyright 2008-2011 Freescale Semiconductor, Inc. 7 * Copyright 2019 NXP 8 */ 9 10#ifndef INTERN_H 11#define INTERN_H 12 13#include "ctrl.h" | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * CAAM/SEC 4.x driver backend 4 * Private/internal definitions between modules 5 * 6 * Copyright 2008-2011 Freescale Semiconductor, Inc. 7 * Copyright 2019 NXP 8 */ 9 10#ifndef INTERN_H 11#define INTERN_H 12 13#include "ctrl.h" |
14#include <crypto/engine.h> |
|
14 15/* Currently comes from Kconfig param as a ^2 (driver-required) */ 16#define JOBR_DEPTH (1 << CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE) 17 18/* Kconfig params for interrupt coalescing if selected (else zero) */ 19#ifdef CONFIG_CRYPTO_DEV_FSL_CAAM_INTC 20#define JOBR_INTC JRCFG_ICEN 21#define JOBR_INTC_TIME_THLD CONFIG_CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD --- 33 unchanged lines hidden (view full) --- 55 spinlock_t inplock ____cacheline_aligned; /* Input ring index lock */ 56 u32 inpring_avail; /* Number of free entries in input ring */ 57 int head; /* entinfo (s/w ring) head index */ 58 void *inpring; /* Base of input ring, alloc 59 * DMA-safe */ 60 int out_ring_read_index; /* Output index "tail" */ 61 int tail; /* entinfo (s/w ring) tail index */ 62 void *outring; /* Base of output ring, DMA-safe */ | 15 16/* Currently comes from Kconfig param as a ^2 (driver-required) */ 17#define JOBR_DEPTH (1 << CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE) 18 19/* Kconfig params for interrupt coalescing if selected (else zero) */ 20#ifdef CONFIG_CRYPTO_DEV_FSL_CAAM_INTC 21#define JOBR_INTC JRCFG_ICEN 22#define JOBR_INTC_TIME_THLD CONFIG_CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD --- 33 unchanged lines hidden (view full) --- 56 spinlock_t inplock ____cacheline_aligned; /* Input ring index lock */ 57 u32 inpring_avail; /* Number of free entries in input ring */ 58 int head; /* entinfo (s/w ring) head index */ 59 void *inpring; /* Base of input ring, alloc 60 * DMA-safe */ 61 int out_ring_read_index; /* Output index "tail" */ 62 int tail; /* entinfo (s/w ring) tail index */ 63 void *outring; /* Base of output ring, DMA-safe */ |
64 struct crypto_engine *engine; |
|
63}; 64 65/* 66 * Driver-private storage for a single CAAM block instance 67 */ 68struct caam_drv_private { 69 /* Physical-presence section */ 70 struct caam_ctrl __iomem *ctrl; /* controller region */ --- 162 unchanged lines hidden --- | 65}; 66 67/* 68 * Driver-private storage for a single CAAM block instance 69 */ 70struct caam_drv_private { 71 /* Physical-presence section */ 72 struct caam_ctrl __iomem *ctrl; /* controller region */ --- 162 unchanged lines hidden --- |