iommu.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _ASM_POWERPC_ISERIES_IOMMU_H
  2. #define _ASM_POWERPC_ISERIES_IOMMU_H
  3. /*
  4. * Copyright (C) 2005 Stephen Rothwell, IBM Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the:
  18. * Free Software Foundation, Inc.,
  19. * 59 Temple Place, Suite 330,
  20. * Boston, MA 02111-1307 USA
  21. */
  22. struct pci_dev;
  23. struct vio_dev;
  24. struct device_node;
  25. struct iommu_table;
  26. /* Get table parameters from HV */
  27. extern void iommu_table_getparms_iSeries(unsigned long busno,
  28. unsigned char slotno, unsigned char virtbus,
  29. struct iommu_table *tbl);
  30. extern struct iommu_table *vio_build_iommu_table_iseries(struct vio_dev *dev);
  31. extern void iommu_vio_init(void);
  32. #endif /* _ASM_POWERPC_ISERIES_IOMMU_H */