From nobody Wed Jun 29 07:55:57 2022 X-Original-To: dev-commits-src-main@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 9D3468A15A6; Wed, 29 Jun 2022 07:55:58 +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 4LXv0Z0Jznz4bDX; Wed, 29 Jun 2022 07:55:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656489358; 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=fblVD8ixXqxde0B2Myj5U9TAohuXlGf107ounoB3wzM=; b=Ba30xUNJCJek+yB/jxOLQtn2QdxfKHluzmR0HZ62Wss9YgSsoXX3WteIGj5QgtNd/nmoaG 81sNlVdRr3fTNc/nLQlhR3Kf6vM/DLEp7qpoGP3GgbH3TmhKANmLgmaOHCZvTAMO8g2TLW GIQhbMS8YO30Ik6LnPAhYJRHXgfQYt3o/oxZ5+jMF9PXRBiSXXmJTaZsAFG3Du0/OCTLOh ykqN/3rqJFX1Q55aHmx2S9vqJ9eui21bgzxrD9cLn2CEKoVOJOkh+XeGgJK2CfAFX6Gfm8 kTMO1dQWEhYIeWRBT7axnsVDftRmfS/n4KNGSjDRWl85trSjLgnOu9aP9iVOHA== 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 7809A59B9; Wed, 29 Jun 2022 07:55:57 +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 25T7tvVQ076420; Wed, 29 Jun 2022 07:55:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25T7tvWk076419; Wed, 29 Jun 2022 07:55:57 GMT (envelope-from git) Date: Wed, 29 Jun 2022 07:55:57 GMT Message-Id: <202206290755.25T7tvWk076419@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 456a92d5d38b - main - linuxkpi: Add pm_runtime.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 456a92d5d38b498340c2ce5a0c40c84063948c33 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656489358; 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=fblVD8ixXqxde0B2Myj5U9TAohuXlGf107ounoB3wzM=; b=KpukA+kvaPbovN4FjS1Z0wXp+eZz68QES5AU0Cb0CJ74BCZdd1DQ+LHdw3yCjEF8VdaNX6 tbVy+Oy8dXROvpMBnmJ2TfoMHO/EcxDwF4JVa2KiHjXu41JzF25BP51OE965XQSgOfH9qY RPr5Uztz+B6jj07lMAXzVy5vTaFCDMlSzm78dYSzhYf7AuYy4Qi6RF3Mh+62Xlre54nQnH JqlGIZ02x3YbolQRlg9SnpFzVrgww7cOGPgRbTquPncLHEgW87Ec/0qPtzHFvcbO0Ff1ju bg4QZqtWjilsCNYt2MvAJfYtk1yZLj2pjsUZITcmGL08RiIP345tduW7wJzlxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656489358; a=rsa-sha256; cv=none; b=JVeCnSH6L1SF0TQISk+y3Z+SD0EqS1Yvnu5oEh1QMxOuicCOtjSq+axNG18j4+C2nGeoEO vVQySmS/pEdeWYqJPamM9Bq6yfTwUCS2f7OSRgVijgflHoSVo6B5PCKvlQA/haY2SkFeCo u3LqtpSPHOPdrB/hLL3u8XZZqBTI+V3+T6uo0sxXi7G1G0W15V/cLdOo0kTBg5qptYlejD gs+tGT0mU2/GfEEDOS/WT/zECenDm7AP7TZKj675EpvpjXbBEpfXz6H018zCSYCINvMZW/ 1LCMpz1hN56VS2xmI2ekB9QhpICBvSXoSK8LEk+Da2NPwRuyYngTHMJdxG5rmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=456a92d5d38b498340c2ce5a0c40c84063948c33 commit 456a92d5d38b498340c2ce5a0c40c84063948c33 Author: Emmanuel Vadot AuthorDate: 2022-06-23 07:59:11 +0000 Commit: Emmanuel Vadot CommitDate: 2022-06-29 07:55:12 +0000 linuxkpi: Add pm_runtime.h Provide dummy functions needed for drm-kmod. Obtain from: OpenBSD (via drm-kmod) MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35568 --- .../linuxkpi/common/include/linux/pm_runtime.h | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h new file mode 100644 index 000000000000..42c96a92b1ad --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h @@ -0,0 +1,43 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_LINUX_PM_RUNTIME_H_ +#define _LINUXKPI_LINUX_PM_RUNTIME_H_ + +#include +#include + +#define pm_runtime_mark_last_busy(x) (void)(x) +#define pm_runtime_use_autosuspend(x) (void)(x) +#define pm_runtime_dont_use_autosuspend(x) (void)(x) +#define pm_runtime_put_autosuspend(x) (void)(x) +#define pm_runtime_set_autosuspend_delay(x, y) (void)(x); (void)(y) +#define pm_runtime_set_active(x) (void)(x) +#define pm_runtime_allow(x) (void)(x) +#define pm_runtime_put_noidle(x) (void)(x) +#define pm_runtime_forbid(x) (void)(x) +#define pm_runtime_get_noresume(x) (void)(x) +#define pm_runtime_put(x) (void)(x) +#define pm_runtime_enable(x) (void)(x) +#define pm_runtime_disable(x) (void)(x) +#define pm_runtime_autosuspend(x) (void)(x) +#define pm_runtime_resume(x) (void)(x) + +static inline int +pm_runtime_get_sync(struct device *dev) +{ + return 0; +} + +static inline int +pm_runtime_get_if_in_use(struct device *dev) +{ + return 1; +} + +static inline int +pm_runtime_get_if_active(struct device *dev, bool x) +{ + return 1; +} + +#endif /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */