1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License, version 2, as
4  * published by the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program; if not, write to the Free Software
13  * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
14  *
15  * Copyright (C) 2013 Freescale Semiconductor, Inc.
16  *
17  */
18 
19 #ifndef __FSL_PAMU_STASH_H
20 #define __FSL_PAMU_STASH_H
21 
22 /* cache stash targets */
23 enum pamu_stash_target {
24 	PAMU_ATTR_CACHE_L1 = 1,
25 	PAMU_ATTR_CACHE_L2,
26 	PAMU_ATTR_CACHE_L3,
27 };
28 
29 /*
30  * This attribute allows configuring stashig specific parameters
31  * in the PAMU hardware.
32  */
33 
34 struct pamu_stash_attribute {
35 	u32 	cpu;	/* cpu number */
36 	u32 	cache;	/* cache to stash to: L1,L2,L3 */
37 };
38 
39 #endif  /* __FSL_PAMU_STASH_H */
40