From 8a5d04f3ccdebacc68fa8dffb2d75a07bb9b668d Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 10 Jan 2002 01:35:16 +0000 Subject: [PATCH] added pci_resource_start() compatibility macro --- include/linux/pci.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2