fsl_pamu_stash.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef __FSL_PAMU_STASH_H
  19. #define __FSL_PAMU_STASH_H
  20. /* cache stash targets */
  21. enum pamu_stash_target {
  22. PAMU_ATTR_CACHE_L1 = 1,
  23. PAMU_ATTR_CACHE_L2,
  24. PAMU_ATTR_CACHE_L3,
  25. };
  26. /*
  27. * This attribute allows configuring stashig specific parameters
  28. * in the PAMU hardware.
  29. */
  30. struct pamu_stash_attribute {
  31. u32 cpu; /* cpu number */
  32. u32 cache; /* cache to stash to: L1,L2,L3 */
  33. };
  34. #endif /* __FSL_PAMU_STASH_H */