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