desc.h (d053cf0d771f6547cb0537759a9af63cf402908d) desc.h (24c7bf089453f6a1eed4c77ed0604bf4bb8cfb03)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * CAAM descriptor composition header
4 * Definitions to support CAAM descriptor instruction generation
5 *
6 * Copyright 2008-2011 Freescale Semiconductor, Inc.
7 * Copyright 2018 NXP
8 */

--- 4 unchanged lines hidden (view full) ---

13/*
14 * 16-byte hardware scatter/gather table
15 * An 8-byte table exists in the hardware spec, but has never been
16 * implemented to date. The 8/16 option is selected at RTL-compile-time.
17 * and this selection is visible in the Compile Time Parameters Register
18 */
19
20#define SEC4_SG_LEN_EXT 0x80000000 /* Entry points to table */
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * CAAM descriptor composition header
4 * Definitions to support CAAM descriptor instruction generation
5 *
6 * Copyright 2008-2011 Freescale Semiconductor, Inc.
7 * Copyright 2018 NXP
8 */

--- 4 unchanged lines hidden (view full) ---

13/*
14 * 16-byte hardware scatter/gather table
15 * An 8-byte table exists in the hardware spec, but has never been
16 * implemented to date. The 8/16 option is selected at RTL-compile-time.
17 * and this selection is visible in the Compile Time Parameters Register
18 */
19
20#define SEC4_SG_LEN_EXT 0x80000000 /* Entry points to table */
21#define SEC4_SG_LEN_FIN 0x40000000 /* Last ent in table */
21#define SEC4_SG_LEN_FIN 0x40000000 /* Last entry in table */
22#define SEC4_SG_BPID_MASK 0x000000ff
23#define SEC4_SG_BPID_SHIFT 16
24#define SEC4_SG_LEN_MASK 0x3fffffff /* Excludes EXT and FINAL */
25#define SEC4_SG_OFFSET_MASK 0x00001fff
26
27/* Max size of any CAAM descriptor in 32-bit words, inclusive of header */
28#define MAX_CAAM_DESCSIZE 64
29

--- 78 unchanged lines hidden (view full) ---

108#define HDR_SHARED 0x00001000
109
110/*
111 * Reverse Execution Order - execute JobDesc first, then
112 * execute SharedDesc (normally SharedDesc goes first).
113 */
114#define HDR_REVERSE 0x00000800
115
22#define SEC4_SG_BPID_MASK 0x000000ff
23#define SEC4_SG_BPID_SHIFT 16
24#define SEC4_SG_LEN_MASK 0x3fffffff /* Excludes EXT and FINAL */
25#define SEC4_SG_OFFSET_MASK 0x00001fff
26
27/* Max size of any CAAM descriptor in 32-bit words, inclusive of header */
28#define MAX_CAAM_DESCSIZE 64
29

--- 78 unchanged lines hidden (view full) ---

108#define HDR_SHARED 0x00001000
109
110/*
111 * Reverse Execution Order - execute JobDesc first, then
112 * execute SharedDesc (normally SharedDesc goes first).
113 */
114#define HDR_REVERSE 0x00000800
115
116/* Propogate DNR property to SharedDesc */
116/* Propagate DNR property to SharedDesc */
117#define HDR_PROP_DNR 0x00000800
118
119/* JobDesc/SharedDesc share property */
120#define HDR_SD_SHARE_SHIFT 8
121#define HDR_SD_SHARE_MASK (0x03 << HDR_SD_SHARE_SHIFT)
122#define HDR_JD_SHARE_SHIFT 8
123#define HDR_JD_SHARE_MASK (0x07 << HDR_JD_SHARE_SHIFT)
124

--- 1563 unchanged lines hidden ---
117#define HDR_PROP_DNR 0x00000800
118
119/* JobDesc/SharedDesc share property */
120#define HDR_SD_SHARE_SHIFT 8
121#define HDR_SD_SHARE_MASK (0x03 << HDR_SD_SHARE_SHIFT)
122#define HDR_JD_SHARE_SHIFT 8
123#define HDR_JD_SHARE_MASK (0x07 << HDR_JD_SHARE_SHIFT)
124

--- 1563 unchanged lines hidden ---