iommu.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. /* Creates table for an individual device node */
  27. extern void iommu_devnode_init_iSeries(struct pci_dev *pdev,
  28. struct device_node *dn);
  29. /* Get table parameters from HV */
  30. extern void iommu_table_getparms_iSeries(unsigned long busno,
  31. unsigned char slotno, unsigned char virtbus,
  32. struct iommu_table *tbl);
  33. extern struct iommu_table *vio_build_iommu_table_iseries(struct vio_dev *dev);
  34. extern void iommu_vio_init(void);
  35. #endif /* _ASM_POWERPC_ISERIES_IOMMU_H */