1 #include <linux/string.h>
2 #include <linux/kernel.h>
5 #include <linux/export.h>
7 #include <linux/errno.h>
18 if (!op || index >= op->
archdata.num_irqs)
64 op->
dev.archdata.iommu = bus_sd->
iommu;
65 op->
dev.archdata.stc = bus_sd->
stc;
74 static void get_cells(
struct device_node *
dp,
int *addrc,
int *sizec)
88 get_cells(dev, addrc, sizec);
97 u64 a = of_read_addr(addr, na);
98 u64 b = of_read_addr(base, na);
103 b += of_read_addr(size, ns);
116 printk(
"of_device: Cannot handle size cells (%d) > 2.", ns);
124 memcpy(result, range + na, pna * 4);
127 for (i = 0; i < na; i++)
128 result[pna - 1 - i] +=
132 memcpy(addr, result, pna * 4);