projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbed92e
)
added pci_resource_start() compatibility macro
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 10 Jan 2002 01:35:16 +0000
(
01:35
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 10 Jan 2002 01:35:16 +0000
(
01:35
+0000)
include/linux/pci.h
patch
|
blob
|
history
diff --git
a/include/linux/pci.h
b/include/linux/pci.h
index 095d1166ae28b926a2295f255414a848606de1ea..5a37e75f70da6e834654709a37b44b3baea66e28 100644
(file)
--- a/
include/linux/pci.h
+++ b/
include/linux/pci.h
@@
-50,6
+50,9
@@
static inline void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
#define pci_unmap_single(cookie, address, size, dir)
#define pci_dma_sync_single(cookie, address, size, dir)
+// for getting base addresses
+#define pci_resource_start(dev,bar) ((dev)->base_address[(bar)])
+
#else
#endif