summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-04-17 09:37:17 +0000
committerpst <pst@FreeBSD.org>1996-04-17 09:37:17 +0000
commit4ca9bc781dfbda52691224500c1848b5002be817 (patch)
treee22359eb5aab85ce91c4e97bc75c350731a7bbc0 /sys/i386/isa
parent451ae592eedce2e4518680b0d67a2a46181cb269 (diff)
downloadFreeBSD-src-4ca9bc781dfbda52691224500c1848b5002be817.zip
FreeBSD-src-4ca9bc781dfbda52691224500c1848b5002be817.tar.gz
Support FreeBSD v2.1
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/qcam.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/sys/i386/isa/qcam.c b/sys/i386/isa/qcam.c
index 0068035..016a682 100644
--- a/sys/i386/isa/qcam.c
+++ b/sys/i386/isa/qcam.c
@@ -88,25 +88,6 @@ static struct kern_devconf kdc_qcam_template = {
#define UNIT(dev) minor(dev)
-static int qcam_probe(struct isa_device *id);
-static int qcam_attach(struct isa_device *id);
-
-struct isa_driver qcamdriver =
- {qcam_probe, qcam_attach, "qcam"};
-
-static d_open_t qcam_open;
-static d_close_t qcam_close;
-static d_read_t qcam_read;
-static d_ioctl_t qcam_ioctl;
-
-#define CDEV_MAJOR 73
-
-static struct cdevsw qcam_cdevsw =
- { qcam_open, qcam_close, qcam_read, nowrite,
- qcam_ioctl, nostop, nullreset, nodevtotty,
- noselect, nommap, nostrategy, "qcam",
- NULL, -1 };
-
static void
qcam_registerdev (struct isa_device *id)
{
@@ -316,6 +297,20 @@ qcam_ioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
return 0;
}
+#ifdef __FreeBSD__
+#ifdef nostrategy /* new configuration system? */
+
+struct isa_driver qcamdriver =
+ {qcam_probe, qcam_attach, "qcam"};
+
+#define CDEV_MAJOR 73
+
+static struct cdevsw qcam_cdevsw =
+ { qcam_open, qcam_close, qcam_read, nowrite,
+ qcam_ioctl, nostop, nullreset, nodevtotty,
+ noselect, nommap, nostrategy, "qcam",
+ NULL, -1 };
+
/*
* Initialize the dynamic cdevsw hooks.
*/
@@ -334,6 +329,8 @@ qcam_drvinit (void *unused)
SYSINIT(qcamdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,qcam_drvinit,NULL)
+#endif /* new configuration system */
+
#ifdef QCAM_MODULE
#include <sys/exec.h>
@@ -398,4 +395,5 @@ qcam_mod (struct lkm_table *lkmtp, int cmd, int ver)
}
#endif /* QCAM_MODULE */
+#endif /* FreeBSD */
#endif /* NQCAM */
OpenPOWER on IntegriCloud