sd: remove 'ssd' driver support
[unleashed/tickless.git] / arch / x86 / include / sys / bootinfo.h
blob8f1d205a10fa6a89828fadb6f488561977da1f0c
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_BOOTINFO_H
28 #define _SYS_BOOTINFO_H
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
35 * This is used by bootfs and dboot. It should be at least as large as the
36 * number of modules that bootloaders (e.g., grub) can support. This figure
37 * has been chosen to match grub's value exactly.
39 #define MAX_BOOT_MODULES 99
42 * The 32-bit kernel loader code needs to build several structures that the
43 * kernel is expecting. They will contain native sized pointers for the
44 * target kernel.
47 #if defined(_BOOT_TARGET_amd64)
49 typedef uint64_t native_ptr_t;
51 #elif defined(_BOOT_TARGET_i386)
53 typedef uint32_t native_ptr_t;
55 #elif defined(_KERNEL)
57 typedef void *native_ptr_t;
59 #endif
61 typedef enum boot_module_type {
62 BMT_ROOTFS,
63 BMT_FILE,
64 BMT_HASH,
65 BMT_ENV
66 } boot_module_type_t;
68 struct boot_memlist {
69 uint64_t addr;
70 uint64_t size;
71 native_ptr_t next;
72 native_ptr_t prev;
76 * The kernel needs to know how to find its modules.
78 struct boot_modules {
79 native_ptr_t bm_addr;
80 native_ptr_t bm_name;
81 native_ptr_t bm_hash;
82 uint32_t bm_size;
83 boot_module_type_t bm_type;
89 #pragma pack(1)
90 struct xboot_info {
91 uint64_t bi_next_paddr; /* next physical address not used */
92 native_ptr_t bi_next_vaddr; /* next virtual address not used */
93 native_ptr_t bi_cmdline;
94 native_ptr_t bi_phys_install;
95 native_ptr_t bi_rsvdmem;
96 native_ptr_t bi_pcimem;
97 native_ptr_t bi_modules;
98 uint32_t bi_module_cnt;
99 uint32_t bi_use_largepage; /* MMU uses large pages */
100 uint32_t bi_use_pae; /* MMU uses PAE mode (8 byte PTES) */
101 uint32_t bi_use_nx; /* MMU uses NX bit in PTEs */
102 uint32_t bi_use_pge; /* MMU uses Page Global Enable */
103 native_ptr_t bi_pt_window;
104 native_ptr_t bi_pte_to_pt_window;
105 native_ptr_t bi_kseg_size; /* size used for kernel nucleus pages */
106 uint64_t bi_top_page_table;
107 #if defined(__xpv)
108 native_ptr_t bi_xen_start_info;
109 native_ptr_t bi_shared_info; /* VA for shared_info */
110 #else
111 native_ptr_t bi_mb_info; /* multiboot 1 or 2 info */
112 int bi_mb_version; /* multiboot version */
113 native_ptr_t bi_acpi_rsdp;
114 native_ptr_t bi_smbios;
115 #endif
117 #pragma pack()
119 #ifdef __cplusplus
121 #endif
123 #endif /* _SYS_BOOTINFO_H */