Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *  Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #ifndef K3_PSIL_PRIV_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define K3_PSIL_PRIV_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/dma/k3-psil.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct psil_ep {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	u32 thread_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	struct psil_endpoint_config ep_config;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * struct psil_ep_map - PSI-L thread ID configuration maps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * @name:	Name of the map, set it to the name of the SoC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * @src:	Array of source PSI-L thread configurations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @src_count:	Number of entries in the src array
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * @dst:	Array of destination PSI-L thread configurations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * @dst_count:	Number of entries in the dst array
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  * In case of symmetric configuration for a matching src/dst thread (for example
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)  * 0x4400 and 0xc400) only the src configuration can be present. If no dst
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)  * configuration found the code will look for (dst_thread_id & ~0x8000) to find
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)  * the symmetric match.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) struct psil_ep_map {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	struct psil_ep	*src;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	int src_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	struct psil_ep	*dst;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	int dst_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) struct psil_endpoint_config *psil_get_ep_config(u32 thread_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) /* SoC PSI-L endpoint maps */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) extern struct psil_ep_map am654_ep_map;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) extern struct psil_ep_map j721e_ep_map;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern struct psil_ep_map j7200_ep_map;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #endif /* K3_PSIL_PRIV_H_ */