summaryrefslogtreecommitdiffstats
path: root/driver/base.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-02-28 14:50:47 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-02-28 14:50:47 +0100
commit631f0929c155087648acdd00ef0e2039737f8803 (patch)
treed3ac6f929a2cfcbc9cd5604c8d538adae71006c2 /driver/base.h
parent30d740cc6accc3bd477e6bc924d5b74dad71ee6d (diff)
downloadpcitool-631f0929c155087648acdd00ef0e2039737f8803.tar.gz
pcitool-631f0929c155087648acdd00ef0e2039737f8803.tar.bz2
pcitool-631f0929c155087648acdd00ef0e2039737f8803.tar.xz
pcitool-631f0929c155087648acdd00ef0e2039737f8803.zip
Support emulation mode without real hardware
Diffstat (limited to 'driver/base.h')
-rw-r--r--driver/base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/base.h b/driver/base.h
index b976d3f..5b977fa 100644
--- a/driver/base.h
+++ b/driver/base.h
@@ -17,7 +17,9 @@ int pcidriver_open(struct inode *inode, struct file *filp );
int pcidriver_release(struct inode *inode, struct file *filp);
/* prototypes for device operations */
+#ifndef PCIDRIVER_DUMMY_DEVICE
static struct pci_driver pcidriver_driver;
+#endif /* ! PCIDRIVER_DUMMY_DEVICE */
static int __devinit pcidriver_probe(struct pci_dev *pdev, const struct pci_device_id *id);
static void __devexit pcidriver_remove(struct pci_dev *pdev);