LinuxKPI: add struct dmi_header and unsupported dmi_walk()
Add a structure definition as well as a dummy dmi_walk for now which returns an error as not supported. Our current dmi implementation is special but does not give access to all details but rather only information from kenv which does not suffice all use cases. MFC after: 1 week Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D36687
This commit is contained in:
parent
f8bad56164
commit
f486b35247
@ -34,6 +34,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
|
||||
struct dmi_header {
|
||||
uint8_t type;
|
||||
uint8_t length;
|
||||
uint16_t handle;
|
||||
};
|
||||
|
||||
int linux_dmi_check_system(const struct dmi_system_id *);
|
||||
bool linux_dmi_match(enum dmi_field, const char *);
|
||||
const struct dmi_system_id *linux_dmi_first_match(const struct dmi_system_id *);
|
||||
@ -44,4 +50,11 @@ const char *linux_dmi_get_system_info(int);
|
||||
#define dmi_first_match(sysid) linux_dmi_first_match(sysid)
|
||||
#define dmi_get_system_info(sysid) linux_dmi_get_system_info(sysid)
|
||||
|
||||
static inline int
|
||||
dmi_walk(void (*callbackf)(const struct dmi_header *, void *), void *arg)
|
||||
{
|
||||
|
||||
return (-ENXIO);
|
||||
}
|
||||
|
||||
#endif /* __LINUXKPI_LINUX_DMI_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user