summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/bootstrap.h
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-10-06 20:01:17 +0000
committeravg <avg@FreeBSD.org>2012-10-06 20:01:17 +0000
commit8f560f2f98ad513d615a52be1f0ddae0bb9c4824 (patch)
tree3a4ab8522497a98b0104be3028fe12bca3a41913 /sys/boot/common/bootstrap.h
parent52e7fd7c5436658853af57ebcba4109961c9126c (diff)
downloadFreeBSD-src-8f560f2f98ad513d615a52be1f0ddae0bb9c4824.zip
FreeBSD-src-8f560f2f98ad513d615a52be1f0ddae0bb9c4824.tar.gz
boot/console: handle consoles that fail to probe
- clarify meaning of console flags - perform i/o via a console only if both of the following conditions are met: o console is active (selected by user or config) o console flags that it can perform the operation - warn if a chosen console can not work (the warning may go nowhere without working and active console, though) Reviewed by: jhb Tested by: Uffe Jakobsen <uffe@uffe.org>, Olivier Cochard-Labbe' <olivier@cochard.me> MFC after: 26 days
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r--sys/boot/common/bootstrap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index f6eab3d..516b8a5 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -109,10 +109,10 @@ struct console
const char *c_name;
const char *c_desc;
int c_flags;
-#define C_PRESENTIN (1<<0)
-#define C_PRESENTOUT (1<<1)
-#define C_ACTIVEIN (1<<2)
-#define C_ACTIVEOUT (1<<3)
+#define C_PRESENTIN (1<<0) /* console can provide input */
+#define C_PRESENTOUT (1<<1) /* console can provide output */
+#define C_ACTIVEIN (1<<2) /* user wants input from console */
+#define C_ACTIVEOUT (1<<3) /* user wants output to console */
void (* c_probe)(struct console *cp); /* set c_flags to match hardware */
int (* c_init)(int arg); /* reinit XXX may need more args */
void (* c_out)(int c); /* emit c */
OpenPOWER on IntegriCloud