X-Git-Url: https://git.saurik.com/apple/bootx.git/blobdiff_plain/04fee52ee8aaaa7cd8b91379e26320dc877075f7..HEAD:/bootx.tproj/include.subproj/boot_args.h diff --git a/bootx.tproj/include.subproj/boot_args.h b/bootx.tproj/include.subproj/boot_args.h index 36080aa..5bc4f3b 100644 --- a/bootx.tproj/include.subproj/boot_args.h +++ b/bootx.tproj/include.subproj/boot_args.h @@ -22,7 +22,7 @@ /* * boot_args.h - Data stuctures for the information passed to the kernel. * - * Copyright (c) 1998-2000 Apple Computer, Inc. + * Copyright (c) 1998-2003 Apple Computer, Inc. * * DRI: Josh de Cesare */ @@ -56,7 +56,8 @@ typedef struct DRAMBank DRAMBank, *DRAMBankPtr; // Boot argument structure - passed into kernel at boot time. #define kBootArgsRevision (1) -#define kBootArgsVersion (1) +#define kBootArgsVersion1 (1) +#define kBootArgsVersion2 (2) #define BOOT_LINE_LENGTH (256) @@ -73,4 +74,17 @@ struct boot_args { }; typedef struct boot_args boot_args, *boot_args_ptr; +struct compressed_kernel_header { + u_int32_t signature; + u_int32_t compress_type; + u_int32_t adler32; + u_int32_t uncompressed_size; + u_int32_t compressed_size; + u_int32_t reserved[11]; + char platform_name[64]; + char root_path[256]; + u_int8_t data[0]; +}; +typedef struct compressed_kernel_header compressed_kernel_header; + #endif /* ! _BOOTX_BOOT_ARGS_H_ */