aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_sun4v.h
blob: 8e9fc3a5b4f52d68120d360fa0d18ca6f0e9b2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/* 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 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);
extern unsigned long pci_sun4v_iommu_getmap(unsigned long devhandle,
					    unsigned long tsbid,
					    unsigned long *io_attributes,
					    unsigned long *real_address);
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);

extern unsigned long pci_sun4v_msiq_conf(unsigned long devhandle,
					 unsigned long msiqid,
					 unsigned long msiq_paddr,
					 unsigned long num_entries);
extern unsigned long pci_sun4v_msiq_info(unsigned long devhandle,
					 unsigned long msiqid,
					 unsigned long *msiq_paddr,
					 unsigned long *num_entries);
extern unsigned long pci_sun4v_msiq_getvalid(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long *valid);
extern unsigned long pci_sun4v_msiq_setvalid(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long valid);
extern unsigned long pci_sun4v_msiq_getstate(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long *state);
extern unsigned long pci_sun4v_msiq_setstate(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long state);
extern unsigned long pci_sun4v_msiq_gethead(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long *head);
extern unsigned long pci_sun4v_msiq_sethead(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long head);
extern unsigned long pci_sun4v_msiq_gettail(unsigned long devhandle,
					     unsigned long msiqid,
					     unsigned long *head);
extern unsigned long pci_sun4v_msi_getvalid(unsigned long devhandle,
					    unsigned long msinum,
					    unsigned long *valid);
extern unsigned long pci_sun4v_msi_setvalid(unsigned long devhandle,
					    unsigned long msinum,
					    unsigned long valid);
extern unsigned long pci_sun4v_msi_getmsiq(unsigned long devhandle,
					   unsigned long msinum,
					   unsigned long *msiq);
extern unsigned long pci_sun4v_msi_setmsiq(unsigned long devhandle,
					   unsigned long msinum,
					   unsigned long msiq,
					   unsigned long msitype);
extern unsigned long pci_sun4v_msi_getstate(unsigned long devhandle,
					    unsigned long msinum,
					    unsigned long *state);
extern unsigned long pci_sun4v_msi_setstate(unsigned long devhandle,
					    unsigned long msinum,
					    unsigned long state);
extern unsigned long pci_sun4v_msg_getmsiq(unsigned long devhandle,
					   unsigned long msinum,
					   unsigned long *msiq);
extern unsigned long pci_sun4v_msg_setmsiq(unsigned long devhandle,
					   unsigned long msinum,
					   unsigned long msiq);
extern unsigned long pci_sun4v_msg_getvalid(unsigned long devhandle,
					    unsigned long msinum,
					    unsigned long *valid);
extern unsigned long pci_sun4v_msg_setvalid(unsigned long devhandle,
					    unsigned long msinum,
					    unsigned long valid);

#endif /* !(_PCI_SUN4V_H) */