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