linux.h revision 199767f8919635c4928607450d9e0abb932109ce
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2015 Toomas Soome <tsoome@me.com>
*/
#ifndef _LINUX_H
#define _LINUX_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef ASM_FILE
struct linux_kernel_header
{
} __attribute__ ((packed));
#endif
#define LINUX_VID_MODE_NORMAL 0xFFFF
#define LINUX_VID_MODE_EXTENDED 0xFFFE
#define LINUX_VID_MODE_ASK 0xFFFD
#define BOOTSEC_SIGNATURE 0xAA55
#define LINUX_BOOT_LOADER_TYPE 0x72
#define LINUX_BZIMAGE_ADDR 0x100000
#define LINUX_CL_END_OFFSET 0x90FF
#define LINUX_CL_MAGIC 0xA33F
#define LINUX_CL_OFFSET 0x9000
#define LINUX_DEFAULT_SETUP_SECTS 4
#define LINUX_ESP 0x9000
#define LINUX_FLAG_BIG_KERNEL 0x1
#define LINUX_FLAG_CAN_USE_HEAP 0x80
#define LINUX_MAGIC_SIGNATURE 0x53726448
#define LINUX_MAX_SETUP_SECTS 64
#define LINUX_OLD_REAL_MODE_ADDR 0x90000
#define LINUX_SETUP_MOVE_SIZE 0x9100
#define LINUX_ZIMAGE_ADDR 0x10000
#define LINUX_INITRD_MAX_ADDRESS 0x38000000
#ifdef __cplusplus
}
#endif
#endif /* _LINUX_H */