Annotation of qemu/roms/ipxe/src/hci/commands/autoboot_cmd.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (C) 2010 Michael Brown <[email protected]>.
                      3:  *
                      4:  * This program is free software; you can redistribute it and/or
                      5:  * modify it under the terms of the GNU General Public License as
                      6:  * published by the Free Software Foundation; either version 2 of the
                      7:  * License, or any later version.
                      8:  *
                      9:  * This program is distributed in the hope that it will be useful, but
                     10:  * WITHOUT ANY WARRANTY; without even the implied warranty of
                     11:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                     12:  * General Public License for more details.
                     13:  *
                     14:  * You should have received a copy of the GNU General Public License
                     15:  * along with this program; if not, write to the Free Software
                     16:  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
                     17:  */
                     18: 
                     19: #include <stdio.h>
                     20: #include <getopt.h>
                     21: #include <ipxe/command.h>
                     22: #include <ipxe/parseopt.h>
                     23: #include <ipxe/netdevice.h>
                     24: #include <hci/ifmgmt_cmd.h>
                     25: #include <usr/autoboot.h>
                     26: 
                     27: FILE_LICENCE ( GPL2_OR_LATER );
                     28: 
                     29: /** @file
                     30:  *
                     31:  * Booting commands
                     32:  *
                     33:  */
                     34: 
                     35: /** "autoboot" command descriptor */
                     36: static struct command_descriptor autoboot_cmd =
                     37:        COMMAND_DESC ( struct ifcommon_options, ifcommon_opts, 0, MAX_ARGUMENTS,
                     38:                       "[<interface>...]" );
                     39: 
                     40: /**
                     41:  * "autoboot" command
                     42:  *
                     43:  * @v argc             Argument count
                     44:  * @v argv             Argument list
                     45:  * @ret rc             Return status code
                     46:  */
                     47: static int autoboot_exec ( int argc, char **argv ) {
                     48:        return ifcommon_exec ( argc, argv, &autoboot_cmd, netboot, 0 );
                     49: }
                     50: 
                     51: /** Booting commands */
                     52: struct command autoboot_commands[] __command = {
                     53:        {
                     54:                .name = "autoboot",
                     55:                .exec = autoboot_exec,
                     56:        },
                     57: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.