patch-2.4.8 linux/include/asm-s390x/setup.h
Next file: linux/include/asm-s390x/signal.h
Previous file: linux/include/asm-s390x/s390dyn.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed Jul 25 14:12:02 2001
- Orig file:
v2.4.7/linux/include/asm-s390x/setup.h
- Orig date:
Wed Apr 11 19:02:29 2001
diff -u --recursive --new-file v2.4.7/linux/include/asm-s390x/setup.h linux/include/asm-s390x/setup.h
@@ -29,6 +29,22 @@
#define MACHINE_IS_P390 (machine_flags & 4)
#define MACHINE_HAS_MVPG (machine_flags & 16)
+#define MACHINE_HAS_HWC (!MACHINE_IS_P390)
+
+/*
+ * Console mode. Override with conmode=
+ */
+extern unsigned int console_mode;
+extern unsigned int console_device;
+
+#define CONSOLE_IS_UNDEFINED (console_mode == 0)
+#define CONSOLE_IS_HWC (console_mode == 1)
+#define CONSOLE_IS_3215 (console_mode == 2)
+#define CONSOLE_IS_3270 (console_mode == 3)
+#define SET_CONSOLE_HWC do { console_mode = 1; } while (0)
+#define SET_CONSOLE_3215 do { console_mode = 2; } while (0)
+#define SET_CONSOLE_3270 do { console_mode = 3; } while (0)
+
#else
#define IPL_DEVICE 0x10400
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)