Source
1
1
#ifndef _IOMMU_H
2
2
#define _IOMMU_H 1
3
3
4
4
#include <linux/pci.h>
5
5
6
6
struct parisc_device;
7
7
struct ioc;
8
8
9
-
static inline void *parisc_walk_tree(struct device *dev)
9
+
static inline struct pci_hba_data *parisc_walk_tree(struct device *dev)
10
10
{
11
11
struct device *otherdev;
12
12
13
13
if (likely(dev->platform_data))
14
14
return dev->platform_data;
15
15
16
16
/* OK, just traverse the bus to find it */
17
17
for (otherdev = dev->parent;
18
18
otherdev;
19
19
otherdev = otherdev->parent) {