smmu.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * IOMMU API for SMMU in Tegra30
  3. *
  4. * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along with
  16. * this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  18. */
  19. #ifndef MACH_SMMU_H
  20. #define MACH_SMMU_H
  21. enum smmu_hwgrp {
  22. HWGRP_AFI,
  23. HWGRP_AVPC,
  24. HWGRP_DC,
  25. HWGRP_DCB,
  26. HWGRP_EPP,
  27. HWGRP_G2,
  28. HWGRP_HC,
  29. HWGRP_HDA,
  30. HWGRP_ISP,
  31. HWGRP_MPE,
  32. HWGRP_NV,
  33. HWGRP_NV2,
  34. HWGRP_PPCS,
  35. HWGRP_SATA,
  36. HWGRP_VDE,
  37. HWGRP_VI,
  38. HWGRP_COUNT,
  39. HWGRP_END = ~0,
  40. };
  41. #define HWG_AFI (1 << HWGRP_AFI)
  42. #define HWG_AVPC (1 << HWGRP_AVPC)
  43. #define HWG_DC (1 << HWGRP_DC)
  44. #define HWG_DCB (1 << HWGRP_DCB)
  45. #define HWG_EPP (1 << HWGRP_EPP)
  46. #define HWG_G2 (1 << HWGRP_G2)
  47. #define HWG_HC (1 << HWGRP_HC)
  48. #define HWG_HDA (1 << HWGRP_HDA)
  49. #define HWG_ISP (1 << HWGRP_ISP)
  50. #define HWG_MPE (1 << HWGRP_MPE)
  51. #define HWG_NV (1 << HWGRP_NV)
  52. #define HWG_NV2 (1 << HWGRP_NV2)
  53. #define HWG_PPCS (1 << HWGRP_PPCS)
  54. #define HWG_SATA (1 << HWGRP_SATA)
  55. #define HWG_VDE (1 << HWGRP_VDE)
  56. #define HWG_VI (1 << HWGRP_VI)
  57. #endif /* MACH_SMMU_H */