Research V7 development
authorKen Thompson <ken@research.uucp>
Sat, 5 May 1979 07:18:46 +0000 (02:18 -0500)
committerKen Thompson <ken@research.uucp>
Sat, 5 May 1979 07:18:46 +0000 (02:18 -0500)
Work on file usr/include/sys/conf.h

Co-Authored-By: Dennis Ritchie <dmr@research.uucp>
Synthesized-from: v7

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

diff --git a/usr/include/sys/conf.h b/usr/include/sys/conf.h
new file mode 100644 (file)
index 0000000..8957651
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ */
+extern struct bdevsw
+{
+       int     (*d_open)();
+       int     (*d_close)();
+       int     (*d_strategy)();
+       struct buf *d_tab;
+} bdevsw[];
+
+/*
+ * Character device switch.
+ */
+extern struct cdevsw
+{
+       int     (*d_open)();
+       int     (*d_close)();
+       int     (*d_read)();
+       char    *(*d_write)();
+       int     (*d_ioctl)();
+       int     (*d_stop)();
+       struct tty *d_ttys;
+} cdevsw[];
+
+/*
+ * tty line control switch.
+ */
+extern struct linesw
+{
+       int     (*l_open)();
+       int     (*l_close)();
+       int     (*l_read)();
+       int     (*l_write)();
+       int     (*l_ioctl)();
+       int     (*l_rint)();
+       int     (*l_rend)();
+       int     (*l_meta)();
+       int     (*l_start)();
+       int     (*l_modem)();
+} linesw[];