date and time created 86/01/05 18:46:19 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 6 Jan 1986 10:46:19 +0000 (02:46 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 6 Jan 1986 10:46:19 +0000 (02:46 -0800)
SCCS-vsn: sys/tahoe/tahoe/SYS.h 1.1
SCCS-vsn: sys/tahoe/tahoe/cp.h 1.1

usr/src/sys/tahoe/tahoe/SYS.h [new file with mode: 0644]
usr/src/sys/tahoe/tahoe/cp.h [new file with mode: 0644]

diff --git a/usr/src/sys/tahoe/tahoe/SYS.h b/usr/src/sys/tahoe/tahoe/SYS.h
new file mode 100644 (file)
index 0000000..b9bda82
--- /dev/null
@@ -0,0 +1,30 @@
+/*     SYS.h   1.1     86/01/05        */
+
+/*
+ * Macros used to define entry points
+ * in assembly language routines.
+ */
+#if defined(GPROF) || defined(PROF)
+#define        ENTRY(name, regs) \
+       .globl _/**/name; .align 2; _/**/name: .word regs; callf $0,mcount
+#define        ASENTRY(name, regs) \
+       .globl name; .align 2; name: .word regs; callf $0,mcount
+#else
+#define        ENTRY(name, regs) \
+       .globl _/**/name; .align 2; _/**/name: .word regs
+#define        ASENTRY(name, regs) \
+       .globl name; .align 2; name: .word regs
+#endif
+#define R0     0x0001
+#define R1     0x0002
+#define R2     0x0004
+#define R3     0x0008
+#define R4     0x0010
+#define R5     0x0020
+#define R6     0x0040
+#define        R7      0x0080
+#define        R8      0x0100
+#define        R9      0x0200
+#define        R10     0x0400
+#define        R11     0x0800
+#define        R12     0x1000
diff --git a/usr/src/sys/tahoe/tahoe/cp.h b/usr/src/sys/tahoe/tahoe/cp.h
new file mode 100644 (file)
index 0000000..e1afbb7
--- /dev/null
@@ -0,0 +1,47 @@
+/*     cp.h    1.1     86/01/05        */
+/*     Console Processor Interface     */
+/*     Tahoe version, Nov. 1982        */
+
+/****************************************/
+/*                                     */
+/*     Reduced DCB layout for byte     */
+/*     communication.                  */
+/*                                     */
+/****************************************/
+
+#define        CPBUFLEN 200            /* Output buffer length */
+#ifndef        LOCORE
+struct cphdr
+{
+       char    cp_unit;        /* Done bit & unit # */
+       char    cp_comm;        /* Command */
+       short   cp_count;       /* Counter (when relevant) */
+};
+
+struct cpdcb_o                 /* Output structure */
+{
+       struct  cphdr   cp_hdr;
+       char    cp_buf[CPBUFLEN]; /* Buffer for output or 'stty' */
+};
+
+struct cpdcb_i                 /* Structure for input */
+{
+       struct  cphdr   cp_hdr;
+       char    cpi_buf[4];     /* Buffer for input */
+};
+#endif
+
+#define        CPDONE  0x80            /* 'Done' bit in cp_unit */
+#define        CPTAKE  0x40            /* CP 'ack' to this cpdcb */
+
+               /* Values for 'unit' */
+#define        CPUNIT  0               /* The CP itself */
+#define        CPCONS  1               /* Console line */
+#define        CPREMOT 2               /* Remote line */
+
+               /* Values for 'command' */
+#define        CPRESET 0
+#define        CPWRITE 1
+#define        CPREAD  2
+#define        CPSTTY  3
+#define        CPBOOT  4