1 | /*␊ |
2 | * Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * @APPLE_LICENSE_HEADER_START@␊ |
5 | * ␊ |
6 | * Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights␊ |
7 | * Reserved. This file contains Original Code and/or Modifications of␊ |
8 | * Original Code as defined in and that are subject to the Apple Public␊ |
9 | * Source License Version 2.0 (the "License"). You may not use this file␊ |
10 | * except in compliance with the License. Please obtain a copy of the␊ |
11 | * License at http://www.apple.com/publicsource and read it before using␊ |
12 | * this file.␊ |
13 | * ␊ |
14 | * The Original Code and all software distributed under the License are␊ |
15 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
16 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
17 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
18 | * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the␊ |
19 | * License for the specific language governing rights and limitations␊ |
20 | * under the License.␊ |
21 | * ␊ |
22 | * @APPLE_LICENSE_HEADER_END@␊ |
23 | *␊ |
24 | * Copyright 1994 NeXT Computer, Inc. All rights reserved.␊ |
25 | */␊ |
26 | ␊ |
27 | #ifndef __BOOT2_BOOT_H␊ |
28 | #define __BOOT2_BOOT_H␊ |
29 | ␊ |
30 | #include "libsaio.h"␊ |
31 | ␊ |
32 | // OS X Versions␊ |
33 | #define SIERRA checkOSVersion("10.12") // Sierra␊ |
34 | #define ELCAPITAN checkOSVersion("10.11") // El Capitan␊ |
35 | #define YOSEMITE checkOSVersion("10.10") // Yosemite␊ |
36 | #define MAVERICKS checkOSVersion("10.9") // Mavericks␊ |
37 | #define MOUNTAIN_LION checkOSVersion("10.8") // Mountain Lion␊ |
38 | #define LION checkOSVersion("10.7") // Lion␊ |
39 | #define SNOW_LEOPARD checkOSVersion("10.6") // Snow Leopard␊ |
40 | #define LEOPARD checkOSVersion("10.5") // Leopard␊ |
41 | #define TIGER checkOSVersion("10.4") // Tiger␊ |
42 | ␊ |
43 | /*␊ |
44 | * Paths used by chameleon␊ |
45 | */␊ |
46 | ␊ |
47 | // kernel cache␊ |
48 | #define kDefaultCachePathLeo␉␉"/System/Library/Caches/com.apple.kernelcaches/"␊ |
49 | #define kDefaultCachePathSnow␉␉"/System/Library/Caches/com.apple.kext.caches/Startup/"␊ |
50 | #define kDefaultCachePathYosemite␉"/System/Library/PrelinkedKernels/"␊ |
51 | #define kDefaultCacheRecoveryHD␉␉"/com.apple.recovery.boot/"␊ |
52 | ␊ |
53 | // Lion installer ??␊ |
54 | #define kLionInstallerDataFolder␉"/Mac OS X Install Data/"␊ |
55 | ␊ |
56 | // Mountain Lion installer ??␊ |
57 | #define kMLionInstallerDataFolder␉"/OS X Install Data/"␊ |
58 | ␊ |
59 | // Installer new␊ |
60 | #define kDefaultCacheInstallerNew␉"/.IABootFiles/"␊ |
61 | ␊ |
62 | //kernel path␊ |
63 | #define kDefaultKernelPathPreYos␉"/"␊ |
64 | #define kDefaultKernelPathForYos␉"/System/Library/Kernels/" //for Yosemite and El Capitan␊ |
65 | ␊ |
66 | /*␊ |
67 | * Keys used in system Boot.plist␊ |
68 | */␊ |
69 | ␊ |
70 | #define kGraphicsModeKey␉␉"Graphics Mode"␊ |
71 | #define kTextModeKey␉␉␉"Text Mode"␊ |
72 | #define kQuietBootKey␉␉␉"Quiet Boot"␊ |
73 | #define kKernelFlagsKey␉␉␉"Kernel Flags"␊ |
74 | #define kKernelArchKey␉␉␉"Kernel Architecture"␊ |
75 | #define kMKextCacheKey␉␉␉"MKext Cache"␊ |
76 | #define kKernelNameKey␉␉␉"Kernel"␊ |
77 | #define kKernelCacheKey␉␉␉"Kernel Cache"␊ |
78 | #define kUseKernelCache␉␉␉"UseKernelCache"␉/* boot.c */␊ |
79 | #define kBootDeviceKey␉␉␉"Boot Device"␊ |
80 | #define kTimeoutKey␉␉␉"Timeout"␊ |
81 | #define kRootDeviceKey␉␉␉"rd"␊ |
82 | #define kBootUUIDKey␉␉␉"boot-uuid"␊ |
83 | #define kHelperRootUUIDKey␉␉"Root UUID"␊ |
84 | #define kPlatformKey␉␉␉"platform"␊ |
85 | #define kACPIKey␉␉␉"acpi"␊ |
86 | #define kCDROMPromptKey␉␉␉"CD-ROM Prompt"␊ |
87 | #define kCDROMOptionKey␉␉␉"CD-ROM Option Key"␊ |
88 | #define kRescanPromptKey␉␉"Rescan Prompt"␊ |
89 | #define kRescanKey␉␉␉"Rescan"␊ |
90 | #define kScanSingleDriveKey␉␉"Scan Single Drive"␊ |
91 | #define kInstantMenuKey␉␉␉"Instant Menu"␊ |
92 | #define kDefaultKernel␉␉␉"mach_kernel"␊ |
93 | #define kOSXKernel␉␉␉"kernel"␉␉// Yosemite+␊ |
94 | #define kGUIKey␉␉␉␉"GUI"␊ |
95 | #define kBootBannerKey␉␉␉"Boot Banner"␊ |
96 | #define kShowInfoKey␉␉␉"ShowInfo"␉␉// gui.c␊ |
97 | #define kWaitForKeypressKey␉␉"Wait"␊ |
98 | ␊ |
99 | /* AsereBLN: added these keys */␊ |
100 | #define kUseAtiROM␉␉␉"UseAtiROM"␉␉/* ati.c */␊ |
101 | #define kWake␉␉␉␉"Wake"␉␉␉/* boot.c */␊ |
102 | #define kForceWake␉␉␉"ForceWake"␉␉/* boot.c */␊ |
103 | #define kWakeImage␉␉␉"WakeImage"␉␉/* boot.c */␊ |
104 | #define kProductVersion␉␉␉"ProductVersion"␉/* boot.c */␊ |
105 | #define karch␉␉␉␉"arch"␉␉␉/* boot.c */␊ |
106 | #define kDSDT␉␉␉␉"DSDT"␉␉␉/* acpi_patcher.c */␊ |
107 | #define kDropSSDT␉␉␉"DropSSDT"␉␉/* acpi_patcher.c */␊ |
108 | #define kDeviceProperties␉␉"device-properties"␉/* device_inject.c */␊ |
109 | #define kHidePartition␉␉␉"Hide Partition"␉/* disk.c */␊ |
110 | #define kRenamePartition␉␉"Rename Partition"␉/* disk.c */␊ |
111 | #define kSMBIOSKey␉␉␉"SMBIOS"␉␉/* fake_efi.c */␊ |
112 | //#define kSystemID␉␉␉"SystemId"␉␉/* fake_efi.c */␊ |
113 | #define kSystemType␉␉␉"SystemType"␉␉/* fake_efi.c */␊ |
114 | #define kUseNvidiaROM␉␉␉"UseNvidiaROM"␉␉/* nvidia.c */␊ |
115 | #define kVBIOS␉␉␉␉"VBIOS"␉␉␉/* nvidia.c && ati.c */␊ |
116 | #define kPCIRootUID␉␉␉"PCIRootUID"␉␉/* pci_root.c */␊ |
117 | #define kEthernetBuiltIn␉␉"EthernetBuiltIn"␉/* networking.c */␊ |
118 | #define kGraphicsEnabler␉␉"GraphicsEnabler"␉/* pci_setup.c */␊ |
119 | #define kForceHPET␉␉␉"ForceHPET"␉␉/* pci_setup.c */␊ |
120 | #define kUseMemDetect␉␉␉"UseMemDetect"␉␉/* platform.c */␊ |
121 | #define kSMBIOSdefaults␉␉␉"SMBIOSdefaults"␉/* smbios_patcher.c */␊ |
122 | #define kUSBBusFix␉␉␉"USBBusFix"␉␉/* usb.c */␊ |
123 | #define kEHCIacquire␉␉␉"EHCIacquire"␉␉/* usb.c */␊ |
124 | #define kUHCIreset␉␉␉"UHCIreset"␉␉/* usb.c */␊ |
125 | #define kEHCIhard␉␉␉"EHCIhard"␉␉/* usb.c */␊ |
126 | #define kDefaultPartition␉␉"Default Partition"␉/* sys.c */␊ |
127 | ␊ |
128 | /* Zenith432: added this key */␊ |
129 | #define kXHCILegacyOff␉␉␉"XHCILegacyOff"␉␉/* usb.c */␊ |
130 | ␊ |
131 | /* Duvel300: added this key */␊ |
132 | #define kRestartFix␉␉␉"RestartFix"␉␉/* acpi_patcher.c */␊ |
133 | ␊ |
134 | /* Slice: added these keys */␊ |
135 | #define kPS2RestartFix␉␉␉"PS2RestartFix"␉␉/* acpi_patcher.c */␊ |
136 | #define kUseIntelHDMI␉␉␉"UseIntelHDMI"␉␉/* ati.c && nvidia.c && gma.c */␊ |
137 | #define kNvidiaSingle␉␉␉"NvidiaSingle"␉␉/* nvidia.c */␊ |
138 | ␊ |
139 | /* Signal64: added this key */␊ |
140 | #define kLegacyOff␉␉␉"USBLegacyOff"␉␉/* usb.c */␊ |
141 | ␊ |
142 | /* Lebidou: added this key */␊ |
143 | ␊ |
144 | /* Meklort: added these keys */␊ |
145 | #define kMD0Image␉␉␉"md0"␉␉␉/* ramdisk.h */␊ |
146 | #define kEnableWifi␉␉␉"EnableWifi"␉␉/* networking.c */␊ |
147 | ␊ |
148 | /* Andyvand: added these keys */␊ |
149 | //#define kSSDT␉␉␉␉"SSDT"␉␉␉/* acpi_patcher.c */␊ |
150 | #define kHPET␉␉␉␉"HPET"␉␉␉/* acpi_patcher.c */␊ |
151 | #define kSBST␉␉␉␉"SBST"␉␉␉/* acpi_patcher.c */␊ |
152 | #define kECDT␉␉␉␉"ECDT"␉␉␉/* acpi_patcher.c */␊ |
153 | #define kASFT␉␉␉␉"ASFT"␉␉␉/* acpi_patcher.c */␊ |
154 | #define kDMAR␉␉␉␉"DMAR"␉␉␉/* acpi_patcher.c */␊ |
155 | #define kFADT␉␉␉␉"FADT"␉␉␉/* acpi_patcher.c */␊ |
156 | #define kAPIC␉␉␉␉"APIC"␉␉␉/* acpi_patcher.c */␊ |
157 | #define kMCFG␉␉␉␉"MCFG"␉␉␉/* acpi_patcher.c */␊ |
158 | #define kDropHPET␉␉␉"DropHPET"␉␉/* acpi_patcher.c */␊ |
159 | #define kDropSLIC␉␉␉"DropSLIC"␉␉/* acpi_patcher.c */␊ |
160 | #define kDropSBST␉␉␉"DropSBST"␉␉/* acpi_patcher.c */␊ |
161 | #define kDropECDT␉␉␉"DropECDT"␉␉/* acpi_patcher.c */␊ |
162 | #define kDropASFT␉␉␉"DropASFT"␉␉/* acpi_patcher.c */␊ |
163 | #define kDropDMAR␉␉␉"DropDMAR"␉␉/* acpi_patcher.c */␊ |
164 | ␊ |
165 | /* Mojodojo: added these keys */␊ |
166 | #define kGeneratePStates␉␉"GeneratePStates"␉␉/* acpi_patcher.c */␊ |
167 | #define kGenerateCStates␉␉"GenerateCStates"␉␉/* acpi_patcher.c */␊ |
168 | #define kCSTUsingSystemIO␉␉"CSTUsingSystemIO"␉␉/* acpi_patcher.c */␊ |
169 | #define kEnableC2State␉␉␉"EnableC2State"␉␉␉/* acpi_patcher.c */␊ |
170 | #define kEnableC3State␉␉␉"EnableC3State"␉␉␉/* acpi_patcher.c */␊ |
171 | #define kEnableC4State␉␉␉"EnableC4State"␉␉␉/* acpi_patcher.c */␊ |
172 | #define kEnableC6State␉␉␉"EnableC6State"␉␉␉/* acpi_patcher.c */␊ |
173 | #define kEnableC7State␉␉␉"EnableC7State"␉␉␉/* acpi_patcher.c */␊ |
174 | ␊ |
175 | /* valv: added these keys */␊ |
176 | #define kbusratio␉␉␉"busratio"␉␉␉/* cpu.c */␊ |
177 | #define kDcfg0␉␉␉␉"display_0"␉␉␉/* nvidia.c */␊ |
178 | #define kDcfg1␉␉␉␉"display_1"␉␉␉/* nvidia.c */␊ |
179 | ␊ |
180 | /* Marchrius: added this key */␊ |
181 | #define kEnableBacklight␉␉"EnableBacklight"␉␉/* nvidia.c */␊ |
182 | ␊ |
183 | /* Kabyl: added these keys */␊ |
184 | #define kAtiConfig␉␉␉"AtiConfig"␉␉␉/* ati.c */␊ |
185 | #define kAtiPorts␉␉␉"AtiPorts"␉␉␉/* ati.c */␊ |
186 | #define kATYbinimage␉␉␉"ATYbinimage"␉␉␉/* ati.c */␊ |
187 | ␊ |
188 | /* cosmo1: added these keys */␊ |
189 | #define kEnableHDMIAudio␉␉"EnableHDMIAudio"␉␉/* ati.c && nvidia.c */␊ |
190 | ␊ |
191 | /* cparm: added these keys */␊ |
192 | #define kRebootOnPanic␉␉␉"RebootOnPanic"␊ |
193 | #define kEnableHiDPI␉␉␉"EnableHiDPI"␉␉␉// enable High resolution display (aka Retina)␊ |
194 | ␊ |
195 | /* ErmaC: added these keys */␊ |
196 | #define kEnableDualLink␉␉␉"EnableDualLink"␉␉/* ati.c && nvidia.c && gma.c */␊ |
197 | #define kNvidiaGeneric␉␉␉"NvidiaGeneric"␉␉␉/* nvidia.c */␊ |
198 | #define kSkipIntelGfx␉␉␉"SkipIntelGfx"␉␉␉/* pci_setup.c */␊ |
199 | #define kSkipNvidiaGfx␉␉␉"SkipNvidiaGfx"␉␉␉/* pci_setup.c */␊ |
200 | #define kSkipAtiGfx␉␉␉"SkipAtiGfx"␉␉␉/* pci_setup.c */␊ |
201 | #define kIntelCapriFB␉␉␉"IntelCapriFB"␉␉␉/* gma.c was HD4K-ig */␊ |
202 | #define kIntelAzulFB␉␉␉"IntelAzulFB"␉␉␉/* gma.c was HD5K-ig */␊ |
203 | #define kIntelBdwFB␉␉␉"IntelBdwFB"␉␉␉/* gma.c */␊ |
204 | #define kIntelSklFB␉␉␉"IntelSklFB"␉␉␉/* gma.c */␊ |
205 | #define kAAPLCustomIG␉␉␉"InjectIntel-ig"␉␉/* gma.c */␊ |
206 | #define kHDAEnabler␉␉␉"HDAEnabler"␉␉␉/* pci_setup.c */␊ |
207 | #define kHDEFLayoutID␉␉␉"HDEFLayoutID"␉␉␉/* hda.c */␊ |
208 | #define kHDAULayoutID␉␉␉"HDAULayoutID"␉␉␉/* hda.c */␊ |
209 | #define kBGRT␉␉␉␉"BGRT"␉␉␉␉/* acpi_patcher.c */␊ |
210 | #define kDropBGRT␉␉␉"DropBGRT"␉␉␉/* acpi_patcher.c */␊ |
211 | #define kDropMCFG␉␉␉"DropMCFG"␉␉␉/* acpi_patcher.c */␊ |
212 | #define kDropAPIC␉␉␉"DropAPIC"␉␉␉/* acpi_patcher.c */␊ |
213 | #define kCsrActiveConfig␉␉"CsrActiveConfig"␉␉/* boot.c */␊ |
214 | #define kProductBuildVersion␉␉"ProductBuildVersion"␉␉/* boot.c */␊ |
215 | ␊ |
216 | uint32_t kernelOSVer; /* boot.c */␊ |
217 | ␊ |
218 | ␊ |
219 | /* Pike R. Alpha: added this key */␊ |
220 | #define kBlackMode␉␉␉"BlackMode"␊ |
221 | ␊ |
222 | /* Karas: added this key */␊ |
223 | #define kMemFullInfo␉␉␉"ForceFullMemInfo"␉␉/* smbios.c */␊ |
224 | ␊ |
225 | /* Bungo: added this key */␊ |
226 | #define kPrivateData␉␉␉"PrivateData"␉␉␉/* smbios_decode.c */␊ |
227 | ␊ |
228 | ␊ |
229 | /*␊ |
230 | * Flags to the booter or kernel␊ |
231 | */␊ |
232 | #define kVerboseModeFlag␉␉"-v"␊ |
233 | #define kSafeModeFlag␉␉␉"-x"␊ |
234 | #define kIgnoreCachesFlag␉␉"-f"␊ |
235 | #define kIgnoreBootFileFlag␉␉"-F"␊ |
236 | #define kSingleUserModeFlag␉␉"-s"␊ |
237 | ␊ |
238 | /*␊ |
239 | * Booter behavior control␊ |
240 | */␊ |
241 | #define kBootTimeout␉␉␉-1␊ |
242 | #define kCDBootTimeout␉␉␉8␊ |
243 | ␊ |
244 | /*␊ |
245 | * A global set by boot() to record the device that the booter was loaded from.␊ |
246 | */␊ |
247 | #define ROOT_DEVICE_SIZE 512␊ |
248 | extern int gBIOSDev;␊ |
249 | extern long gBootMode;␊ |
250 | extern bool sysConfigValid;␊ |
251 | extern char bootBanner[];␊ |
252 | extern char bootPrompt[];␊ |
253 | extern bool gOverrideKernel;␊ |
254 | extern char *gPlatformName;␊ |
255 | extern char gMKextName[];␊ |
256 | extern char gRootDevice[];␊ |
257 | extern bool gEnableCDROMRescan;␊ |
258 | extern bool gScanSingleDrive;␊ |
259 | extern bool useGUI;␊ |
260 | ␊ |
261 | /*␊ |
262 | * Boot Modes␊ |
263 | */␊ |
264 | enum {␊ |
265 | ␉kBootModeNormal = 0,␊ |
266 | ␉kBootModeSafe = 1,␊ |
267 | ␉kBootModeSecure = 2,␊ |
268 | ␉kBootModeQuiet = 4␊ |
269 | };␊ |
270 | ␊ |
271 | extern void initialize_runtime();␊ |
272 | extern void common_boot(int biosdev);␊ |
273 | extern bool checkOSVersion(const char *version);␊ |
274 | extern uint32_t getMacOSVerCurrent();␊ |
275 | ␊ |
276 | /*␊ |
277 | * usb.c␊ |
278 | */␊ |
279 | extern int usb_loop();␊ |
280 | ␊ |
281 | /*␊ |
282 | * graphics.c␊ |
283 | */␊ |
284 | extern void printVBEModeInfo();␊ |
285 | extern void setVideoMode(int mode);␊ |
286 | extern int getVideoMode();␊ |
287 | extern void spinActivityIndicator();␊ |
288 | extern void clearActivityIndicator();␊ |
289 | extern void setBackgroundColor( uint32_t color );␊ |
290 | extern void drawDataRectangle(␊ |
291 | unsigned short x,␊ |
292 | unsigned short y,␊ |
293 | unsigned short width,␊ |
294 | unsigned short height,␊ |
295 | unsigned char *data␊ |
296 | );␊ |
297 | extern int␊ |
298 | convertImage( unsigned short width,␊ |
299 | unsigned short height,␊ |
300 | const unsigned char *imageData,␊ |
301 | unsigned char **newImageData );␊ |
302 | extern char *decodeRLE( const void *rleData, int rleBlocks, int outBytes );␊ |
303 | extern void drawBootGraphics(void);␊ |
304 | extern void drawPreview(void *src, uint8_t *saveunder);␊ |
305 | extern int getVideoMode(void);␊ |
306 | extern void loadImageScale (void *input, int iw, int ih, int ip, void *output, int ow, int oh, int op, int or);␊ |
307 | ␊ |
308 | /*␊ |
309 | * drivers.c␊ |
310 | */␊ |
311 | extern long LoadExtraDrivers(char * dirSpec);␊ |
312 | extern long LoadDrivers(char * dirSpec);␊ |
313 | extern long DecodeKernel(void *binary, entry_t *rentry, char **raddr, int *rsize);␊ |
314 | typedef long (*FileLoadDrivers_t)(char *dirSpec, long plugin);␊ |
315 | // Bungo:␊ |
316 | extern char gDarwinBuildVerStr[256];␊ |
317 | ␊ |
318 | // Micky1979␊ |
319 | int gDarwinMajor;␊ |
320 | int gDarwinMinor;␊ |
321 | int gDarwinRev;␊ |
322 | bool useDarwinVersion;␊ |
323 | ␊ |
324 | /*!␊ |
325 | Hookable function pointer called during the driver loading phase that␊ |
326 | allows other code to cause additional drivers to be loaded.␊ |
327 | */␊ |
328 | extern long (*LoadExtraDrivers_p)(FileLoadDrivers_t FileLoadDrivers_p);␊ |
329 | ␊ |
330 | /*␊ |
331 | * options.c␊ |
332 | */␊ |
333 | extern char gBootUUIDString[];␊ |
334 | extern int getBootOptions(bool firstRun);␊ |
335 | extern int processBootOptions();␊ |
336 | extern int selectAlternateBootDevice(int bootdevice);␊ |
337 | extern bool promptForRescanOption(void);␊ |
338 | ␊ |
339 | void showHelp();␊ |
340 | void showTextFile();␊ |
341 | char *getMemoryInfoString();␊ |
342 | ␊ |
343 | typedef struct {␊ |
344 | ␉char name[80];␊ |
345 | ␉void * param;␊ |
346 | } MenuItem;␊ |
347 | ␊ |
348 | /*␊ |
349 | * lzss.c␊ |
350 | */␊ |
351 | extern int decompress_lzss(u_int8_t *dst, u_int32_t dstlen, u_int8_t *src, u_int32_t srclen);␊ |
352 | extern u_int8_t *compress_lzss(u_int8_t *dst, u_int32_t dstlen, u_int8_t *src, u_int32_t srcLen);␊ |
353 | ␊ |
354 | /*␊ |
355 | * lzvn.c␊ |
356 | */␊ |
357 | extern size_t lzvn_decode(void␉␉*dst,␊ |
358 | size_t␉dst_size,␊ |
359 | const void␉*src,␊ |
360 | size_t␉src_size);␊ |
361 | /*␊ |
362 | extern size_t lzvn_encode(void␉␉*dst,␊ |
363 | size_t␉dst_size,␊ |
364 | const void␉*src,␊ |
365 | size_t␉src_size,␊ |
366 | void␉␉*work);␊ |
367 | */␊ |
368 | ␊ |
369 | /*␊ |
370 | * boot.c␊ |
371 | */␊ |
372 | bool FlagBlackOption; // <-- This is first set in boot.c into setupBooterArgs function␊ |
373 | bool HiDPIOption;␊ |
374 | ␊ |
375 | void setupBooterArgs(void);␊ |
376 | void csrInfo(int csrValue, bool custom);␊ |
377 | ␊ |
378 | struct compressed_kernel_header {␊ |
379 | ␉u_int32_t signature;␊ |
380 | ␉u_int32_t compress_type;␊ |
381 | ␉u_int32_t adler32;␊ |
382 | ␉u_int32_t uncompressed_size;␊ |
383 | ␉u_int32_t compressed_size;␊ |
384 | ␉u_int32_t reserved[11];␊ |
385 | ␉char platform_name[64];␊ |
386 | ␉char root_path[256];␊ |
387 | ␉u_int8_t data[0];␊ |
388 | };␊ |
389 | typedef struct compressed_kernel_header compressed_kernel_header;␊ |
390 | ␊ |
391 | /* resume.c */␊ |
392 | void HibernateBoot(char *boot_device);␊ |
393 | void HibernateBootSnow(char *boot_device);␊ |
394 | ␊ |
395 | /* bmdecompress.c */␊ |
396 | void *DecompressData(void *srcbase, int *dw, int *dh, int *bytesPerPixel);␊ |
397 | ␊ |
398 | #endif /* !__BOOT2_BOOT_H */␊ |
399 | |