xref: /onnv-gate/usr/src/lib/libgrubmgmt/common/libgrub_cmd.def (revision 10574:c8621ef15d56)
19160SSherry.Moore@Sun.COM/*
29160SSherry.Moore@Sun.COM * CDDL HEADER START
39160SSherry.Moore@Sun.COM *
49160SSherry.Moore@Sun.COM * The contents of this file are subject to the terms of the
59160SSherry.Moore@Sun.COM * Common Development and Distribution License (the "License").
69160SSherry.Moore@Sun.COM * You may not use this file except in compliance with the License.
79160SSherry.Moore@Sun.COM *
89160SSherry.Moore@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99160SSherry.Moore@Sun.COM * or http://www.opensolaris.org/os/licensing.
109160SSherry.Moore@Sun.COM * See the License for the specific language governing permissions
119160SSherry.Moore@Sun.COM * and limitations under the License.
129160SSherry.Moore@Sun.COM *
139160SSherry.Moore@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each
149160SSherry.Moore@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159160SSherry.Moore@Sun.COM * If applicable, add the following below this CDDL HEADER, with the
169160SSherry.Moore@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying
179160SSherry.Moore@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner]
189160SSherry.Moore@Sun.COM *
199160SSherry.Moore@Sun.COM * CDDL HEADER END
209160SSherry.Moore@Sun.COM */
219160SSherry.Moore@Sun.COM/*
229160SSherry.Moore@Sun.COM * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
239160SSherry.Moore@Sun.COM * Use is subject to license terms.
249160SSherry.Moore@Sun.COM */
259160SSherry.Moore@Sun.COM
269160SSherry.Moore@Sun.COM#ifndef	menu_cmd
279160SSherry.Moore@Sun.COM#define	menu_cmd(cmd, num, flag, parsef)
289160SSherry.Moore@Sun.COM#endif	/* menu_cmd */
299160SSherry.Moore@Sun.COM
309160SSherry.Moore@Sun.COM#ifndef	menu_cmd_end
319160SSherry.Moore@Sun.COM#define	menu_cmd_end(num)
329160SSherry.Moore@Sun.COM#endif	/* menu_cmd */
339160SSherry.Moore@Sun.COM
349160SSherry.Moore@Sun.COM/*
359160SSherry.Moore@Sun.COM * Menu commands related info:
369160SSherry.Moore@Sun.COM * first field - command,
379160SSherry.Moore@Sun.COM * second field - enum for command
389160SSherry.Moore@Sun.COM * third field - command flags
399160SSherry.Moore@Sun.COM * forth field -  parse function
409160SSherry.Moore@Sun.COM */
419160SSherry.Moore@Sun.COM
429160SSherry.Moore@Sun.COM/*
439160SSherry.Moore@Sun.COM * NOTE: bootadm likes to have GRBM_KERNEL_DOLLAR_CMD == GRBM_KERNEL_CMD + 1
449160SSherry.Moore@Sun.COM * and GRBM_MODULE_DOLLAR_CMD == GRBM_MODULE_CMD + 1
459160SSherry.Moore@Sun.COM */
469160SSherry.Moore@Sun.COMmenu_cmd("", GRBM_EMPTY_CMD, GRUB_LINE_EMPTY, skip_line)
479160SSherry.Moore@Sun.COMmenu_cmd(" ", GRBM_SEP_CMD, GRUB_LINE_INVALID, error_line)
489160SSherry.Moore@Sun.COMmenu_cmd("#", GRBM_COMMENT_CMD, GRUB_LINE_COMMENT, skip_line)
499160SSherry.Moore@Sun.COMmenu_cmd("default", GRBM_DEFAULT_CMD, GRUB_LINE_GLOBAL, error_line)
509160SSherry.Moore@Sun.COMmenu_cmd("timeout", GRBM_TIMEOUT_CMD, GRUB_LINE_GLOBAL, error_line)
519160SSherry.Moore@Sun.COMmenu_cmd("title", GRBM_TITLE_CMD, GRUB_LINE_TITLE, skip_line)
529160SSherry.Moore@Sun.COMmenu_cmd("root", GRBM_ROOT_CMD, GRUB_LINE_ENTRY, error_line)
539160SSherry.Moore@Sun.COMmenu_cmd("kernel", GRBM_KERNEL_CMD, GRUB_LINE_ENTRY, kernel)
549160SSherry.Moore@Sun.COMmenu_cmd("kernel$", GRBM_KERNEL_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_kernel)
559160SSherry.Moore@Sun.COMmenu_cmd("module", GRBM_MODULE_CMD, GRUB_LINE_ENTRY, module)
569160SSherry.Moore@Sun.COMmenu_cmd("module$", GRBM_MODULE_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_module)
579160SSherry.Moore@Sun.COMmenu_cmd("chainloader", GRBM_CHAINLOADER_CMD, GRUB_LINE_ENTRY, error_line)
589160SSherry.Moore@Sun.COMmenu_cmd("args", GRBM_ARGS_CMD, GRUB_LINE_ENTRY, error_line)
599160SSherry.Moore@Sun.COMmenu_cmd("findroot", GRBM_FINDROOT_CMD, GRUB_LINE_ENTRY, findroot)
609160SSherry.Moore@Sun.COMmenu_cmd("bootfs", GRBM_BOOTFS_CMD, GRUB_LINE_ENTRY, bootfs)
61*10574SSherry.Moore@Sun.COMmenu_cmd("splashimage", GRBM_SPLASHIMAGE_CMD, GRUB_LINE_ENTRY, skip_line)
62*10574SSherry.Moore@Sun.COMmenu_cmd("background", GRBM_BACKGROUND_CMD, GRUB_LINE_ENTRY, skip_line)
63*10574SSherry.Moore@Sun.COMmenu_cmd("foreground", GRBM_FOREGROUND_CMD, GRUB_LINE_ENTRY, skip_line)
649160SSherry.Moore@Sun.COM
659160SSherry.Moore@Sun.COMmenu_cmd_end(GRBM_CMD_NUM) /* Should be the last one */
669160SSherry.Moore@Sun.COM
679160SSherry.Moore@Sun.COM#undef	menu_cmd
689160SSherry.Moore@Sun.COM#undef	menu_cmd_end
69