/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MULTIBOOT_H
#define _MULTIBOOT_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Definitions of structures/data for using a multiboot compliant OS loader.
*/
/* The 32-bit kernel does not require the use of the AOUT kludge */
/*
* passed by boot loader to kernel
*/
#ifndef _ASM /* excluded from assembly routines */
/*
* The Multiboot header must be somewhere in the 1st 8K of the image that
* the loader loads into memory.
*/
typedef struct multiboot_header {
/* The section header table for ELF. */
typedef struct mb_elf_shtable {
/* The module structure. */
typedef struct mb_module {
} mb_module_t;
/*
* Memory map data structure. Walked in a bizarre way - see mutltiboot
* documentation for example.
*/
typedef struct mb_memory_map {
/* Drive Info structure. */
typedef struct mb_drive_info {
/* The array of I/O ports used for the drive. */
/* Drive Mode. */
#define MB_DI_CHS_MODE 0
/*
* The Multiboot information. This is supplied by the multiboot loader
* for the OS.
*
* The flag bit fields defined what multiboot info the boot
* loader (see struct multiboot_info below) supplied:
*/
/* flag[0] mem_upper, mem_loader */
/* flag[1] boot_device */
/* flag[2] cmdline (for launching kernel) */
/* flag[3] mods_count, mods_addr */
/* flag[4] symbol table for a.out */
/* flag[5] symbol table for elf */
/* flag[6] mmap_length, mmap_addr */
/* flag[7] drives_length, drivers_addr */
/* flag[8] config_table */
/* flag[9] boot_loader_name */
/* flag[10] apm_table */
/*
* flag[11] vbe_control_info
* vbe_mode_info
* vbe_mode
* vbe_interface_seg
* vbe_interface_off
* vbe_interface_len
*/
typedef struct multiboot_info {
/*
* netinfo for Solaris diskless booting
* XXX - not part of multiboot spec
*/
struct sol_netinfo {
};
#endif /* _ASM */
#ifdef __cplusplus
}
#endif
#endif /* _MULTIBOOT_H */