File: whitelist.h

package info (click to toggle)
uswsusp 1.0+20120915-6.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,572 kB
  • ctags: 1,440
  • sloc: ansic: 7,164; sh: 566; makefile: 223; perl: 65
file content (25 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (3)
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
/* whitelist.h
 * whitelist of machines that are known to work somehow
 * and all the workarounds
 */
#define S3_BIOS     0x01        /* machine needs acpi_sleep=s3_bios */
#define S3_MODE     0x02        /* machine needs acpi_sleep=s3_mode */
#define VBE_SAVE    0x04        /* machine needs "vbetool save / restore" */
#define VBE_POST    0x08        /* machine needs "vbetool post" */
#define RADEON_OFF  0x10        /* machine needs "radeontool light off" */
#define UNSURE      0x20        /* unverified entries from acpi-support 0.59 */
#define NOFB        0x40        /* must not use a frame buffer */
#define VBE_MODE    0x80        /* machine needs "vbetool vbemode get / set" */
#define PCI_SAVE   0x100        /* we need to save the VGA PCI registers */

struct machine_entry
{
	const char *sys_vendor;
	const char *sys_product;
	const char *sys_version;
	const char *bios_version;
	unsigned int flags;
};

extern char *whitelist_version;
extern struct machine_entry whitelist[];