]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/dmi.h
DMI: Introduce dmi_first_match to make the interface more flexible
[linux-2.6-omap-h63xx.git] / include / linux / dmi.h
index 2bfda178f274ef5dfbe782fb117d5ea0d80391d4..aea23105d3ed4c8bad7e22a38f786c99f3e0f71a 100644 (file)
@@ -38,6 +38,7 @@ struct dmi_device {
 #ifdef CONFIG_DMI
 
 extern int dmi_check_system(const struct dmi_system_id *list);
+const struct dmi_system_id *dmi_first_match(const struct dmi_system_id *list);
 extern const char * dmi_get_system_info(int field);
 extern const struct dmi_device * dmi_find_device(int type, const char *name,
        const struct dmi_device *from);
@@ -47,6 +48,7 @@ extern int dmi_name_in_vendors(const char *str);
 extern int dmi_name_in_serial(const char *str);
 extern int dmi_available;
 extern int dmi_walk(void (*decode)(const struct dmi_header *));
+extern bool dmi_match(enum dmi_field f, const char *str);
 
 #else
 
@@ -61,6 +63,8 @@ static inline int dmi_name_in_serial(const char *s) { return 0; }
 #define dmi_available 0
 static inline int dmi_walk(void (*decode)(const struct dmi_header *))
        { return -1; }
+static inline bool dmi_match(enum dmi_field f, const char *str)
+       { return false; }
 
 #endif