__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*/
#ifndef _QCOM_BAM_DMA_H
#define _QCOM_BAM_DMA_H
#include <asm/byteorder.h>
/*
* This data type corresponds to the native Command Element
* supported by BAM DMA Engine.
*
* @cmd_and_addr - upper 8 bits command and lower 24 bits register address.
* @data - for write command: content to be written into peripheral register.
* for read command: dest addr to write peripheral register value.
* @mask - register mask.
* @reserved - for future usage.
*
*/
struct bam_cmd_element {
__le32 cmd_and_addr;
__le32 data;
__le32 mask;
__le32 reserved;
};
/*
* This enum indicates the command type in a command element
*/
enum bam_command_type {
BAM_WRITE_COMMAND = 0,
BAM_READ_COMMAND,
};
/*
* prep_bam_ce_le32 - Wrapper function to prepare a single BAM command
* element with the data already in le32 format.
*
* @bam_ce: bam command element
* @addr: target address
* @cmd: BAM command
* @data: actual data for write and dest addr for read in le32
*/
static inline void
bam_prep_ce_le32(struct bam_cmd_element *bam_ce, u32 addr,
enum bam_command_type cmd, __le32 data)
{
bam_ce->cmd_and_addr =
cpu_to_le32((addr & 0xffffff) | ((cmd & 0xff) << 24));
bam_ce->data = data;
bam_ce->mask = cpu_to_le32(0xffffffff);
}
/*
* bam_prep_ce - Wrapper function to prepare a single BAM command element
* with the data.
*
* @bam_ce: BAM command element
* @addr: target address
* @cmd: BAM command
* @data: actual data for write and dest addr for read
*/
static inline void
bam_prep_ce(struct bam_cmd_element *bam_ce, u32 addr,
enum bam_command_type cmd, u32 data)
{
bam_prep_ce_le32(bam_ce, addr, cmd, cpu_to_le32(data));
}
#endif
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| amd_xdma.h | File | 483 B | 0644 |
|
| dw.h | File | 1.49 KB | 0644 |
|
| edma.h | File | 3.23 KB | 0644 |
|
| hsu.h | File | 1.63 KB | 0644 |
|
| idma64.h | File | 310 B | 0644 |
|
| imx-dma.h | File | 3.42 KB | 0644 |
|
| k3-event-router.h | File | 317 B | 0644 |
|
| k3-psil.h | File | 2.39 KB | 0644 |
|
| k3-udma-glue.h | File | 5.67 KB | 0644 |
|
| mxs-dma.h | File | 798 B | 0644 |
|
| pxa-dma.h | File | 637 B | 0644 |
|
| qcom-gpi-dma.h | File | 1.65 KB | 0644 |
|
| qcom_adm.h | File | 227 B | 0644 |
|
| qcom_bam_dma.h | File | 1.74 KB | 0644 |
|
| sprd-dma.h | File | 8.2 KB | 0644 |
|
| ti-cppi5.h | File | 33.08 KB | 0644 |
|
| xilinx_dma.h | File | 1022 B | 0644 |
|
| xilinx_dpdma.h | File | 239 B | 0644 |
|