From: Frank Mori Hess Date: Thu, 10 Jan 2002 01:35:16 +0000 (+0000) Subject: added pci_resource_start() compatibility macro X-Git-Tag: r0_7_62~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a5d04f3ccdebacc68fa8dffb2d75a07bb9b668d;p=comedi.git added pci_resource_start() compatibility macro --- diff --git a/include/linux/pci.h b/include/linux/pci.h index 095d1166..5a37e75f 100644 --- 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