-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpfi.h
More file actions
33 lines (27 loc) · 665 Bytes
/
pfi.h
File metadata and controls
33 lines (27 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* p/emu/sdl -- sdl port of p/emu, p/ece emulator.
* p/emu by Naoyuki Sawa
* p/emu/sdl patched by Yui N.
*/
/*
* pfi.h -- p/emu/sdl flash image format
*/
#if !defined(PFI_H)
#define PFI_H
#ifdef _MSC_VER
#pragma pack(push)
#define ATTR_PACKED /* */
#else
#define ATTR_PACKED __attribute__((packed))
#endif
typedef struct tagPFIHEADER
{
uint8_t dwSignature[4]; // 'PFI1', '1' indicates its version, initially 1.
uint32_t dwOffsetToFlash; // offset, in bytes, to the flash image.
SYSTEMINFO siSysInfo; // machine information.
// ... and flash image follows.
}PFIHEADER ATTR_PACKED;
#ifdef _MSC_VER
#pragma pack(pop)
#endif
#endif // !PFI_H