patch-2.4.0-test3 linux/arch/mips/cobalt/serial.h
Next file: linux/arch/mips/cobalt/setup.c
Previous file: linux/arch/mips/cobalt/reset.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Jul 9 22:18:15 2000
- Orig file:
v2.4.0-test2/linux/arch/mips/cobalt/serial.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.0-test2/linux/arch/mips/cobalt/serial.h linux/arch/mips/cobalt/serial.h
@@ -0,0 +1,28 @@
+/*
+ *
+ * Filename: serial.h
+ *
+ * Description: Some general definitions used for serial code
+ *
+ * Author(s): Timothy Stonis
+ *
+ * Copyright 1997, Cobalt Microserver, Inc.
+ */
+
+/*
+ * Serial port definitions
+ */
+#define kSCC_Base kGal_DevBank1Base
+#define kHelloWorldMsg "Cobalt Networks Diagnostics - 'We serve it, you surf it'\n\r"
+#define kSCC_ChanA 0x01
+#define kSCC_ChanB 0x00
+#define kSCC_Direct 0x02
+#define kSCC_Command 0x00
+
+#define kSCC_TestVal 0xA5
+#define kSCC_19200 0x07 /* x32 clock mode, 19200 baud */
+#define kSCC_115200 0x01 /* x16 clock mode, 115200 baud */
+
+#define Read8530(n) (*((unsigned char *) (kSCC_Base | (n))))
+
+#define Write8530(x,y) (*((unsigned char *) (kSCC_Base | (x))) = (y))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)