aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/dell-smbios.h
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2016-01-22 15:27:22 +0100
committerDarren Hart <dvhart@linux.intel.com>2016-03-23 10:05:41 -0700
commit96f7ef90cc373f805a38f2a3e96a8b1948706954 (patch)
treecf8756af0ced4de72d6500882ae211cd6421a166 /drivers/platform/x86/dell-smbios.h
parentdell-smbios: make the SMBIOS buffer static (diff)
downloadlinux-dev-96f7ef90cc373f805a38f2a3e96a8b1948706954.tar.xz
linux-dev-96f7ef90cc373f805a38f2a3e96a8b1948706954.zip
dell-smbios: implement new function for finding DMI table 0xDA tokens
Ultimately, the da_tokens table should not be exported from dell-smbios. Currently, in some cases, dell-laptop accesses that table's members directly, so implement a new function, dell_smbios_find_token(), which returns a pointer to an entry inside the da_tokens table with the given token ID (or NULL if it is not found). Signed-off-by: Michał Kępień <kernel@kempniu.pl> Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/platform/x86/dell-smbios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-smbios.h b/drivers/platform/x86/dell-smbios.h
index af653ff29b68..6f6dbe8b05d4 100644
--- a/drivers/platform/x86/dell-smbios.h
+++ b/drivers/platform/x86/dell-smbios.h
@@ -42,6 +42,8 @@ void dell_smbios_clear_buffer(void);
void dell_smbios_release_buffer(void);
void dell_smbios_send_request(int class, int select);
+struct calling_interface_token *dell_smbios_find_token(int tokenid);
+
int find_token_id(int tokenid);
int find_token_location(int tokenid);
#endif