From nobody Mon Sep 26 19:42:43 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MbtT0101Qz4cbHT; Mon, 26 Sep 2022 19:42:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MbtSz74tlz3df7; Mon, 26 Sep 2022 19:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664221364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nYeGBKlpL6efnNdbs8d34XqRZ6fyJl7S4vTQNzCzmRE=; b=AGlSmqSxz8YUks437EpEL4YyQfEMUkGVc7T8Nwf15baja+r7jFuMDqMMRTVNvd+padpZ8/ eVgePCXujXi2aBPmr0GqJqjX88CdRuxY40hwOh13thm4jc0Qs+00nerVlC/qRF25qSaQsC 96O5ZLD/icTn1R9WJ+nma3SIBeJaRkJ1iyWOPM5O1Hj3k614KJnU5zmS6bqiU0ssQahnBR +fCLiCb/o23WRC//nZlaSiMaKLwXo4SrAPL6jlnnrYeH5PwxFDDY9uFxgZ6DLXi4lGLM7r qke5OO7l/cKq/2FjmR/NbbjRcxCnWAbnAVXSb48UhGPdBPagqsTpRudBwvGX8Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MbtSz67Y0zt0t; Mon, 26 Sep 2022 19:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28QJghGF062255; Mon, 26 Sep 2022 19:42:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28QJghOa062254; Mon, 26 Sep 2022 19:42:43 GMT (envelope-from git) Date: Mon, 26 Sep 2022 19:42:43 GMT Message-Id: <202209261942.28QJghOa062254@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: f486b352470e - main - LinuxKPI: add struct dmi_header and unsupported dmi_walk() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f486b352470edc82142766c2f3da2b8220774b7f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664221364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nYeGBKlpL6efnNdbs8d34XqRZ6fyJl7S4vTQNzCzmRE=; b=KsLWH82U4JZ6f/TJHG45S8k0b8ywnAk9C+np4Ob348lNczrNQ0JuGkT29Pk93i+IJPJ6V8 BfG1DKZkMZuCqzSbU6eUFbN0Jf3TSRIMCjGjWHlmAGmY+sNn7RGDuRDJnmkdalgM8jlLfZ 8EhUlfverJPoKa9A+dDff0tSmfasRW2Yj+/g7QaTcXRfodYPiv32s4lJ99PW/IdDOC+QO6 L5MMWr17Te1IEMYldzW1W2ZAU4C1SWay0hYFqa5vSmnf6tlAjKL8KYOJbCxea/pV4bQN1c 8/YepT9NMTxt4OV37WrNTm+SdIZ20rMlFTJT4R7j0C5tP46ABe7A/DHqO5JJag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664221364; a=rsa-sha256; cv=none; b=W9qdh/wST696u7c9NlPjL3cbswr0WAN+5WJHckJs6SgW7E++4gyFXNlOoWpXBz8SIQBKen CEW/rYprusPx6ooXVflel54ZxyBuxFSNQEAzK2gfu2SyVF7Ajigw7M0gNDcgtTUegIbjVI Nbv2BpjTD9pvHGt1zrWbzcFVYLb1cGrppQgV9IYOLaiaU668Sw0dvFUDwc/DoWjDLYEGhM sv6luid0jH5ra6LR2gj4afQHf+2Scd4nrdXR9KhOmj9aGq9QKHTG5ts0TVNzjcZ5vC0Yx1 uZFaMmkvtBSP3saHeK+DjQtc0IW3y9dwI9IdUel130k82g6k/jSil0jBxKIrlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f486b352470edc82142766c2f3da2b8220774b7f commit f486b352470edc82142766c2f3da2b8220774b7f Author: Bjoern A. Zeeb AuthorDate: 2022-09-23 22:21:06 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-09-26 19:40:49 +0000 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 --- sys/compat/linuxkpi/common/include/linux/dmi.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/dmi.h b/sys/compat/linuxkpi/common/include/linux/dmi.h index 339f622f89b2..a3514c66f9cd 100644 --- a/sys/compat/linuxkpi/common/include/linux/dmi.h +++ b/sys/compat/linuxkpi/common/include/linux/dmi.h @@ -34,6 +34,12 @@ #include #include +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__ */