aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk/swsusp.h
blob: 1d77c878ae91dc9b4e46dbd7573fd7b60480b17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _SWSUSP_H_
#define _SWSUSP_H_

#include <disk/geom.h>
#include <disk/common.h>
#include <disk/partition.h>

#define SWSUSP_SIG	"S1SUSPEND"

struct swsusp_header {
	char reserved[PAGE_SIZE - 20 - sizeof(unsigned long) - sizeof(int)];
	unsigned long image;
	unsigned int flags;	/* Flags to pass to the "boot" kernel */
	char	orig_sig[10];
	char	sig[10];
} __attribute__((packed));

int swsusp_check(struct driveinfo*, struct part_entry*);
#endif /* _SWSUSP_H */