mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
Move emile_l2_header definition from tools/emile-second.h to second/head.h
This commit is contained in:
parent
aef019c700
commit
c0894c3445
36
second/head.h
Normal file
36
second/head.h
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* WARNING: remember that m68k is big endian, like powerPC.
|
||||
* i386 is little-endian
|
||||
*/
|
||||
|
||||
typedef struct emile_l2_header emile_l2_header_t;
|
||||
|
||||
struct emile_l2_header {
|
||||
u_int32_t entry;
|
||||
u_int32_t signature; /* EM02 */
|
||||
u_int32_t kernel_image_offset;
|
||||
u_int32_t kernel_image_size;
|
||||
u_int32_t kernel_size;
|
||||
u_int32_t ramdisk_offset;
|
||||
u_int32_t ramdisk_size;
|
||||
int8_t command_line[256];
|
||||
u_int32_t console_mask;
|
||||
u_int32_t serial0_bitrate;
|
||||
int8_t serial0_datasize;
|
||||
int8_t serial0_parity;
|
||||
int8_t serial0_stopbits;
|
||||
int8_t pad0;
|
||||
u_int32_t serial1_bitrate;
|
||||
int8_t serial1_datasize;
|
||||
int8_t serial1_parity;
|
||||
int8_t serial1_stopbits;
|
||||
int8_t pad1;
|
||||
} __attribute__((packed));
|
||||
|
||||
#define EMILE_02_SIGNATURE (('E'<<24)|('M'<<16)|('0'<<8)|'2')
|
@ -3,23 +3,3 @@
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* WARNING: remember that m68k is big endian, like powerPC.
|
||||
* i386 is little-endian
|
||||
*/
|
||||
|
||||
typedef struct emile_l2_header emile_l2_header_t;
|
||||
|
||||
struct emile_l2_header {
|
||||
u_int32_t entry;
|
||||
u_int32_t signature; /* EM01 */
|
||||
u_int32_t kernel_image_offset;
|
||||
u_int32_t kernel_image_size;
|
||||
u_int32_t kernel_size;
|
||||
u_int32_t ramdisk_offset;
|
||||
u_int32_t ramdisk_size;
|
||||
int8_t command_line[256];
|
||||
};
|
||||
|
||||
#define EMILE_001_SIGNATURE (('E'<<24)|('M'<<16)|('0'<<8)|'1')
|
||||
|
Loading…
Reference in New Issue
Block a user