summaryrefslogtreecommitdiff
path: root/sysutils/grub/patches/patch-ad
blob: 10e50b29ae91b889833a5f632e889124a9dce580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$NetBSD: patch-ad,v 1.3 2005/08/21 15:08:46 jmmv Exp $

--- stage2/netbsd_reboot.h	1970-01-01 01:00:00.000000000 +0100
+++ stage2/netbsd_reboot.h	2005-07-25 21:49:37.000000000 +0200
@@ -0,0 +1,66 @@
+/*	$NetBSD: patch-ad,v 1.3 2005/08/21 15:08:46 jmmv Exp $	*/
+
+/*
+ * Copyright (c) 1982, 1986, 1988, 1993, 1994
+ *	The Regents of the University of California.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *	@(#)reboot.h	8.3 (Berkeley) 12/13/94
+ */
+
+/*
+ * WARNING! This file is stripped and modified!
+ */
+
+/*
+ * Arguments to reboot system call.  These are passed to the boot program,
+ * and then on to init.
+ */
+#define	NB_RB_AUTOBOOT	0	/* flags for system auto-booting itself */
+
+#define	NB_RB_ASKNAME	0x001	/* ask for file name to reboot from */
+#define	NB_RB_SINGLE	    0x002	/* reboot to single user only */
+#define	NB_RB_NOSYNC	    0x004	/* dont sync before reboot */
+#define	NB_RB_HALT		0x008	/* don't reboot, just halt */
+#define	NB_RB_INITNAME	0x010	/* name given for /etc/init (unused) */
+#define	__NB_RB_UNUSED1	0x020	/* was RB_DFLTROOT, obsolete */
+#define	NB_RB_KDB		0x040	/* give control to kernel debugger */
+#define	NB_RB_RDONLY	    0x080	/* mount root fs read-only */
+#define	NB_RB_DUMP		0x100	/* dump kernel memory before reboot */
+#define	NB_RB_MINIROOT	0x200	/* mini-root present in memory at boot time */
+#define	NB_RB_STRING	    0x400	/* use provided bootstr */
+#define	NB_RB_POWERDOWN	(RB_HALT|0x800) /* turn power off (or at least halt) */
+#define NB_RB_USERCONF	0x1000	/* change configured devices */
+
+/*
+ * Extra autoboot flags (passed by boot prog to kernel). See also
+ * macros bootverbose, bootquiet in <sys/systm.h>.
+ */
+#define	NB_AB_NORMAL	0x00000	/* boot normally (default) */
+#define	NB_AB_QUIET	    0x10000 /* boot quietly */
+#define	NB_AB_VERBOSE	0x20000	/* boot verbosely */
+#define	NB_AB_SILENT	0x40000	/* boot silently */
+#define	NB_AB_DEBUG	    0x80000	/* boot with debug messages */