00001
00002 #ifndef __BOOT_H__
00003 #define __BOOT_H__ 1
00004 typedef struct {
00005 char be_name[64];
00006 int be_offset;
00007 int be_type;
00008 int be_size;
00009 int be_vsize;
00010 int be_extra0;
00011 int be_extra1;
00012 int be_extra2;
00013 int be_extra3;
00014 } boot_entry;
00015
00016
00017 typedef struct {
00018 boot_entry bd_entry[64];
00019 } boot_dir;
00020
00021
00022
00023 #define BE_TYPE_NONE 0
00024 #define BE_TYPE_DIRECTORY 1
00025 #define BE_TYPE_BOOTSTRAP 2
00026 #define BE_TYPE_CODE 3
00027 #define BE_TYPE_DATA 4
00028 #define BE_TYPE_ELF32 5
00029
00030
00031 #define be_code_vaddr be_extra0
00032 #define be_code_ventr be_extra1
00033 #endif