From nobody Mon Feb 14 00:20:05 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 BBB4F1956BDE; Mon, 14 Feb 2022 00:20:05 +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 4JxlGs4hfpz4fhg; Mon, 14 Feb 2022 00:20:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644798005; 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=EmIZBWXTqQzBL2eQ6KUGYYD4w0fnDKyyEYWRhUpSbg0=; b=naHkI7TQEChk0j/t8OoEWA+BNen2XnIlJp0vlpCqt07WnESPYHaXHqT+ZF2qsk1/z2L11G lGMG5+27fMWb+t0yOuu8J4hJRB4kvMnpIzW9fhoFdmneVxcl75ROSYm7SC2B0eYb9eUKZK LRBquWyiCWVtdmZJZRfHhXm1C41m47DrWkaaB0XgvM10HCBAAUgGQZZMhYAl57gQJuPcN4 mErwoU1vbif49WaCVL38gOp1Ltgvo1VFEVfq6q09xj5OYNx8rPCvjfaDGJk2Frsu83HPBE Ows62b32SwikZWtfKLslKYFIJURnVzvtS1zqt+6d69UsdHAlLo1mdMhN491L9A== 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 7757B249F5; Mon, 14 Feb 2022 00:20:05 +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 21E0K5Tk073020; Mon, 14 Feb 2022 00:20:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21E0K5OB073017; Mon, 14 Feb 2022 00:20:05 GMT (envelope-from git) Date: Mon, 14 Feb 2022 00:20:05 GMT Message-Id: <202202140020.21E0K5OB073017@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: 0c37ffda799a - main - LinuxKPI: add an initial ethtool.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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0c37ffda799a9d44370bfe9898f220c193306842 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644798005; 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=EmIZBWXTqQzBL2eQ6KUGYYD4w0fnDKyyEYWRhUpSbg0=; b=dNrG8S3Qv4KmMISkEN4nILow21HmNFHJp1JXPfDcNES2MAUI7h7zWsNOoZnNG9Kly0s9oA hZJppjM3L3pfaX/F1VEB14pddzoMN55QYrWHuZMOnTNNNXV1Eh4GV3UZEwF4JQwi+/EvVw u/3fMBKinqqV0rmYWd/24dttxnvFjszzQgPQSehiszCC8nf/59LmVavwlPKYNIGW2/fpWj O0sTUnsvyIHB5zgvghmEiZjedcA0cwRzNasJE7gQPRP/+9dU7TyeBVgOsWU4CZq9ZIczUW zImLH4wKUGg9FufkGdZJ18JwNF18salP6H7jvLmVhWwMMG41nDaSiTNAS54YeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644798005; a=rsa-sha256; cv=none; b=C6RJ+uKz/Y/jN0Co+TxP9oCeMa+nwgt0MpAXUMldlKRqIgpK1JAKi2KYFLkF4I2YgOrIew U6GQuLQ5onRCTBDTs1eSYQ0bo+IlFi2smirGtuwLcqOF/cs0shAkEHL2+G2vk8/jvuNnSs R77QJ9NplGpeIkUzPoTCa4PxcK6d3HSxqlFg/euNkx4agTIuJ4f/849Bk4uiaVcV9T6r5M Tyn0TwKzX11YTw2PwXIbs5MI0D7sw/67a1LzWvDdAIf8M7dsibdzKgj7eiqSUruJdzK6Ys FXOKkHvhIbXiGC3e3VJDGcYjI1Nbl3ePzJity1vyyXc8z2ms74nLX0kH8WjIHw== 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=0c37ffda799a9d44370bfe9898f220c193306842 commit 0c37ffda799a9d44370bfe9898f220c193306842 Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 11:53:27 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 00:19:08 +0000 LinuxKPI: add an initial ethtool.h Add an initial ethtool.h for a define and a dummy struct for now needed by drivers. MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34229 --- sys/compat/linuxkpi/common/include/linux/ethtool.h | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/ethtool.h b/sys/compat/linuxkpi/common/include/linux/ethtool.h new file mode 100644 index 000000000000..9195766f752d --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/ethtool.h @@ -0,0 +1,41 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2022 Bjoern A. Zeeb + * + * 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. + * + * $FreeBSD$ + */ + +#ifndef _LINUXKPI_LINUX_ETHTOOL_H_ +#define _LINUXKPI_LINUX_ETHTOOL_H_ + +#include + +#define ETHTOOL_FWVERS_LEN 64 + +struct ethtool_stats { + uint8_t __dummy[0]; +}; + +#endif /* _LINUXKPI_LINUX_ETHTOOL_H_ */