1*753a6d45SSherry Moore/*
2*753a6d45SSherry Moore * CDDL HEADER START
3*753a6d45SSherry Moore *
4*753a6d45SSherry Moore * The contents of this file are subject to the terms of the
5*753a6d45SSherry Moore * Common Development and Distribution License (the "License").
6*753a6d45SSherry Moore * You may not use this file except in compliance with the License.
7*753a6d45SSherry Moore *
8*753a6d45SSherry Moore * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*753a6d45SSherry Moore * or http://www.opensolaris.org/os/licensing.
10*753a6d45SSherry Moore * See the License for the specific language governing permissions
11*753a6d45SSherry Moore * and limitations under the License.
12*753a6d45SSherry Moore *
13*753a6d45SSherry Moore * When distributing Covered Code, include this CDDL HEADER in each
14*753a6d45SSherry Moore * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*753a6d45SSherry Moore * If applicable, add the following below this CDDL HEADER, with the
16*753a6d45SSherry Moore * fields enclosed by brackets "[]" replaced with your own identifying
17*753a6d45SSherry Moore * information: Portions Copyright [yyyy] [name of copyright owner]
18*753a6d45SSherry Moore *
19*753a6d45SSherry Moore * CDDL HEADER END
20*753a6d45SSherry Moore */
21*753a6d45SSherry Moore
22*753a6d45SSherry Moore/*
23*753a6d45SSherry Moore * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*753a6d45SSherry Moore * Use is subject to license terms.
25*753a6d45SSherry Moore */
26*753a6d45SSherry Moore
27*753a6d45SSherry Moore#ifndef	grub_errno_start
28*753a6d45SSherry Moore#define	grub_errno_start(num)
29*753a6d45SSherry Moore#endif	/* grub_errno_start */
30*753a6d45SSherry Moore
31*753a6d45SSherry Moore#ifndef	grub_errno_def
32*753a6d45SSherry Moore#define	grub_errno_def(num, desc)
33*753a6d45SSherry Moore#endif	/* grub_errno_def */
34*753a6d45SSherry Moore
35*753a6d45SSherry Moore#ifndef	grub_errno_end
36*753a6d45SSherry Moore#define	grub_errno_end(num)
37*753a6d45SSherry Moore#endif	/* grub_errno_end */
38*753a6d45SSherry Moore
39*753a6d45SSherry Moore/*
40*753a6d45SSherry Moore * !!! Should ALWAYS be the first one
41*753a6d45SSherry Moore */
42*753a6d45SSherry Mooregrub_errno_start(EG_START = -10000)
43*753a6d45SSherry Moore
44*753a6d45SSherry Mooregrub_errno_def(EG_INVALIDCMD,	"Invalid GRUB command")
45*753a6d45SSherry Mooregrub_errno_def(EG_INVALIDMENU,	"Invalid GRUB menu")
46*753a6d45SSherry Mooregrub_errno_def(EG_INVALIDENT,	"Invalid GRUB entry")
47*753a6d45SSherry Mooregrub_errno_def(EG_INVALIDLINE,	"Invalid GRUB line")
48*753a6d45SSherry Mooregrub_errno_def(EG_INVALIDBARG,	"Invalid GRUB boot arguments")
49*753a6d45SSherry Mooregrub_errno_def(EG_FINDROOTFMT,	"Invalid format for findroot")
50*753a6d45SSherry Mooregrub_errno_def(EG_FINDROOTPRT,	"Invalid partition number for findroot")
51*753a6d45SSherry Mooregrub_errno_def(EG_FINDROOTSLC,	"Invalid slice number for findroot")
52*753a6d45SSherry Mooregrub_errno_def(EG_UNKNOWNFS,	"Unknown file system")
53*753a6d45SSherry Mooregrub_errno_def(EG_NOTZFS,	"File system is not ZFS")
54*753a6d45SSherry Mooregrub_errno_def(EG_OPENZFS,	"Failed to open ZFS file system")
55*753a6d45SSherry Mooregrub_errno_def(EG_INITFS,	"Initialize file system")
56*753a6d45SSherry Mooregrub_errno_def(EG_MOUNTFS,	"Failed to mount file system")
57*753a6d45SSherry Mooregrub_errno_def(EG_OPENFILE,	"Failed to open file")
58*753a6d45SSherry Mooregrub_errno_def(EG_NOTUNIX,	"Kernel file is not unix")
59*753a6d45SSherry Mooregrub_errno_def(EG_NOTABSPATH,	"Kernel path is not absolute")
60*753a6d45SSherry Mooregrub_errno_def(EG_OPENKERNFILE,	"Failed to open kernel file")
61*753a6d45SSherry Mooregrub_errno_def(EG_OPENMNTTAB,	"Failed to open mnttab")
62*753a6d45SSherry Mooregrub_errno_def(EG_GETMNTTAB,	"Failed to get mnttab")
63*753a6d45SSherry Mooregrub_errno_def(EG_CURROOT,	"Failed to get current root info")
64*753a6d45SSherry Mooregrub_errno_def(EG_NUMTOOBIG,	"Requested entry number is too big")
65*753a6d45SSherry Mooregrub_errno_def(EG_NOENTRY,	"No such entry found")
66*753a6d45SSherry Mooregrub_errno_def(EG_XVMNOTSUP,	"xVM is not supported")
67*753a6d45SSherry Mooregrub_errno_def(EG_BOOTSIGN,	"Bootsign not found")
68*753a6d45SSherry Mooregrub_errno_def(EG_UNKBOOTFS,	"Unknown bootfs filesystem")
69*753a6d45SSherry Moore
70*753a6d45SSherry Moore/*
71*753a6d45SSherry Moore * !!! Should ALWAYS be the last one
72*753a6d45SSherry Moore */
73*753a6d45SSherry Mooregrub_errno_end(EG_END)
74*753a6d45SSherry Moore
75*753a6d45SSherry Moore#undef	grub_errno_start
76*753a6d45SSherry Moore#undef	grub_errno_def
77*753a6d45SSherry Moore#undef	grub_errno_end
78