m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/char.h
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-03 20:06:14 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-03 20:06:14 +0200
commit77c090b85d2dc085dce3712d4a5faf8452531d58 (patch)
tree8943ec00fd7871df6fc12fad61dd31e2de13adc2 /char.h
parent391f8bee7ef5a2e92d24d73f0072915b7cb12b6b (diff)
Store and use minor number
Diffstat (limited to 'char.h')
-rw-r--r--char.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/char.h b/char.h
index 503ba04..31e82a2 100644
--- a/char.h
+++ b/char.h
@@ -1,8 +1,10 @@
#ifndef CHAR_H
#define CHAR_H
-int new_doomdev(void);
-void destroy_doomdev(void);
+#include <linux/pci.h>
+
+int new_doomdev(struct pci_dev *dev);
+void destroy_doomdev(struct pci_dev *dev);
int char_init(void);
void char_cleanup(void);