~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to include/grub/i386/openbsd_reboot.h

Tags: upstream-1.99~20101122
ImportĀ upstreamĀ versionĀ 1.99~20101122

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  GRUB  --  GRand Unified Bootloader
 
3
 *  Copyright (C) 2008,2009  Free Software Foundation, Inc.
 
4
 *
 
5
 *  GRUB is free software: you can redistribute it and/or modify
 
6
 *  it under the terms of the GNU General Public License as published by
 
7
 *  the Free Software Foundation, either version 3 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  GRUB is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
/*      $OpenBSD: reboot.h,v 1.13 2004/03/10 23:02:53 tom Exp $ */
 
20
/*      $NetBSD: reboot.h,v 1.9 1996/04/22 01:23:25 christos Exp $      */
 
21
 
 
22
/*
 
23
 * Copyright (c) 1982, 1986, 1988, 1993, 1994
 
24
 *      The Regents of the University of California.  All rights reserved.
 
25
 *
 
26
 * Redistribution and use in source and binary forms, with or without
 
27
 * modification, are permitted provided that the following conditions
 
28
 * are met:
 
29
 * 1. Redistributions of source code must retain the above copyright
 
30
 *    notice, this list of conditions and the following disclaimer.
 
31
 * 2. Redistributions in binary form must reproduce the above copyright
 
32
 *    notice, this list of conditions and the following disclaimer in the
 
33
 *    documentation and/or other materials provided with the distribution.
 
34
 * 3. Neither the name of the University nor the names of its contributors
 
35
 *    may be used to endorse or promote products derived from this software
 
36
 *    without specific prior written permission.
 
37
 *
 
38
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 
39
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
40
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
41
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 
42
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
43
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 
44
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
45
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
46
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
47
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
48
 * SUCH DAMAGE.
 
49
 *
 
50
 *      @(#)reboot.h    8.2 (Berkeley) 7/10/94
 
51
 */
 
52
 
 
53
#ifndef GRUB_OPENBSD_REBOOT_CPU_HEADER
 
54
#define GRUB_OPENBSD_REBOOT_CPU_HEADER  1
 
55
 
 
56
#define OPENBSD_RB_ASKNAME      (1 << 0)  /* ask for file name to reboot from */
 
57
#define OPENBSD_RB_SINGLE       (1 << 1)  /* reboot to single user only */
 
58
#define OPENBSD_RB_NOSYNC       (1 << 2)  /* dont sync before reboot */
 
59
#define OPENBSD_RB_HALT         (1 << 3)  /* don't reboot, just halt */
 
60
#define OPENBSD_RB_INITNAME     (1 << 4)  /* name given for /etc/init (unused) */
 
61
#define OPENBSD_RB_DFLTROOT     (1 << 5)  /* use compiled-in rootdev */
 
62
#define OPENBSD_RB_KDB          (1 << 6)  /* give control to kernel debugger */
 
63
#define OPENBSD_RB_RDONLY       (1 << 7)  /* mount root fs read-only */
 
64
#define OPENBSD_RB_DUMP         (1 << 8)  /* dump kernel memory before reboot */
 
65
#define OPENBSD_RB_MINIROOT     (1 << 9)  /* mini-root present in memory at boot time */
 
66
#define OPENBSD_RB_CONFIG       (1 << 10) /* change configured devices */
 
67
#define OPENBSD_RB_TIMEBAD      (1 << 11) /* don't call resettodr() in boot() */
 
68
#define OPENBSD_RB_POWERDOWN    (1 << 12) /* attempt to power down machine */
 
69
#define OPENBSD_RB_SERCONS      (1 << 13) /* use serial console if available */
 
70
#define OPENBSD_RB_USERREQ      (1 << 14) /* boot() called at user request (e.g. ddb) */
 
71
 
 
72
#define OPENBSD_B_DEVMAGIC      0xa0000000
 
73
#define OPENBSD_B_ADAPTORSHIFT  24
 
74
#define OPENBSD_B_CTRLSHIFT     20
 
75
#define OPENBSD_B_UNITSHIFT     16
 
76
#define OPENBSD_B_PARTSHIFT     8
 
77
#define OPENBSD_B_TYPESHIFT     0
 
78
 
 
79
#endif