netbsd_reboot.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. /* $NetBSD: reboot.h,v 1.25 2007/12/25 18:33:48 perry Exp $ */
  19. /*
  20. * Copyright (c) 1982, 1986, 1988, 1993, 1994
  21. * The Regents of the University of California. All rights reserved.
  22. *
  23. * Redistribution and use in source and binary forms, with or without
  24. * modification, are permitted provided that the following conditions
  25. * are met:
  26. * 1. Redistributions of source code must retain the above copyright
  27. * notice, this list of conditions and the following disclaimer.
  28. * 2. Redistributions in binary form must reproduce the above copyright
  29. * notice, this list of conditions and the following disclaimer in the
  30. * documentation and/or other materials provided with the distribution.
  31. * 3. Neither the name of the University nor the names of its contributors
  32. * may be used to endorse or promote products derived from this software
  33. * without specific prior written permission.
  34. *
  35. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  36. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  37. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  38. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  39. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  40. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  41. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  42. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  43. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  44. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  45. * SUCH DAMAGE.
  46. *
  47. * @(#)reboot.h 8.3 (Berkeley) 12/13/94
  48. */
  49. #ifndef GRUB_NETBSD_REBOOT_CPU_HEADER
  50. #define GRUB_NETBSD_REBOOT_CPU_HEADER 1
  51. #define NETBSD_RB_AUTOBOOT 0 /* flags for system auto-booting itself */
  52. #define NETBSD_RB_ASKNAME (1 << 0) /* ask for file name to reboot from */
  53. #define NETBSD_RB_SINGLE (1 << 1) /* reboot to single user only */
  54. #define NETBSD_RB_NOSYNC (1 << 2) /* dont sync before reboot */
  55. #define NETBSD_RB_HALT (1 << 3) /* don't reboot, just halt */
  56. #define NETBSD_RB_INITNAME (1 << 4) /* name given for /etc/init (unused) */
  57. #define NETBSD_RB_UNUSED1 (1 << 5) /* was RB_DFLTROOT, obsolete */
  58. #define NETBSD_RB_KDB (1 << 6) /* give control to kernel debugger */
  59. #define NETBSD_RB_RDONLY (1 << 7) /* mount root fs read-only */
  60. #define NETBSD_RB_DUMP (1 << 8) /* dump kernel memory before reboot */
  61. #define NETBSD_RB_MINIROOT (1 << 9) /* mini-root present in memory at boot time */
  62. #define NETBSD_RB_STRING (1 << 10) /* use provided bootstr */
  63. #define NETBSD_RB_POWERDOWN ((1 << 11) | RB_HALT) /* turn power off (or at least halt) */
  64. #define NETBSD_RB_USERCONFIG (1 << 12) /* change configured devices */
  65. #define NETBSD_AB_NORMAL 0 /* boot normally (default) */
  66. #define NETBSD_AB_QUIET (1 << 16) /* boot quietly */
  67. #define NETBSD_AB_VERBOSE (1 << 17) /* boot verbosely */
  68. #define NETBSD_AB_SILENT (1 << 18) /* boot silently */
  69. #define NETBSD_AB_DEBUG (1 << 19) /* boot with debug messages */
  70. #define NETBSD_AB_NOSMP (1 << 28) /* Boot without SMP support. */
  71. #define NETBSD_AB_NOACPI (1 << 29) /* Boot without ACPI support. */
  72. #endif