#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/ioctl.h>
#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/dmi.h>
#include <linux/kdebug.h>
#include <linux/reboot.h>
#include <linux/efi.h>
#include <linux/module.h>
Go to the source code of this file.
#define DRIVER_VERSION "1.0" |
#define GSMI_BUF_SIZE 1024 |
#define GSMI_BUFFER_TOO_SMALL 0x85 |
#define GSMI_CALLBACK 0xef |
#define GSMI_CMD_CLEAR_CONFIG 0x20 |
#define GSMI_CMD_CLEAR_EVENT_LOG 0x09 |
#define GSMI_CMD_GET_NEXT_VAR 0x02 |
#define GSMI_CMD_GET_NVRAM_VAR 0x01 |
#define GSMI_CMD_HANDSHAKE_TYPE 0xC1 |
#define GSMI_CMD_SET_EVENT_LOG 0x08 |
#define GSMI_CMD_SET_NVRAM_VAR 0x03 |
#define GSMI_DEFAULT_SPINCOUNT 0x10000 |
#define GSMI_DEVICE_ERROR 0x87 |
#define GSMI_GUID_SIZE 16 |
#define GSMI_HANDSHAKE_CF 0x7e |
#define GSMI_HANDSHAKE_NONE 0x7f |
#define GSMI_HANDSHAKE_SPIN 0x7d |
#define GSMI_INVALID_PARAMETER 0x82 |
#define GSMI_LOG_ENTRY_TYPE_KERNEL 0xDEAD |
#define GSMI_LOG_FULL 0x0b |
#define GSMI_NOT_FOUND 0x8e |
#define GSMI_NOT_READY 0x86 |
#define GSMI_SHUTDOWN_CLEAN 0 /* Clean Shutdown */ |
#define GSMI_SHUTDOWN_DIE 4 /* Die -- No longer meaningful */ |
#define GSMI_SHUTDOWN_MBE 7 /* Uncorrected ECC */ |
#define GSMI_SHUTDOWN_MCE 5 /* Machine Check */ |
#define GSMI_SHUTDOWN_NMIWDT 1 /* NMI Watchdog */ |
#define GSMI_SHUTDOWN_OOPS 3 /* Oops */ |
#define GSMI_SHUTDOWN_PANIC 2 /* Panic */ |
#define GSMI_SHUTDOWN_SOFTWDT 6 /* Software Watchdog */ |
#define GSMI_SHUTDOWN_TRIPLE 8 /* Triple Fault */ |
#define GSMI_SUCCESS 0x00 |
#define GSMI_UNSUPPORTED 0x83 |
#define GSMI_UNSUPPORTED2 0x03 |
#define GSMI_VAR_NOT_FOUND 0x0e |
#define QUIRKY_BOARD_HASH 0x78a30a50 |
MODULE_AUTHOR |
( |
" |
Google, |
|
|
Inc." |
|
|
) |
| |
MODULE_DEVICE_TABLE |
( |
dmi |
, |
|
|
gsmi_dmi_table |
|
|
) |
| |
module_exit |
( |
gsmi_exit |
| ) |
|
module_init |
( |
gsmi_init |
| ) |
|
module_param |
( |
spincount |
, |
|
|
uint |
, |
|
|
0600 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
spincount |
, |
|
|
"The number of loop iterations to use when using the spin handshake." |
|
|
) |
| |