summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/dcdbas.h
diff options
context:
space:
mode:
authorStuart Hayes <stuart.w.hayes@gmail.com>2018-09-26 16:50:18 -0500
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-09-27 12:18:15 +0300
commit12c956c4f32e08799de452abe1e1ec6021b1e41f (patch)
treeb32699efb83b8d2870ce5fa9165034b61ccbf097 /drivers/firmware/dcdbas.h
parent6aecee6ad41cf97c0270f72da032c10eef025bf0 (diff)
downloadlinux-12c956c4f32e08799de452abe1e1ec6021b1e41f.tar.gz
linux-12c956c4f32e08799de452abe1e1ec6021b1e41f.tar.bz2
linux-12c956c4f32e08799de452abe1e1ec6021b1e41f.zip
firmware: dcdbas: Add support for WSMT ACPI table
If the WSMT ACPI table is present and indicates that a fixed communication buffer should be used, use the firmware-specified buffer instead of allocating a buffer in memory for communications between the dcdbas driver and firmare. Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/firmware/dcdbas.h')
-rw-r--r--drivers/firmware/dcdbas.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/firmware/dcdbas.h b/drivers/firmware/dcdbas.h
index ca3cb0a54ab6..52729a494b00 100644
--- a/drivers/firmware/dcdbas.h
+++ b/drivers/firmware/dcdbas.h
@@ -53,6 +53,7 @@
#define EXPIRED_TIMER (0)
#define SMI_CMD_MAGIC (0x534D4931)
+#define SMM_EPS_SIG "$SCB"
#define DCDBAS_DEV_ATTR_RW(_name) \
DEVICE_ATTR(_name,0600,_name##_show,_name##_store);
@@ -103,5 +104,14 @@ struct apm_cmd {
int dcdbas_smi_request(struct smi_cmd *smi_cmd);
+struct smm_eps_table {
+ char smm_comm_buff_anchor[4];
+ u8 length;
+ u8 checksum;
+ u8 version;
+ u64 smm_comm_buff_addr;
+ u64 num_of_4k_pages;
+} __packed;
+
#endif /* _DCDBAS_H_ */