summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-12-03 11:20:37 +0100
committerJean Delvare <jdelvare@suse.de>2019-12-03 11:20:37 +0100
commit9e0afe3910ff7e5493c5d8ebe3b499994b5e0272 (patch)
treeecd339db89265e68bc684b98035b74d1af2af16c /include/linux
parent219d54332a09e8d8741c1e1982f5eae56099de85 (diff)
firmware: dmi: Remember the memory type
Store the memory type while walking the memory slots, and provide a way to retrieve it later. Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dmi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dmi.h b/include/linux/dmi.h
index 8de8c4f15163..13a48b167e2d 100644
--- a/include/linux/dmi.h
+++ b/include/linux/dmi.h
@@ -113,6 +113,7 @@ extern int dmi_walk(void (*decode)(const struct dmi_header *, void *),
extern bool dmi_match(enum dmi_field f, const char *str);
extern void dmi_memdev_name(u16 handle, const char **bank, const char **device);
extern u64 dmi_memdev_size(u16 handle);
+extern u8 dmi_memdev_type(u16 handle);
#else
@@ -142,6 +143,7 @@ static inline bool dmi_match(enum dmi_field f, const char *str)
static inline void dmi_memdev_name(u16 handle, const char **bank,
const char **device) { }
static inline u64 dmi_memdev_size(u16 handle) { return ~0ul; }
+static inline u8 dmi_memdev_type(u16 handle) { return 0x0; }
static inline const struct dmi_system_id *
dmi_first_match(const struct dmi_system_id *list) { return NULL; }