1753a6d45SSherry Moore/*
2753a6d45SSherry Moore * CDDL HEADER START
3753a6d45SSherry Moore *
4753a6d45SSherry Moore * The contents of this file are subject to the terms of the
5753a6d45SSherry Moore * Common Development and Distribution License (the "License").
6753a6d45SSherry Moore * You may not use this file except in compliance with the License.
7753a6d45SSherry Moore *
8753a6d45SSherry Moore * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9753a6d45SSherry Moore * or http://www.opensolaris.org/os/licensing.
10753a6d45SSherry Moore * See the License for the specific language governing permissions
11753a6d45SSherry Moore * and limitations under the License.
12753a6d45SSherry Moore *
13753a6d45SSherry Moore * When distributing Covered Code, include this CDDL HEADER in each
14753a6d45SSherry Moore * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15753a6d45SSherry Moore * If applicable, add the following below this CDDL HEADER, with the
16753a6d45SSherry Moore * fields enclosed by brackets "[]" replaced with your own identifying
17753a6d45SSherry Moore * information: Portions Copyright [yyyy] [name of copyright owner]
18753a6d45SSherry Moore *
19753a6d45SSherry Moore * CDDL HEADER END
20753a6d45SSherry Moore */
21753a6d45SSherry Moore
22753a6d45SSherry Moore/*
23753a6d45SSherry Moore * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24753a6d45SSherry Moore * Use is subject to license terms.
25753a6d45SSherry Moore */
26753a6d45SSherry Moore
27753a6d45SSherry Moore#ifndef	grub_errno_start
28753a6d45SSherry Moore#define	grub_errno_start(num)
29753a6d45SSherry Moore#endif	/* grub_errno_start */
30753a6d45SSherry Moore
31753a6d45SSherry Moore#ifndef	grub_errno_def
32753a6d45SSherry Moore#define	grub_errno_def(num, desc)
33753a6d45SSherry Moore#endif	/* grub_errno_def */
34753a6d45SSherry Moore
35753a6d45SSherry Moore#ifndef	grub_errno_end
36753a6d45SSherry Moore#define	grub_errno_end(num)
37753a6d45SSherry Moore#endif	/* grub_errno_end */
38753a6d45SSherry Moore
39753a6d45SSherry Moore/*
40753a6d45SSherry Moore * !!! Should ALWAYS be the first one
41753a6d45SSherry Moore */
42753a6d45SSherry Mooregrub_errno_start(EG_START = -10000)
43753a6d45SSherry Moore
44753a6d45SSherry Mooregrub_errno_def(EG_INVALIDCMD,	"Invalid GRUB command")
45753a6d45SSherry Mooregrub_errno_def(EG_INVALIDMENU,	"Invalid GRUB menu")
46753a6d45SSherry Mooregrub_errno_def(EG_INVALIDENT,	"Invalid GRUB entry")
47753a6d45SSherry Mooregrub_errno_def(EG_INVALIDLINE,	"Invalid GRUB line")
48753a6d45SSherry Mooregrub_errno_def(EG_INVALIDBARG,	"Invalid GRUB boot arguments")
49753a6d45SSherry Mooregrub_errno_def(EG_FINDROOTFMT,	"Invalid format for findroot")
50753a6d45SSherry Mooregrub_errno_def(EG_FINDROOTPRT,	"Invalid partition number for findroot")
51753a6d45SSherry Mooregrub_errno_def(EG_FINDROOTSLC,	"Invalid slice number for findroot")
52753a6d45SSherry Mooregrub_errno_def(EG_UNKNOWNFS,	"Unknown file system")
53753a6d45SSherry Mooregrub_errno_def(EG_NOTZFS,	"File system is not ZFS")
54753a6d45SSherry Mooregrub_errno_def(EG_OPENZFS,	"Failed to open ZFS file system")
55753a6d45SSherry Mooregrub_errno_def(EG_INITFS,	"Initialize file system")
56753a6d45SSherry Mooregrub_errno_def(EG_MOUNTFS,	"Failed to mount file system")
57753a6d45SSherry Mooregrub_errno_def(EG_OPENFILE,	"Failed to open file")
58753a6d45SSherry Mooregrub_errno_def(EG_NOTUNIX,	"Kernel file is not unix")
59753a6d45SSherry Mooregrub_errno_def(EG_NOTABSPATH,	"Kernel path is not absolute")
60753a6d45SSherry Mooregrub_errno_def(EG_OPENKERNFILE,	"Failed to open kernel file")
61753a6d45SSherry Mooregrub_errno_def(EG_OPENMNTTAB,	"Failed to open mnttab")
62753a6d45SSherry Mooregrub_errno_def(EG_GETMNTTAB,	"Failed to get mnttab")
63753a6d45SSherry Mooregrub_errno_def(EG_CURROOT,	"Failed to get current root info")
64753a6d45SSherry Mooregrub_errno_def(EG_NUMTOOBIG,	"Requested entry number is too big")
65753a6d45SSherry Mooregrub_errno_def(EG_NOENTRY,	"No such entry found")
66753a6d45SSherry Mooregrub_errno_def(EG_XVMNOTSUP,	"xVM is not supported")
67753a6d45SSherry Mooregrub_errno_def(EG_BOOTSIGN,	"Bootsign not found")
68753a6d45SSherry Mooregrub_errno_def(EG_UNKBOOTFS,	"Unknown bootfs filesystem")
69*fda66240SKonstantin Ananyevgrub_errno_def(EG_ROOTNOTSUPP,	"Selected GRUB menu entry contains "\
70*fda66240SKonstantin Ananyev	"unsupported \"root\" command")
71753a6d45SSherry Moore
72753a6d45SSherry Moore/*
73753a6d45SSherry Moore * !!! Should ALWAYS be the last one
74753a6d45SSherry Moore */
75753a6d45SSherry Mooregrub_errno_end(EG_END)
76753a6d45SSherry Moore
77753a6d45SSherry Moore#undef	grub_errno_start
78753a6d45SSherry Moore#undef	grub_errno_def
79753a6d45SSherry Moore#undef	grub_errno_end
80