1*ce099b40Smartin /* $NetBSD: bootpref.h,v 1.3 2008/04/28 20:23:15 martin Exp $ */ 2ce735c34Sleo /*- 3ce735c34Sleo * Copyright (c) 1998 The NetBSD Foundation, Inc. 4ce735c34Sleo * All rights reserved. 5ce735c34Sleo * 6ce735c34Sleo * This code is derived from software contributed to The NetBSD Foundation 7ce735c34Sleo * by Julian Coleman & Leo Weppelman. 8ce735c34Sleo * 9ce735c34Sleo * Redistribution and use in source and binary forms, with or without 10ce735c34Sleo * modification, are permitted provided that the following conditions 11ce735c34Sleo * are met: 12ce735c34Sleo * 1. Redistributions of source code must retain the above copyright 13ce735c34Sleo * notice, this list of conditions and the following disclaimer. 14ce735c34Sleo * 2. Redistributions in binary form must reproduce the above copyright 15ce735c34Sleo * notice, this list of conditions and the following disclaimer in the 16ce735c34Sleo * documentation and/or other materials provided with the distribution. 17ce735c34Sleo * 18ce735c34Sleo * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19ce735c34Sleo * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20ce735c34Sleo * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21ce735c34Sleo * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22ce735c34Sleo * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23ce735c34Sleo * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24ce735c34Sleo * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25ce735c34Sleo * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26ce735c34Sleo * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27ce735c34Sleo * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28ce735c34Sleo * POSSIBILITY OF SUCH DAMAGE. 29ce735c34Sleo */ 30ce735c34Sleo #define PATH_NVRAM "/dev/nvram" 31ce735c34Sleo 32ce735c34Sleo #define NVRAM_BOOTPREF 1 /* Boot preference */ 33ce735c34Sleo #define BOOTPREF_TOS 0x80 34ce735c34Sleo #define BOOTPREF_SYSV 0x40 35ce735c34Sleo #define BOOTPREF_NETBSD 0x20 36ce735c34Sleo #define BOOTPREF_LINUX 0x10 37ce735c34Sleo #define BOOTPREF_MAGIC 0x08 38ce735c34Sleo #define BOOTPREF_NONE 0x00 39ce735c34Sleo 40ce735c34Sleo #define NVRAM_LANG 6 /* Language */ 41bbf43dfbSleo #define LANG_USA 0x00 42ce735c34Sleo #define LANG_D 0x01 43ce735c34Sleo #define LANG_FR 0x02 44bbf43dfbSleo #define LANG_GB 0x03 45ce735c34Sleo #define LANG_ESP 0x04 46ce735c34Sleo #define LANG_I 0x05 47ce735c34Sleo 48ce735c34Sleo #define NVRAM_KBDLANG 7 /* Keyboard language */ 49ce735c34Sleo #define KBDLANG_USA 0x00 50ce735c34Sleo #define KBDLANG_D 0x01 51ce735c34Sleo #define KBDLANG_FR 0x02 52ce735c34Sleo #define KBDLANG_GB 0x03 53ce735c34Sleo #define KBDLANG_ESP 0x04 54ce735c34Sleo #define KBDLANG_I 0x05 55ce735c34Sleo #define KBDLANG_CHF 0x07 56ce735c34Sleo #define KBDLANG_CHD 0x08 57ce735c34Sleo 58ce735c34Sleo #define NVRAM_DATIME 8 /* TOS/GEM date & time formats */ 59ce735c34Sleo #define DATIME_24H 0x10 /* Otherwise 12H */ 60ce735c34Sleo #define DATIME_MMDDYY 0x00 61ce735c34Sleo #define DATIME_DDMMYY 0x01 62ce735c34Sleo #define DATIME_YYMMDD 0x02 63ce735c34Sleo #define DATIME_YYDDMM 0x03 64ce735c34Sleo 65ce735c34Sleo #define NVRAM_DATESEP 9 /* Date separator */ 66ce735c34Sleo /* (ASCII value of char. or 0 for '/') */ 67ce735c34Sleo 68ce735c34Sleo #define NVRAM_BOOTDLY 10 /* Bootdelay in seconds */ 69ce735c34Sleo 70ce735c34Sleo #define NVRAM_VID1 14 /* Video stuff */ 71ce735c34Sleo #define VID1_INTERLACE 01 /* Interlace (TV) / Double line (VGA) */ 72ce735c34Sleo 73ce735c34Sleo #define NVRAM_VID2 15 /* Video stuff */ 74ce735c34Sleo #define VID2_2COL 0x00 75ce735c34Sleo #define VID2_4COL 0x01 76ce735c34Sleo #define VID2_16COL 0x02 77ce735c34Sleo #define VID2_256COL 0x03 78ce735c34Sleo #define VID2_65535COL 0x04 79ce735c34Sleo #define VID2_80CLM 0x08 /* Otherwise 40 columns */ 80ce735c34Sleo #define VID2_VGA 0x10 /* Otherwise TV */ 81ce735c34Sleo #define VID2_PAL 0x20 /* Otherwise NTSC */ 82ce735c34Sleo #define VID2_OVERSCAN 0x40 83ce735c34Sleo #define VID2_COMPAT 0x80 84ce735c34Sleo 85ce735c34Sleo #define NVRAM_HOSTID 16 /* Bitfield containing SCSI host-id */ 86ce735c34Sleo #define HOSTID_MASK 0x7f 87ce735c34Sleo #define HOSTID_VALID 0x80 88