From nobody Mon Aug 8 14:04:17 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 4M1dH63Lqgz4Y4YW; Mon, 8 Aug 2022 14:04:18 +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 4M1dH60T75z3v8s; Mon, 8 Aug 2022 14:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659967458; 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=AZgz8tQE3Hm3FfZSOmthbv1smDdlQ+AT12RXhH3ea5g=; b=GpUdgxxQm3v3Cft2cAhKy66uOZSl0ftiB1ECc8m8iXvh8xo4dZrq5KGji3OzRyrf6ciCdp tP8Uh5juz5RMM8lHdXPxiV9F6aqHWHLSkgNkQ4PY1E/RXrwIA+gVshq3N03HGlHO2z10X0 w42H50JF9aHCxeX3XKLZh1wCGEx674CDyDYjNsbs97zqpoPYv2bal5bgnjBO4ChnmI7NKz REr2MJrEq7td51gpOi36UEsHQPffIEjY9EtXGSaiWRnaHBe6gZDIeh00o1AbBtEYrp7fYA 4FKLFo+PkNMXZMN7wqXlOUgNleEtPnxV3WOqJrFxpAX8UqHLrUCIAl2zbcY5qw== 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 4M1dH55tZ0ztsc; Mon, 8 Aug 2022 14:04:17 +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 278E4HmJ088815; Mon, 8 Aug 2022 14:04:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 278E4HCo088814; Mon, 8 Aug 2022 14:04:17 GMT (envelope-from git) Date: Mon, 8 Aug 2022 14:04:17 GMT Message-Id: <202208081404.278E4HCo088814@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: 96b917bfcf2c - main - linuxkpi: Add io.h 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 96b917bfcf2c558340f8f6e620e64efededa1daf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659967458; 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=AZgz8tQE3Hm3FfZSOmthbv1smDdlQ+AT12RXhH3ea5g=; b=JHeygilxBIZZTBXqA+iYV+uzSukLSFBGVFOyR9a+2wZxwE/8ElmJ3RkyNBG4Cgyp0K+e40 HIzXbFDA2VCade63I62Jl+j2mQsu2kO5E1OwVu6DPTU3sNA05J/CEQq/5nCPGY5Y60DqJc 2f3fN+yMKLMhzo3gPFfy/bkcMF0kjj3TXe9dpSLVBGBc+ufPTDftsvyl7H8gL+Dw4E6wWN CuhDRbuQDVujn5d/khyehvPZnCX8bGtyKmh6u4mJYv9/W4ud/C+A8XcZJDH9tsNcSKEOgw he2kTJbhpvqF+vRyaKsSA57wnkaBqmGxaRiB3w0fXl7WTYQtujSb/7pN+c/JFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659967458; a=rsa-sha256; cv=none; b=KPPQOrt28H226H8mWyoebUequECOQn2lKzKjJXPTUoNufs3KRxUHf9OGv5tJBEmPCF+XUk HTfmxL9bijhCdobX0yBth5QndjXqtrsxl1++5lq6KWKsRNOpCZUnJWWOmsTFZOqYC5tgFH 9guD+t3tIDJz6CnqLY4uxzFr4QabomqaY/h4Fd4hqqx+Cj3YOp2Qwb9EULMkLROPi+QSzY CqKcPyPNi2wtFU37fpCI0I1EkR5hY+Lu1hVduih4HNCN4mnC6T4wO7qvcU9G8V4GFYMJ+j NZx5mgINMGy5OBi/LASsJ7zw3hOrGeW2v2WwhsbWMBKiHVol+ai1WFhOtYn6dA== 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=96b917bfcf2c558340f8f6e620e64efededa1daf commit 96b917bfcf2c558340f8f6e620e64efededa1daf Author: Emmanuel Vadot AuthorDate: 2022-07-26 08:15:45 +0000 Commit: Emmanuel Vadot CommitDate: 2022-08-08 13:22:35 +0000 linuxkpi: Add io.h out* arguments are different on Linux and the i915 driver uses them. Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35942 --- .../linuxkpi/common/include/asm-generic/io.h | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm-generic/io.h b/sys/compat/linuxkpi/common/include/asm-generic/io.h new file mode 100644 index 000000000000..8dc7eb6cf453 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/asm-generic/io.h @@ -0,0 +1,40 @@ +/*- + * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ + +#ifndef _LINUXKPI_ASMGENERIC_IO_H_ +#define _LINUXKPI_ASMGENERIC_IO_H_ + +#if defined(__i386__) || defined(__amd64__) + +#include + +#define outb(a,b) outb(b,a) +#define outw(a,b) outw(b,a) +#define outl(a,b) outl(b,a) + +#endif + +#endif /* _LINUXKPI_ASMGENERIC_IO_H_ */