Lines Matching +full:unit +full:- +full:addresses

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
11 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com>
26 * User-space API for the GenWQE card. For debugging and test purposes
27 * the register addresses are included here too.
36 #define GENWQE_TYPE_ALTERA_230 0x00 /* GenWQE4 Stratix-IV-230 */
37 #define GENWQE_TYPE_ALTERA_530 0x01 /* GenWQE4 Stratix-IV-530 */
38 #define GENWQE_TYPE_ALTERA_A4 0x02 /* GenWQE5 A4 Stratix-V-A4 */
39 #define GENWQE_TYPE_ALTERA_A7 0x03 /* GenWQE5 A7 Stratix-V-A7 */
41 /* MMIO Unit offsets: Each UnitID occupies a defined address range */
57 /* UnitID 0: Service Layer Unit (SLU) */
59 /* SLU: Unit Configuration Register */
185 /* SLU: Flashbus Direct Access -A5 */
188 /* SLU: Flashbus Direct Access2 -A5 */
191 /* SLU: Flashbus Command Interface -A5 */
217 /* UnitID 2: Application Unit (APP) */
270 * Some DDCBs require DMA addresses to be specified in the ASIV
272 * driver know where those addresses are by specifying the ATS field,
273 * such that it can replace the user-space addresses with appropriate
274 * DMA addresses or DMA addresses of a scatter gather list which is
279 * where it expects DMA addresses within the ASIV part of the DDCB and
285 #define DDCB_ACFUNC_SLU 0x00 /* chip service layer unit */
293 #define DDCB_RETC_ERROR 0x0108 /* App Err, non-recoverable */
373 * Each 4 bit within the ATS 64-bit word specify the required address
392 (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8))))
395 (((_ats) >> (44 - (4 * ((_byte_offs) / 8)))) & 0xf)
398 * struct genwqe_ddcb_cmd - User parameter for generic DDCB commands
402 * back to user-space.
409 __u8 acfunc; /* accelerators functional unit */
424 /* move to end and avoid copy-back */
455 * struct genwqe_mem - Memory pinning/unpinning information
457 * @size: size of the area pin/dma-map/unmap
465 * unmap to get the DMA addresses.
487 * -EINVAL: Invalid parameters (ASIV_LEN, ASV_LEN, illegal fixups
489 * -EFAULT: illegal addresses in fixups, purging failed
490 * -EBADMSG: enqueing failed, retc != DDCB_RETC_COMPLETE