summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1996-04-29 20:05:52 +0000
committerjulian <julian@FreeBSD.org>1996-04-29 20:05:52 +0000
commit6c04f7821c792843619e5e9c3934607f37badfb7 (patch)
tree0428335c401ea6d2ce74a9cd4ed6fa4a14be0ff0
parent457e99728a28861f1543308cfdef3d6d678d9870 (diff)
downloadFreeBSD-src-6c04f7821c792843619e5e9c3934607f37badfb7.zip
FreeBSD-src-6c04f7821c792843619e5e9c3934607f37badfb7.tar.gz
slight re-ordering to allow the qcam to compile with devfs enabled.
-rw-r--r--sys/i386/isa/qcam.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/sys/i386/isa/qcam.c b/sys/i386/isa/qcam.c
index 016a682..154c853 100644
--- a/sys/i386/isa/qcam.c
+++ b/sys/i386/isa/qcam.c
@@ -87,6 +87,20 @@ static struct kern_devconf kdc_qcam_template = {
};
#define UNIT(dev) minor(dev)
+#define CDEV_MAJOR 73
+
+
+static d_open_t qcam_open;
+static d_close_t qcam_close;
+static d_read_t qcam_read;
+static d_ioctl_t qcam_ioctl;
+
+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)
@@ -303,14 +317,6 @@ qcam_ioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
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.
*/
OpenPOWER on IntegriCloud