diff options
author | David S. Miller <davem@davemloft.net> | 2007-12-25 05:20:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-12-26 22:33:46 -0500 |
commit | bcea1db16ba1c45ccebb3bfb8441642d1342c4d5 (patch) | |
tree | 6930a11e79193d56e2c0f344c04ac5c37a56f7eb /include/asm-sparc64 | |
parent | 11ee29577cc1637f94d903a6ea322cf1ed8ce1b3 (diff) |
[SPARC64]: Implement pci_resource_to_user()
This makes libpciaccess able to mmap() resources of the
device properly.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sparc64/pci.h b/include/asm-sparc64/pci.h index 1393e57d50fb..f59f2571295b 100644 --- a/include/asm-sparc64/pci.h +++ b/include/asm-sparc64/pci.h | |||
@@ -200,6 +200,10 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | |||
200 | struct device_node; | 200 | struct device_node; |
201 | extern struct device_node *pci_device_to_OF_node(struct pci_dev *pdev); | 201 | extern struct device_node *pci_device_to_OF_node(struct pci_dev *pdev); |
202 | 202 | ||
203 | #define HAVE_ARCH_PCI_RESOURCE_TO_USER | ||
204 | extern void pci_resource_to_user(const struct pci_dev *dev, int bar, | ||
205 | const struct resource *rsrc, | ||
206 | resource_size_t *start, resource_size_t *end); | ||
203 | #endif /* __KERNEL__ */ | 207 | #endif /* __KERNEL__ */ |
204 | 208 | ||
205 | #endif /* __SPARC64_PCI_H */ | 209 | #endif /* __SPARC64_PCI_H */ |