1 #ifndef _SWSUSP_H_ 2 #define _SWSUSP_H_ 3 4 #include <disk/geom.h> 5 #include <disk/common.h> 6 #include <disk/partition.h> 7 8 #define SWSUSP_SIG "S1SUSPEND" 9 10 struct swsusp_header { 11 char reserved[PAGE_SIZE - 20 - sizeof(unsigned long) - sizeof(int)]; 12 unsigned long image; 13 unsigned int flags; /* Flags to pass to the "boot" kernel */ 14 char orig_sig[10]; 15 char sig[10]; 16 } __attribute__ ((packed)); 17 18 int swsusp_check(struct driveinfo *, struct part_entry *); 19 #endif /* _SWSUSP_H */ 20