smbios: add module to match SMBios vendor and product

Change-Id: Ib7848da1c22c42a1a9030891159f4e852c6c1ecd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2503
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Jérôme Duval
2020-04-27 07:38:40 +00:00
parent bd3b700484
commit 97f2b91169
4 changed files with 289 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* Copyright 2020, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _SMBIOS_MODULE_H_
#define _SMBIOS_MODULE_H_
#include <OS.h>
#include <module.h>
typedef struct smbios_module_info {
module_info info;
bool (*match_vendor_product)(const char* vendor, const char* product);
} smbios_module_info;
#define SMBIOS_MODULE_NAME "generic/smbios/driver_v1"
#endif // _SMBIOS_MODULE_H_