added pci_resource_start() compatibility macro
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 10 Jan 2002 01:35:16 +0000 (01:35 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 10 Jan 2002 01:35:16 +0000 (01:35 +0000)
include/linux/pci.h

index 095d1166ae28b926a2295f255414a848606de1ea..5a37e75f70da6e834654709a37b44b3baea66e28 100644 (file)
@@ -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