From nobody Tue Nov 08 18:20:06 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 4N6Gbp6X7Cz4V69R; Tue, 8 Nov 2022 18:20:06 +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 4N6Gbp61k6z4Jk9; Tue, 8 Nov 2022 18:20:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667931606; 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=rRMn1DPvysTd7Y1bjJq1CmUd8XiPRmUq8pf3TVQYzRI=; b=pV3a4bPDnoPm5NRhpaq7g9prjEwusuGHVZpQcbIKfw+h8viv4LJvW+Fn0kI+364nN5/cFc F/BzgleILqBw8A3YoQpZUGkiGNO2KIU6SRvHcPYwUHNxlBiy/Rersw09J1a4qeBYGoQRl8 uqHIQhp8GJ2Gi8tsTFxAfWlgxEpZi/QPiyv2clDnokoylHOkd8zIsBytXNS31nb6DEfucV 6meEkQqEBoOM57zhrw8m2pc3eMrSfxXMh2Mq6x7njYaDm9phtB0mm/n1zm82/WeOZ42N+Q Fvr4k1VpijwhwwmRt2uAbxHclyrHkBJpXnw2h9rj1lTHsqXqn9lZoXjAPzP6iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667931606; 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=rRMn1DPvysTd7Y1bjJq1CmUd8XiPRmUq8pf3TVQYzRI=; b=FK+fU4cRFeufC8RJdIZtYlEW2YAMk/bmmuJzreVHUAr0mxsFJeshzilii/wrB+Iot5wvKA EoZSG0b1IKvSCuUW6oG/JS02QLQ2blHFLbtrGcOuuN1zYXdPicZLUSTu7Kg8q8MaLDvanf KX9CqoafFhjMPtm9u5dcwIQOS17m2e8fBZNS4LjVvNF62RlaMul3yIHVhRO7xQjumFH2d3 Hecap+mAWBaqCpRNnfuCEgBNhCOlujH8+sBsIk/mNUbGJkcGyRp96X6v7eWYod3zRM1xX6 FvYOjUYU0tWnSXgC0leRJJUZsjbzJmMuBZmM2kpViI2AZAHf2S9L+J6BcV12DQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667931606; a=rsa-sha256; cv=none; b=FqRaBgzRiOmHF9kIQJ2KF7ZvKrhl9gx9t25G4VoimMSYiZ/PUGBy8qgh50U9vmm4o12qj7 73v4iA0lFpdPEG0ggQX2RNTFqZuEPbtOVJ6JIoH5VemEf4s1vTKIfOxL9all+aJ0ZwTk3w cIG+IIHVKlFENSC6WMHxSUCGFmX2pp+6T88lwTBgsfMfbFKIb/VAB7MlUyesNKycattkLE fnl2vO5lJfrIQFQ74XcvD42SWR/YMeNBzktq/c/OpUQjs958bx7PCpdc7qPKyzYSVQLvKT 1ZH5EWMl7icZ3lBMsGV0EgjseEoq8B9mksX90W8P4ui1EOzD2y1/yjG4VH8giw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N6Gbp55Cxzryg; Tue, 8 Nov 2022 18:20:06 +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 2A8IK6Jc032483; Tue, 8 Nov 2022 18:20:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A8IK6gn032480; Tue, 8 Nov 2022 18:20:06 GMT (envelope-from git) Date: Tue, 8 Nov 2022 18:20:06 GMT Message-Id: <202211081820.2A8IK6gn032480@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: b5c3819c7b57 - main - LinuxKPI: add virt_to_phys() 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5c3819c7b57d7e3aa94f1db779648bb9723c1f5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b5c3819c7b57d7e3aa94f1db779648bb9723c1f5 commit b5c3819c7b57d7e3aa94f1db779648bb9723c1f5 Author: Bjoern A. Zeeb AuthorDate: 2022-11-07 13:31:39 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-11-08 18:18:01 +0000 LinuxKPI: add virt_to_phys() Add virt_to_phys() as a define to vtophys(). This is used by a wireless driver for dma related work; sigh. MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37301 --- sys/compat/linuxkpi/common/include/asm/io.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/io.h b/sys/compat/linuxkpi/common/include/asm/io.h index 49eca70a38eb..7787125f4f04 100644 --- a/sys/compat/linuxkpi/common/include/asm/io.h +++ b/sys/compat/linuxkpi/common/include/asm/io.h @@ -31,6 +31,13 @@ #ifndef _LINUXKPI_ASM_IO_H_ #define _LINUXKPI_ASM_IO_H_ +#include + +#include +#include + #include +#define virt_to_phys(x) vtophys(x) + #endif /* _LINUXKPI_ASM_IO_H_ */