David S. Miller | bade562 | 2006-02-09 22:05:54 -0800 | [diff] [blame] | 1 | /* pci_sun4v.h: SUN4V specific PCI controller support. |
| 2 | * |
| 3 | * Copyright (C) 2006 David S. Miller (davem@davemloft.net) |
| 4 | */ |
| 5 | |
| 6 | #ifndef _PCI_SUN4V_H |
| 7 | #define _PCI_SUN4V_H |
| 8 | |
David S. Miller | 6a32fd4 | 2006-02-19 22:21:32 -0800 | [diff] [blame] | 9 | extern long pci_sun4v_iommu_map(unsigned long devhandle, |
| 10 | unsigned long tsbid, |
| 11 | unsigned long num_ttes, |
| 12 | unsigned long io_attributes, |
| 13 | unsigned long io_page_list_pa); |
David S. Miller | bade562 | 2006-02-09 22:05:54 -0800 | [diff] [blame] | 14 | extern unsigned long pci_sun4v_iommu_demap(unsigned long devhandle, |
| 15 | unsigned long tsbid, |
| 16 | unsigned long num_ttes); |
David S. Miller | 1839794 | 2006-02-10 00:08:26 -0800 | [diff] [blame] | 17 | extern unsigned long pci_sun4v_iommu_getmap(unsigned long devhandle, |
| 18 | unsigned long tsbid, |
| 19 | unsigned long *io_attributes, |
| 20 | unsigned long *real_address); |
David S. Miller | 7eae642 | 2006-02-09 22:20:01 -0800 | [diff] [blame] | 21 | extern unsigned long pci_sun4v_config_get(unsigned long devhandle, |
| 22 | unsigned long pci_device, |
| 23 | unsigned long config_offset, |
| 24 | unsigned long size); |
| 25 | extern int pci_sun4v_config_put(unsigned long devhandle, |
| 26 | unsigned long pci_device, |
| 27 | unsigned long config_offset, |
| 28 | unsigned long size, |
| 29 | unsigned long data); |
David S. Miller | bade562 | 2006-02-09 22:05:54 -0800 | [diff] [blame] | 30 | |
| 31 | #endif /* !(_PCI_SUN4V_H) */ |