1 /* pci_sun4v.h: SUN4V specific PCI controller support.
3 * Copyright (C) 2006 David S. Miller (davem@davemloft.net)
9 long pci_sun4v_iommu_map(unsigned long devhandle
,
11 unsigned long num_ttes
,
12 unsigned long io_attributes
,
13 unsigned long io_page_list_pa
);
14 unsigned long pci_sun4v_iommu_demap(unsigned long devhandle
,
16 unsigned long num_ttes
);
17 unsigned long pci_sun4v_iommu_getmap(unsigned long devhandle
,
19 unsigned long *io_attributes
,
20 unsigned long *real_address
);
21 unsigned long pci_sun4v_config_get(unsigned long devhandle
,
22 unsigned long pci_device
,
23 unsigned long config_offset
,
25 int pci_sun4v_config_put(unsigned long devhandle
,
26 unsigned long pci_device
,
27 unsigned long config_offset
,
31 unsigned long pci_sun4v_msiq_conf(unsigned long devhandle
,
33 unsigned long msiq_paddr
,
34 unsigned long num_entries
);
35 unsigned long pci_sun4v_msiq_info(unsigned long devhandle
,
37 unsigned long *msiq_paddr
,
38 unsigned long *num_entries
);
39 unsigned long pci_sun4v_msiq_getvalid(unsigned long devhandle
,
41 unsigned long *valid
);
42 unsigned long pci_sun4v_msiq_setvalid(unsigned long devhandle
,
45 unsigned long pci_sun4v_msiq_getstate(unsigned long devhandle
,
47 unsigned long *state
);
48 unsigned long pci_sun4v_msiq_setstate(unsigned long devhandle
,
51 unsigned long pci_sun4v_msiq_gethead(unsigned long devhandle
,
54 unsigned long pci_sun4v_msiq_sethead(unsigned long devhandle
,
57 unsigned long pci_sun4v_msiq_gettail(unsigned long devhandle
,
60 unsigned long pci_sun4v_msi_getvalid(unsigned long devhandle
,
62 unsigned long *valid
);
63 unsigned long pci_sun4v_msi_setvalid(unsigned long devhandle
,
66 unsigned long pci_sun4v_msi_getmsiq(unsigned long devhandle
,
69 unsigned long pci_sun4v_msi_setmsiq(unsigned long devhandle
,
72 unsigned long msitype
);
73 unsigned long pci_sun4v_msi_getstate(unsigned long devhandle
,
75 unsigned long *state
);
76 unsigned long pci_sun4v_msi_setstate(unsigned long devhandle
,
79 unsigned long pci_sun4v_msg_getmsiq(unsigned long devhandle
,
82 unsigned long pci_sun4v_msg_setmsiq(unsigned long devhandle
,
85 unsigned long pci_sun4v_msg_getvalid(unsigned long devhandle
,
87 unsigned long *valid
);
88 unsigned long pci_sun4v_msg_setvalid(unsigned long devhandle
,
92 /* Sun4v HV IOMMU v2 APIs */
93 unsigned long pci_sun4v_iotsb_conf(unsigned long devhandle
,
95 unsigned long table_size
,
96 unsigned long page_size
,
97 unsigned long dvma_base
,
99 unsigned long pci_sun4v_iotsb_bind(unsigned long devhandle
,
100 unsigned long iotsb_num
,
101 unsigned int pci_device
);
102 unsigned long pci_sun4v_iotsb_map(unsigned long devhandle
,
103 unsigned long iotsb_num
,
104 unsigned long iotsb_index_iottes
,
105 unsigned long io_attributes
,
106 unsigned long io_page_list_pa
,
108 unsigned long pci_sun4v_iotsb_demap(unsigned long devhandle
,
109 unsigned long iotsb_num
,
110 unsigned long iotsb_index
,
111 unsigned long iottes
,
112 unsigned long *demapped
);
113 #endif /* !(_PCI_SUN4V_H) */