1139825Simp/*- 214484Shsu * Copyright (c) 1982, 1986, 1988, 1993, 1994 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * Redistribution and use in source and binary forms, with or without 61541Srgrimes * modification, are permitted provided that the following conditions 71541Srgrimes * are met: 81541Srgrimes * 1. Redistributions of source code must retain the above copyright 91541Srgrimes * notice, this list of conditions and the following disclaimer. 101541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111541Srgrimes * notice, this list of conditions and the following disclaimer in the 121541Srgrimes * documentation and/or other materials provided with the distribution. 131541Srgrimes * 4. Neither the name of the University nor the names of its contributors 141541Srgrimes * may be used to endorse or promote products derived from this software 151541Srgrimes * without specific prior written permission. 161541Srgrimes * 171541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 181541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 211541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 221541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 231541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 241541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 251541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 261541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 271541Srgrimes * SUCH DAMAGE. 281541Srgrimes * 2914484Shsu * @(#)reboot.h 8.3 (Berkeley) 12/13/94 3050477Speter * $FreeBSD: stable/11/sys/sys/reboot.h 344378 2019-02-20 19:19:24Z kevans $ 311541Srgrimes */ 321541Srgrimes 332165Spaul#ifndef _SYS_REBOOT_H_ 34122694Sbde#define _SYS_REBOOT_H_ 352165Spaul 361541Srgrimes/* 3714484Shsu * Arguments to reboot system call. These are passed to 3814484Shsu * the boot program and on to init. 391541Srgrimes */ 401541Srgrimes#define RB_AUTOBOOT 0 /* flags for system auto-booting itself */ 411541Srgrimes 4214484Shsu#define RB_ASKNAME 0x001 /* ask for file name to reboot from */ 4314484Shsu#define RB_SINGLE 0x002 /* reboot to single user only */ 4414484Shsu#define RB_NOSYNC 0x004 /* dont sync before reboot */ 4514484Shsu#define RB_HALT 0x008 /* don't reboot, just halt */ 4614484Shsu#define RB_INITNAME 0x010 /* name given for /etc/init (unused) */ 4714484Shsu#define RB_DFLTROOT 0x020 /* use compiled-in rootdev */ 4814484Shsu#define RB_KDB 0x040 /* give control to kernel debugger */ 4914484Shsu#define RB_RDONLY 0x080 /* mount root fs read-only */ 501541Srgrimes#define RB_DUMP 0x100 /* dump kernel memory before reboot */ 511541Srgrimes#define RB_MINIROOT 0x200 /* mini-root present in memory at boot time */ 52122694Sbde#define RB_VERBOSE 0x800 /* print all potentially useful info */ 53122694Sbde#define RB_SERIAL 0x1000 /* use serial port as console */ 547951Sphk#define RB_CDROM 0x2000 /* use cdrom as root */ 55122694Sbde#define RB_POWEROFF 0x4000 /* turn the power off if possible */ 5617847Spst#define RB_GDB 0x8000 /* use GDB remote debugger instead of DDB */ 57122694Sbde#define RB_MUTE 0x10000 /* start up with the console muted */ 58122694Sbde#define RB_SELFTEST 0x20000 /* don't complete the boot; do selftest */ 59122749Sbde#define RB_RESERVED1 0x40000 /* reserved for internal use of boot blocks */ 60122749Sbde#define RB_RESERVED2 0x80000 /* reserved for internal use of boot blocks */ 61122749Sbde#define RB_PAUSE 0x100000 /* pause after each output line during probe */ 62287964Strasz#define RB_REROOT 0x200000 /* unmount the rootfs and mount it again */ 63344378Skevans#define RB_PROBE 0x10000000 /* Probe multiple consoles */ 64122694Sbde#define RB_MULTIPLE 0x20000000 /* use multiple consoles */ 651541Srgrimes 665896Sbde#define RB_BOOTINFO 0x80000000 /* have `struct bootinfo *' arg */ 675896Sbde 68122749Sbde#endif 69