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 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23753a6d45SSherry Moore * Use is subject to license terms. 24753a6d45SSherry Moore */ 25753a6d45SSherry Moore 26753a6d45SSherry Moore#ifndef menu_cmd 27753a6d45SSherry Moore#define menu_cmd(cmd, num, flag, parsef) 28753a6d45SSherry Moore#endif /* menu_cmd */ 29753a6d45SSherry Moore 30753a6d45SSherry Moore#ifndef menu_cmd_end 31753a6d45SSherry Moore#define menu_cmd_end(num) 32753a6d45SSherry Moore#endif /* menu_cmd */ 33753a6d45SSherry Moore 34753a6d45SSherry Moore/* 35753a6d45SSherry Moore * Menu commands related info: 36753a6d45SSherry Moore * first field - command, 37753a6d45SSherry Moore * second field - enum for command 38753a6d45SSherry Moore * third field - command flags 39753a6d45SSherry Moore * forth field - parse function 40753a6d45SSherry Moore */ 41753a6d45SSherry Moore 42753a6d45SSherry Moore/* 43753a6d45SSherry Moore * NOTE: bootadm likes to have GRBM_KERNEL_DOLLAR_CMD == GRBM_KERNEL_CMD + 1 44753a6d45SSherry Moore * and GRBM_MODULE_DOLLAR_CMD == GRBM_MODULE_CMD + 1 45753a6d45SSherry Moore */ 46753a6d45SSherry Mooremenu_cmd("", GRBM_EMPTY_CMD, GRUB_LINE_EMPTY, skip_line) 47753a6d45SSherry Mooremenu_cmd(" ", GRBM_SEP_CMD, GRUB_LINE_INVALID, error_line) 48753a6d45SSherry Mooremenu_cmd("#", GRBM_COMMENT_CMD, GRUB_LINE_COMMENT, skip_line) 49753a6d45SSherry Mooremenu_cmd("default", GRBM_DEFAULT_CMD, GRUB_LINE_GLOBAL, error_line) 50753a6d45SSherry Mooremenu_cmd("timeout", GRBM_TIMEOUT_CMD, GRUB_LINE_GLOBAL, error_line) 51753a6d45SSherry Mooremenu_cmd("title", GRBM_TITLE_CMD, GRUB_LINE_TITLE, skip_line) 52753a6d45SSherry Mooremenu_cmd("root", GRBM_ROOT_CMD, GRUB_LINE_ENTRY, error_line) 53753a6d45SSherry Mooremenu_cmd("kernel", GRBM_KERNEL_CMD, GRUB_LINE_ENTRY, kernel) 54753a6d45SSherry Mooremenu_cmd("kernel$", GRBM_KERNEL_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_kernel) 55753a6d45SSherry Mooremenu_cmd("module", GRBM_MODULE_CMD, GRUB_LINE_ENTRY, module) 56753a6d45SSherry Mooremenu_cmd("module$", GRBM_MODULE_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_module) 57753a6d45SSherry Mooremenu_cmd("chainloader", GRBM_CHAINLOADER_CMD, GRUB_LINE_ENTRY, error_line) 58753a6d45SSherry Mooremenu_cmd("args", GRBM_ARGS_CMD, GRUB_LINE_ENTRY, error_line) 59753a6d45SSherry Mooremenu_cmd("findroot", GRBM_FINDROOT_CMD, GRUB_LINE_ENTRY, findroot) 60753a6d45SSherry Mooremenu_cmd("bootfs", GRBM_BOOTFS_CMD, GRUB_LINE_ENTRY, bootfs) 61*9db7147eSSherry Mooremenu_cmd("splashimage", GRBM_SPLASHIMAGE_CMD, GRUB_LINE_ENTRY, skip_line) 62*9db7147eSSherry Mooremenu_cmd("background", GRBM_BACKGROUND_CMD, GRUB_LINE_ENTRY, skip_line) 63*9db7147eSSherry Mooremenu_cmd("foreground", GRBM_FOREGROUND_CMD, GRUB_LINE_ENTRY, skip_line) 64753a6d45SSherry Moore 65753a6d45SSherry Mooremenu_cmd_end(GRBM_CMD_NUM) /* Should be the last one */ 66753a6d45SSherry Moore 67753a6d45SSherry Moore#undef menu_cmd 68753a6d45SSherry Moore#undef menu_cmd_end 69