brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · a577be9 Raw
51 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 *  Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com4 */5 6#ifndef K3_PSIL_PRIV_H_7#define K3_PSIL_PRIV_H_8 9#include <linux/dma/k3-psil.h>10 11struct psil_ep {12	u32 thread_id;13	struct psil_endpoint_config ep_config;14};15 16/**17 * struct psil_ep_map - PSI-L thread ID configuration maps18 * @name:	Name of the map, set it to the name of the SoC19 * @src:	Array of source PSI-L thread configurations20 * @src_count:	Number of entries in the src array21 * @dst:	Array of destination PSI-L thread configurations22 * @dst_count:	Number of entries in the dst array23 *24 * In case of symmetric configuration for a matching src/dst thread (for example25 * 0x4400 and 0xc400) only the src configuration can be present. If no dst26 * configuration found the code will look for (dst_thread_id & ~0x8000) to find27 * the symmetric match.28 */29struct psil_ep_map {30	char *name;31	struct psil_ep	*src;32	int src_count;33	struct psil_ep	*dst;34	int dst_count;35};36 37struct psil_endpoint_config *psil_get_ep_config(u32 thread_id);38 39/* SoC PSI-L endpoint maps */40extern struct psil_ep_map am654_ep_map;41extern struct psil_ep_map j721e_ep_map;42extern struct psil_ep_map j7200_ep_map;43extern struct psil_ep_map am64_ep_map;44extern struct psil_ep_map j721s2_ep_map;45extern struct psil_ep_map am62_ep_map;46extern struct psil_ep_map am62a_ep_map;47extern struct psil_ep_map j784s4_ep_map;48extern struct psil_ep_map am62p_ep_map;49 50#endif /* K3_PSIL_PRIV_H_ */51