From nobody Wed Sep 07 15:09:49 2022 X-Original-To: dev-commits-src-branches@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 4MN5Jt2fW5z4ccyh; Wed, 7 Sep 2022 15:09:50 +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 4MN5Jt1wgMz3WRN; Wed, 7 Sep 2022 15:09:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563390; 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=PjlBtuG+jPA4S8RJhx2nAutFT7mfytHnEy30UpFBqzs=; b=dm8++kz+m+55gmpGQm+jIYRSr2HbHWiHaM8VclajqchyD1gGLOuUSM6hKvTBoGGhIXxqyX Nt1kUM0Vesfn+WM7kNUZ+kmHxTUTu/xEHFJmdUQKSGnr9ENRXW02hnRQEdoV091OgihW7o 5tTZX++5Zv+l2jOK8BIM39q5IEt/miC5a4CQdihM2klkweoIlsxhZK3HzygDbHANPBHHs0 dgsa1Ocymxax3lUz901RqizFGwKryCelsxW7uveVJxwo2SFHx4tBEWS/PCbwKPN0/ySYip 0eXWkfroz2TTkPkfZ8K+M4SeKSpD6z8wH4pnsbFbe+VETwIL5bTKJM5EvC3eZQ== 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 4MN5Jt0ZJkzZ6Z; Wed, 7 Sep 2022 15:09:50 +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 287F9nwu017085; Wed, 7 Sep 2022 15:09:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287F9nKM017084; Wed, 7 Sep 2022 15:09:49 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:09:49 GMT Message-Id: <202209071509.287F9nKM017084@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: cd1a0f5f1063 - stable/13 - linuxkpi: Add console.h List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: cd1a0f5f10631c3efdec72836c22dd78907e56c3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563390; 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=PjlBtuG+jPA4S8RJhx2nAutFT7mfytHnEy30UpFBqzs=; b=HI/1zJjbXqToHw9XfVECEcGDWfsXYKE3JvvCAbiANDNnOkJiFKvuJ+l9LGmqBO3qsxoji3 ZDkmzd7Ip681wGaa01FTH9KH3Rwfk5HefelyijqHCVc9kzpfvhDRvVzVKnY+VvWKi1rAS9 EGrwPE39BFks1/2r7qFarygH5viVVbOXfZTfi//R72PUz5qGVF1cpGSKfbHHRMYy9ljC9h r6wTXfy2QrQ/56gqgtV7O/J2t1pukbKav+fQRpjsmIfffsC9/VO9WdyBxnjngsIHYtTIY4 ChH1X0kaGUx3H+MY/ErItPl4dWqA17BOdhnAxKbwwjgDsVjoked5KVGKR6QMCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563390; a=rsa-sha256; cv=none; b=EGXV04DtpRpevzExzTnCbHY/InuAD+0RtOlPNM0WaGeGSTF+ydQdBm4QLzAMGBJKruBObT CvTMwwfvvBJfsAekkDMGsSJqFUzrANY2i4gIzgYHM7DpfOsGIqQbTFW8UNoSNgrZrAidWJ Q9+caBz9lOmLJwBZ7/LXiDvz9XvreBBVWFMq3gvJA2+40EwPxxJlgWdDTKPSW2A8XZc4tr +ShQW6OYl1MOdhe3hD5Ba7c15WduW1vsqDzm6uEsvoqQzP7P8eM+bPkl/ROBzbYqhZBfxW XRhj/o8s8sL4QaojrfGqlGMqJewX+2KZHsHfROelu9xrcKAFIx4mK0ggXU8jIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=cd1a0f5f10631c3efdec72836c22dd78907e56c3 commit cd1a0f5f10631c3efdec72836c22dd78907e56c3 Author: Emmanuel Vadot AuthorDate: 2022-06-23 07:48:11 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:02 +0000 linuxkpi: Add console.h Provide dummy functions needed for drm-kmod. Reviewed By: bz MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35562 (cherry picked from commit 57c9ec539cbae4239390b8877e38b1e1f82710ae) --- sys/compat/linuxkpi/common/include/linux/console.h | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/console.h b/sys/compat/linuxkpi/common/include/linux/console.h new file mode 100644 index 000000000000..09f486203815 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/console.h @@ -0,0 +1,55 @@ +/*- + * 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_LINUX_CONSOLE_H_ +#define _LINUXKPI_LINUX_CONSOLE_H_ + +#include + +static inline void +console_lock(void) +{ +} + +static inline int +console_trylock(void) +{ + return (1); +} + +static inline void +console_unlock(void) +{ +} + +static inline bool +vgacon_text_force(void) +{ + + return (false); +} + +#endif /* _LINUXKPI_LINUX_CONSOLE_H_ */