git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
char/xilinx_hwicap/xilinx_hwicap.c: Removed duplicated include
[safe/jmp/linux-2.6]
/
include
/
asm-x86
/
amd_iommu_types.h
diff --git
a/include/asm-x86/amd_iommu_types.h
b/include/asm-x86/amd_iommu_types.h
index
2e8601b
..
22aa58c
100644
(file)
--- a/
include/asm-x86/amd_iommu_types.h
+++ b/
include/asm-x86/amd_iommu_types.h
@@
-332,4
+332,11
@@
static inline void print_devid(u16 devid, int nl)
printk("\n");
}
+/* takes bus and device/function and returns the device id
+ * FIXME: should that be in generic PCI code? */
+static inline u16 calc_devid(u8 bus, u8 devfn)
+{
+ return (((u16)bus) << 8) | devfn;
+}
+
#endif