Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
0004  */
0005 
0006 #ifndef K3_PSIL_PRIV_H_
0007 #define K3_PSIL_PRIV_H_
0008 
0009 #include <linux/dma/k3-psil.h>
0010 
0011 struct psil_ep {
0012     u32 thread_id;
0013     struct psil_endpoint_config ep_config;
0014 };
0015 
0016 /**
0017  * struct psil_ep_map - PSI-L thread ID configuration maps
0018  * @name:   Name of the map, set it to the name of the SoC
0019  * @src:    Array of source PSI-L thread configurations
0020  * @src_count:  Number of entries in the src array
0021  * @dst:    Array of destination PSI-L thread configurations
0022  * @dst_count:  Number of entries in the dst array
0023  *
0024  * In case of symmetric configuration for a matching src/dst thread (for example
0025  * 0x4400 and 0xc400) only the src configuration can be present. If no dst
0026  * configuration found the code will look for (dst_thread_id & ~0x8000) to find
0027  * the symmetric match.
0028  */
0029 struct psil_ep_map {
0030     char *name;
0031     struct psil_ep  *src;
0032     int src_count;
0033     struct psil_ep  *dst;
0034     int dst_count;
0035 };
0036 
0037 struct psil_endpoint_config *psil_get_ep_config(u32 thread_id);
0038 
0039 /* SoC PSI-L endpoint maps */
0040 extern struct psil_ep_map am654_ep_map;
0041 extern struct psil_ep_map j721e_ep_map;
0042 extern struct psil_ep_map j7200_ep_map;
0043 extern struct psil_ep_map am64_ep_map;
0044 extern struct psil_ep_map j721s2_ep_map;
0045 extern struct psil_ep_map am62_ep_map;
0046 
0047 #endif /* K3_PSIL_PRIV_H_ */