aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk/swsusp.h
blob: 3e9acacf7ff1554c67e9d7c6bd53e570d70f1166 (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 */