2006-02-10 14:05:54 +08:00
|
|
|
/* pci_sun4v.h: SUN4V specific PCI controller support.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 David S. Miller (davem@davemloft.net)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PCI_SUN4V_H
|
|
|
|
#define _PCI_SUN4V_H
|
|
|
|
|
|
|
|
extern unsigned long pci_sun4v_devino_to_sysino(unsigned long devhandle,
|
|
|
|
unsigned long deino);
|
|
|
|
extern unsigned long pci_sun4v_iommu_map(unsigned long devhandle,
|
|
|
|
unsigned long tsbid,
|
|
|
|
unsigned long num_ttes,
|
|
|
|
unsigned long io_attributes,
|
|
|
|
unsigned long io_page_list_pa);
|
|
|
|
extern unsigned long pci_sun4v_iommu_demap(unsigned long devhandle,
|
|
|
|
unsigned long tsbid,
|
|
|
|
unsigned long num_ttes);
|
2006-02-10 14:20:01 +08:00
|
|
|
extern unsigned long pci_sun4v_config_get(unsigned long devhandle,
|
|
|
|
unsigned long pci_device,
|
|
|
|
unsigned long config_offset,
|
|
|
|
unsigned long size);
|
|
|
|
extern int pci_sun4v_config_put(unsigned long devhandle,
|
|
|
|
unsigned long pci_device,
|
|
|
|
unsigned long config_offset,
|
|
|
|
unsigned long size,
|
|
|
|
unsigned long data);
|
2006-02-10 14:05:54 +08:00
|
|
|
|
|
|
|
#endif /* !(_PCI_SUN4V_H) */
|