From nobody Tue Feb 11 03:44:22 2025 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 4YsS471BZnz5nKN6; Tue, 11 Feb 2025 03:44:23 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YsS46749bz448y; Tue, 11 Feb 2025 03:44:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739245463; 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=sVfM+090/pmZqC8m2aTWhXaRknhHOlmayAlBI5X2YoI=; b=P2fR8XpoLMD6FNk4irzYArpmxRUp57uZM33dpaqrcHkfWZ8l5Llh8xv175uWd3G4dd0aok 1E+uQ1COu4AqexbGt0zgRhCagetsRah5Nj8E2fpruMcrtlCrBBaugKlnj0pbiXwjfujiA5 xYJjqwSJlZ2o0ZnxlwSCbBOzaJmAcF+hige3qu4dKpwySokUcszn6bF0LadTzRplP+xst9 hmGuNHTvPktUpiGKXle6jwBGG3AZBlP1AwZ0LAp4AGJ45l/vw8ifevR2nmzWpGE+sMxXkh ps/siWHsZ7yntSLz2R4qvL6Ix/EHt9ucjo3RbHH6g27wssCg+rMtxeAsA2ENqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739245463; 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=sVfM+090/pmZqC8m2aTWhXaRknhHOlmayAlBI5X2YoI=; b=ORoBTteMrPPJw/UJievznwQiabDn2g/rvFURUqIU9gn39RgkKR3oSdGH/Gk03gmOmHkFNM FCwi0lGxfZX01fu9Q+BSJlXqhHeRIIpa0d2veynMXQniQCo8sFaYyG00HqumS2PfcTrJMR DRcYaj+5XlRhQSt5URdCizfYb4WxB+RP8cyLTcR83RGISbFZKRbet9k9wm85gzsKACehEo yDf0/szapiXYhRxcc+dnv7uf1KbQ71KHVZIwlj2x1dMewIq3Ik9bii7hj378/vvmCyL1Rq S+tVXdVHuKhhcLtUzJgFe6U1a2eCPbzWD6D8UdDWbgpAvoFq+HS7LHOcNo56WA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739245463; a=rsa-sha256; cv=none; b=ScisK8TKCPQIO+xkuxeEx542xppFgFI8i64u2gVNLe8gS29HFA+xpFv48ogEcB8UuH04+H bfnRETft8XEqKGYOTLuEv2XnTqo0jIEc+OoJDJkR+EfT2I606vztkwry5GqBiis0eDnZdE U2Qo2cxeDiejSQQkHOrzzvCTMwvZE04vkObM5cliLGamG1H6kK34ZEl4QglaOwG8pr+h9z hm1l2xBy+S9hx9C+AS38xX+ry/EzspFHgcEJqMglYlmr6TdmUYhZ7n7Q0XLgokW6I6sYBH t6oUs+rmsdaGW3Md5iWyzV6s0k/LQwCo+Af8QrniUiNHqUk8pYb6J2eNFbqPww== 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 4YsS466bYnzw3t; Tue, 11 Feb 2025 03:44:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51B3iMjw074913; Tue, 11 Feb 2025 03:44:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51B3iM2v074910; Tue, 11 Feb 2025 03:44:22 GMT (envelope-from git) Date: Tue, 11 Feb 2025 03:44:22 GMT Message-Id: <202502110344.51B3iM2v074910@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: bf6f0db8a762 - main - ixgbe: Add ixgbe_dev_from_hw() back 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bf6f0db8a762966b08430692c92ae34e667948db Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=bf6f0db8a762966b08430692c92ae34e667948db commit bf6f0db8a762966b08430692c92ae34e667948db Author: Kevin Bowling AuthorDate: 2025-02-11 03:40:51 +0000 Commit: Kevin Bowling CommitDate: 2025-02-11 03:41:51 +0000 ixgbe: Add ixgbe_dev_from_hw() back This got lost many years ago in 8eb6488ebb0dcd92517625e4833ddf7d26e3b3a3 It is used by the driver's DBG printfs. MFC after: 3 days --- sys/dev/ixgbe/ixgbe_osdep.c | 6 ++++++ sys/dev/ixgbe/ixgbe_osdep.h | 1 + 2 files changed, 7 insertions(+) diff --git a/sys/dev/ixgbe/ixgbe_osdep.c b/sys/dev/ixgbe/ixgbe_osdep.c index 2fa651df8936..892924712c38 100644 --- a/sys/dev/ixgbe/ixgbe_osdep.c +++ b/sys/dev/ixgbe/ixgbe_osdep.c @@ -33,6 +33,12 @@ #include "ixgbe.h" +inline device_t +ixgbe_dev_from_hw(struct ixgbe_hw *hw) +{ + return ((struct ixgbe_softc *)hw->back)->dev; +} + inline u16 ixgbe_read_pci_cfg(struct ixgbe_hw *hw, u32 reg) { diff --git a/sys/dev/ixgbe/ixgbe_osdep.h b/sys/dev/ixgbe/ixgbe_osdep.h index eca15f0f3816..cf7c578fd684 100644 --- a/sys/dev/ixgbe/ixgbe_osdep.h +++ b/sys/dev/ixgbe/ixgbe_osdep.h @@ -197,6 +197,7 @@ struct ixgbe_osdep /* These routines need struct ixgbe_hw declared */ struct ixgbe_hw; +device_t ixgbe_dev_from_hw(struct ixgbe_hw *hw); /* These routines are needed by the shared code */ extern u16 ixgbe_read_pci_cfg(struct ixgbe_hw *, u32);