summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-23 09:18:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-23 09:18:23 +0000
commitcbc6f5f54a798af609e48fc5a95be2c6f82ca208 (patch)
tree1ade1b560bc4f6e1a1e3ac9c1dc9f7d023f21f8c /sys/arch
parenta6f67f564831b24c5854f2cf6bbfe80eb2017ead (diff)
add EE_TRUE and EE_FALSE
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/include/eeprom.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/arch/sparc/include/eeprom.h b/sys/arch/sparc/include/eeprom.h
index 6ef5aedc2cd..0f47f5b41f2 100644
--- a/sys/arch/sparc/include/eeprom.h
+++ b/sys/arch/sparc/include/eeprom.h
@@ -36,6 +36,15 @@
* a ROM section, and a software section (defined in detail elsewhere).
*/
+/*
+ * Note that most places where the PROM stores a "true/false" flag,
+ * the true value is 0x12 and false is the usual zero. Such flags
+ * all take the values EE_TRUE or EE_FALSE so this file does not
+ * need to define so many value macros.
+ */
+#define EE_TRUE 0x12
+#define EE_FALSE 0x00
+
struct ee_keymap {
u_char keymap[128]; /* PROM/EEPROM are 7 bit */
};