Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / common / boot / grub2 / loader / i386 / bsd_normal.c
blob73b39a6bf3c87afb77a6262cadc6bf88827dafc7
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2008 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #include <grub/loader.h>
20 #include <grub/machine/loader.h>
21 #include <grub/err.h>
22 #include <grub/normal.h>
23 #include <grub/dl.h>
24 #include <grub/aout.h>
25 #include <grub/cpu/bsd.h>
27 static grub_err_t
28 grub_normal_freebsd_command (struct grub_arg_list *state
29 __attribute__ ((unused)), int argc, char **args)
31 grub_rescue_cmd_freebsd (argc, args);
32 return grub_errno;
35 static grub_err_t
36 grub_normal_openbsd_command (struct grub_arg_list *state
37 __attribute__ ((unused)), int argc, char **args)
39 grub_rescue_cmd_openbsd (argc, args);
40 return grub_errno;
43 static grub_err_t
44 grub_normal_netbsd_command (struct grub_arg_list *state
45 __attribute__ ((unused)), int argc, char **args)
47 grub_rescue_cmd_netbsd (argc, args);
48 return grub_errno;
51 static grub_err_t
52 grub_normal_freebsd_loadenv_command (struct grub_arg_list *state
53 __attribute__ ((unused)), int argc,
54 char **args)
56 grub_rescue_cmd_freebsd_loadenv (argc, args);
57 return grub_errno;
60 static grub_err_t
61 grub_normal_freebsd_module_command (struct grub_arg_list *state
62 __attribute__ ((unused)), int argc,
63 char **args)
65 grub_rescue_cmd_freebsd_module (argc, args);
66 return grub_errno;
69 GRUB_MOD_INIT (bsd_normal)
71 (void) mod; /* To stop warning. */
72 grub_register_command ("freebsd", grub_normal_freebsd_command,
73 GRUB_COMMAND_FLAG_BOTH,
74 "freebsd FILE [OPTS] [ARGS...]",
75 "Load freebsd kernel.", 0);
76 grub_register_command ("openbsd", grub_normal_openbsd_command,
77 GRUB_COMMAND_FLAG_BOTH,
78 "openbsd FILE [OPTS]", "Load openbsd kernel.", 0);
79 grub_register_command ("netbsd", grub_normal_netbsd_command,
80 GRUB_COMMAND_FLAG_BOTH,
81 "netbsd FILE [OPTS]", "Load netbsd kernel.", 0);
83 grub_register_command ("freebsd_loadenv",
84 grub_normal_freebsd_loadenv_command,
85 GRUB_COMMAND_FLAG_BOTH,
86 "freebsd_loadenv FILE", "Load freebsd env.", 0);
87 grub_register_command ("freebsd_module",
88 grub_normal_freebsd_module_command,
89 GRUB_COMMAND_FLAG_BOTH,
90 "freebsd_module [FILE [type=module_type] [ARGS...]]",
91 "Load freebsd module.", 0);
94 GRUB_MOD_FINI (bsd_normal)
96 grub_unregister_command ("freebsd");
97 grub_unregister_command ("openbsd");
98 grub_unregister_command ("netbsd");
100 grub_unregister_command ("freebsd_loadenv");
101 grub_unregister_command ("freebsd_module");