xref: /titanic_50/usr/src/lib/libgrubmgmt/common/libgrub_cmd.def (revision d6114e2d100d9ec3b45f9968d45ac2e3a0827af0)
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 * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23 * Use is subject to license terms.
24 */
25
26#ifndef	menu_cmd
27#define	menu_cmd(cmd, num, flag, parsef)
28#endif	/* menu_cmd */
29
30#ifndef	menu_cmd_end
31#define	menu_cmd_end(num)
32#endif	/* menu_cmd */
33
34/*
35 * Menu commands related info:
36 * first field - command,
37 * second field - enum for command
38 * third field - command flags
39 * forth field -  parse function
40 */
41
42/*
43 * NOTE: bootadm likes to have GRBM_KERNEL_DOLLAR_CMD == GRBM_KERNEL_CMD + 1
44 * and GRBM_MODULE_DOLLAR_CMD == GRBM_MODULE_CMD + 1
45 */
46menu_cmd("", GRBM_EMPTY_CMD, GRUB_LINE_EMPTY, skip_line)
47menu_cmd(" ", GRBM_SEP_CMD, GRUB_LINE_INVALID, error_line)
48menu_cmd("#", GRBM_COMMENT_CMD, GRUB_LINE_COMMENT, skip_line)
49menu_cmd("default", GRBM_DEFAULT_CMD, GRUB_LINE_GLOBAL, error_line)
50menu_cmd("timeout", GRBM_TIMEOUT_CMD, GRUB_LINE_GLOBAL, error_line)
51menu_cmd("title", GRBM_TITLE_CMD, GRUB_LINE_TITLE, skip_line)
52menu_cmd("root", GRBM_ROOT_CMD, GRUB_LINE_ENTRY, error_line)
53menu_cmd("kernel", GRBM_KERNEL_CMD, GRUB_LINE_ENTRY, kernel)
54menu_cmd("kernel$", GRBM_KERNEL_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_kernel)
55menu_cmd("module", GRBM_MODULE_CMD, GRUB_LINE_ENTRY, module)
56menu_cmd("module$", GRBM_MODULE_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_module)
57menu_cmd("chainloader", GRBM_CHAINLOADER_CMD, GRUB_LINE_ENTRY, error_line)
58menu_cmd("args", GRBM_ARGS_CMD, GRUB_LINE_ENTRY, error_line)
59menu_cmd("findroot", GRBM_FINDROOT_CMD, GRUB_LINE_ENTRY, findroot)
60menu_cmd("bootfs", GRBM_BOOTFS_CMD, GRUB_LINE_ENTRY, bootfs)
61menu_cmd("splashimage", GRBM_SPLASHIMAGE_CMD, GRUB_LINE_ENTRY, skip_line)
62menu_cmd("background", GRBM_BACKGROUND_CMD, GRUB_LINE_ENTRY, skip_line)
63menu_cmd("foreground", GRBM_FOREGROUND_CMD, GRUB_LINE_ENTRY, skip_line)
64
65menu_cmd_end(GRBM_CMD_NUM) /* Should be the last one */
66
67#undef	menu_cmd
68#undef	menu_cmd_end
69