bootpref.h revision 1.2 1 1.1 leo /* $NetBSD: bootpref.h,v 1.2 1998/06/17 11:45:13 leo 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 * 3. All advertising materials mentioning features or use of this software
18 1.1 leo * must display the following acknowledgement:
19 1.1 leo * This product includes software developed by the NetBSD
20 1.1 leo * Foundation, Inc. and its contributors.
21 1.1 leo * 4. Neither the name of The NetBSD Foundation nor the names of its
22 1.1 leo * contributors may be used to endorse or promote products derived
23 1.1 leo * from this software without specific prior written permission.
24 1.1 leo *
25 1.1 leo * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
26 1.1 leo * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27 1.1 leo * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 1.1 leo * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
29 1.1 leo * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 1.1 leo * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 1.1 leo * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 1.1 leo * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 1.1 leo * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 1.1 leo * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 1.1 leo * POSSIBILITY OF SUCH DAMAGE.
36 1.1 leo */
37 1.1 leo #define PATH_NVRAM "/dev/nvram"
38 1.1 leo
39 1.1 leo #define NVRAM_BOOTPREF 1 /* Boot preference */
40 1.1 leo #define BOOTPREF_TOS 0x80
41 1.1 leo #define BOOTPREF_SYSV 0x40
42 1.1 leo #define BOOTPREF_NETBSD 0x20
43 1.1 leo #define BOOTPREF_LINUX 0x10
44 1.1 leo #define BOOTPREF_MAGIC 0x08
45 1.1 leo #define BOOTPREF_NONE 0x00
46 1.1 leo
47 1.1 leo #define NVRAM_LANG 6 /* Language */
48 1.2 leo #define LANG_USA 0x00
49 1.1 leo #define LANG_D 0x01
50 1.1 leo #define LANG_FR 0x02
51 1.2 leo #define LANG_GB 0x03
52 1.1 leo #define LANG_ESP 0x04
53 1.1 leo #define LANG_I 0x05
54 1.1 leo
55 1.1 leo #define NVRAM_KBDLANG 7 /* Keyboard language */
56 1.1 leo #define KBDLANG_USA 0x00
57 1.1 leo #define KBDLANG_D 0x01
58 1.1 leo #define KBDLANG_FR 0x02
59 1.1 leo #define KBDLANG_GB 0x03
60 1.1 leo #define KBDLANG_ESP 0x04
61 1.1 leo #define KBDLANG_I 0x05
62 1.1 leo #define KBDLANG_CHF 0x07
63 1.1 leo #define KBDLANG_CHD 0x08
64 1.1 leo
65 1.1 leo #define NVRAM_DATIME 8 /* TOS/GEM date & time formats */
66 1.1 leo #define DATIME_24H 0x10 /* Otherwise 12H */
67 1.1 leo #define DATIME_MMDDYY 0x00
68 1.1 leo #define DATIME_DDMMYY 0x01
69 1.1 leo #define DATIME_YYMMDD 0x02
70 1.1 leo #define DATIME_YYDDMM 0x03
71 1.1 leo
72 1.1 leo #define NVRAM_DATESEP 9 /* Date separator */
73 1.1 leo /* (ASCII value of char. or 0 for '/') */
74 1.1 leo
75 1.1 leo #define NVRAM_BOOTDLY 10 /* Bootdelay in seconds */
76 1.1 leo
77 1.1 leo #define NVRAM_VID1 14 /* Video stuff */
78 1.1 leo #define VID1_INTERLACE 01 /* Interlace (TV) / Double line (VGA) */
79 1.1 leo
80 1.1 leo #define NVRAM_VID2 15 /* Video stuff */
81 1.1 leo #define VID2_2COL 0x00
82 1.1 leo #define VID2_4COL 0x01
83 1.1 leo #define VID2_16COL 0x02
84 1.1 leo #define VID2_256COL 0x03
85 1.1 leo #define VID2_65535COL 0x04
86 1.1 leo #define VID2_80CLM 0x08 /* Otherwise 40 columns */
87 1.1 leo #define VID2_VGA 0x10 /* Otherwise TV */
88 1.1 leo #define VID2_PAL 0x20 /* Otherwise NTSC */
89 1.1 leo #define VID2_OVERSCAN 0x40
90 1.1 leo #define VID2_COMPAT 0x80
91 1.1 leo
92 1.1 leo #define NVRAM_HOSTID 16 /* Bitfield containing SCSI host-id */
93 1.1 leo #define HOSTID_MASK 0x7f
94 1.1 leo #define HOSTID_VALID 0x80
95