BSD 4_1_snap development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 3 Apr 1981 07:52:47 +0000 (23:52 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 3 Apr 1981 07:52:47 +0000 (23:52 -0800)
Work on file sys/h/conf.h

Synthesized-from: CSRG/cd1/4.1.snap

sys/h/conf.h [new file with mode: 0644]

diff --git a/sys/h/conf.h b/sys/h/conf.h
new file mode 100644 (file)
index 0000000..7c94100
--- /dev/null
@@ -0,0 +1,72 @@
+/*     conf.h  4.7     81/04/03        */
+
+/*
+ * Declaration of block device
+ * switch. Each entry (row) is
+ * the only link between the
+ * main unix code and the driver.
+ * The initialization of the
+ * device switches is in the
+ * file conf.c.
+ */
+struct bdevsw
+{
+       int     (*d_open)();
+       int     (*d_close)();
+       int     (*d_strategy)();
+       int     (*d_dump)();
+       int     d_flags;
+};
+#ifdef KERNEL
+struct bdevsw bdevsw[];
+#endif
+
+/*
+ * Character device switch.
+ */
+struct cdevsw
+{
+       int     (*d_open)();
+       int     (*d_close)();
+       int     (*d_read)();
+       int     (*d_write)();
+       int     (*d_ioctl)();
+       int     (*d_stop)();
+       int     (*d_reset)();
+       struct tty *d_ttys;
+};
+#ifdef KERNEL
+struct cdevsw cdevsw[];
+#endif
+
+/*
+ * tty line control switch.
+ */
+struct linesw
+{
+       int     (*l_open)();
+       int     (*l_close)();
+       int     (*l_read)();
+       char    *(*l_write)();
+       int     (*l_ioctl)();
+       int     (*l_rint)();
+       int     (*l_rend)();
+       int     (*l_meta)();
+       int     (*l_start)();
+       int     (*l_modem)();
+};
+#ifdef KERNEL
+struct linesw linesw[];
+#endif
+
+/*
+ * Swap device information
+ */
+struct swdevt
+{
+       dev_t   sw_dev;
+       int     sw_freed;
+};
+#ifdef KERNEL
+struct swdevt swdevt[];
+#endif