2N/A/*
2N/A * GRUB -- GRand Unified Bootloader
2N/A * Copyright (C) 2008,2009 Free Software Foundation, Inc.
2N/A *
2N/A * GRUB is free software: you can redistribute it and/or modify
2N/A * it under the terms of the GNU General Public License as published by
2N/A * the Free Software Foundation, either version 3 of the License, or
2N/A * (at your option) any later version.
2N/A *
2N/A * GRUB is distributed in the hope that it will be useful,
2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2N/A * GNU General Public License for more details.
2N/A *
2N/A * You should have received a copy of the GNU General Public License
2N/A * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
2N/A */
2N/A
2N/A/* $OpenBSD: bootarg.h,v 1.11 2003/06/02 20:20:54 mickey Exp $ */
2N/A
2N/A/*
2N/A * Copyright (c) 1996-1999 Michael Shalayeff
2N/A * All rights reserved.
2N/A *
2N/A * Redistribution and use in source and binary forms, with or without
2N/A * modification, are permitted provided that the following conditions
2N/A * are met:
2N/A * 1. Redistributions of source code must retain the above copyright
2N/A * notice, this list of conditions and the following disclaimer.
2N/A * 2. Redistributions in binary form must reproduce the above copyright
2N/A * notice, this list of conditions and the following disclaimer in the
2N/A * documentation and/or other materials provided with the distribution.
2N/A *
2N/A * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2N/A * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2N/A * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2N/A * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
2N/A * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2N/A * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2N/A * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2N/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
2N/A * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
2N/A * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
2N/A * THE POSSIBILITY OF SUCH DAMAGE.
2N/A */
2N/A
2N/A#ifndef GRUB_OPENBSD_BOOTARG_CPU_HEADER
2N/A#define GRUB_OPENBSD_BOOTARG_CPU_HEADER 1
2N/A
2N/A#define OPENBSD_BOOTARG_APIVER (OPENBSD_BAPIV_VECTOR | \
2N/A OPENBSD_BAPIV_ENV | \
2N/A OPENBSD_BAPIV_BMEMMAP)
2N/A
2N/A#define OPENBSD_BAPIV_ANCIENT 0x0 /* MD old i386 bootblocks */
2N/A#define OPENBSD_BAPIV_VARS 0x1 /* MD structure w/ add info passed */
2N/A#define OPENBSD_BAPIV_VECTOR 0x2 /* MI vector of MD structures passed */
2N/A#define OPENBSD_BAPIV_ENV 0x4 /* MI environment vars vector */
2N/A#define OPENBSD_BAPIV_BMEMMAP 0x8 /* MI memory map passed is in bytes */
2N/A
2N/A#define OPENBSD_BOOTARG_ENV 0x1000
2N/A#define OPENBSD_BOOTARG_END -1
2N/A
2N/A#define OPENBSD_BOOTARG_MMAP 0
2N/A#define OPENBSD_BOOTARG_CONSOLE 5
2N/A
2N/Astruct grub_openbsd_bootargs
2N/A{
2N/A grub_uint32_t ba_type;
2N/A grub_uint32_t ba_size;
2N/A grub_uint32_t ba_next;
2N/A} __attribute__ ((packed));
2N/A
2N/Astruct grub_openbsd_bootarg_console
2N/A{
2N/A grub_uint32_t device;
2N/A grub_uint32_t speed;
2N/A};
2N/A
2N/A#define GRUB_OPENBSD_COM_MAJOR 8
2N/A#define GRUB_OPENBSD_VGA_MAJOR 12
2N/A
2N/A#endif