From nobody Wed Nov 29 16:37:54 2023 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 4SgQ3k59R5z52wX0; Wed, 29 Nov 2023 16:37:54 +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 4SgQ3k29GCz3GYL; Wed, 29 Nov 2023 16:37:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701275874; 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=LWL7asUQo5uFeWNrhvm/r5q5Q4ZNoCfTlGdq+lXHfHg=; b=UgOLaqvdpSnNnBtGJhB59FPs+uEbox7pge3do62dMu2X0/N5LiqMZAKFen3ORn7s3FS/Uo 9O5AAbY7qasQypW+Jy2PgeLoYbFqs+IdFD9hAZxDqcfou6u2/79V+5rOigl3UyDjekvhI6 z+poI8UfKDq+XG3IbYkLAooeDtKodgDYwB9OPMH9xNdRgOpcKdkHwyJ7ERWTO+1Mds55jM Ifn7PLfMUtjEBg50R52AwKks25/pa/1lKtRQHJrfDLAiSonKVvWRilgnX16y8VfzrXIA4V CIN5HqoBCFpZ7uTgpTekUthV7QWa1qEnOl9Xyuqr62sMgsufHW7ka/upOm4Bmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701275874; 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=LWL7asUQo5uFeWNrhvm/r5q5Q4ZNoCfTlGdq+lXHfHg=; b=Wdnk/65J2PLdCb2EoZuxXxdGeG99WLssnp11SQ7sqW6ceZQa0atrOTV8qYbn4ti11EsiJN JU4naf5RuHxq/PHBX+iTGoGH8zLKHqYLWnoecOcp/dj8Q56nOZgyznAipSvgYMr7SeydVI afy0JGNqiqM4OvF0ttoPGhoLy6Q5pbhoX4FMTRCfVxz6TfniZYvviWxoNMb6L6phS69/KS 89I0L8LP/9aJSJoXCK43DJ8nC0B+dHwGUDnFoHayS0h/qWtT4ImildYpd3JHNrD9uJPCRM ceTy68UktX+aqkiOHV6a723ovbqfUTz34ZygQe27n2w+GVzx3YX8ehveVzIUPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701275874; a=rsa-sha256; cv=none; b=UU5+UXXP9kixarkH5zd1Yg1lij9/7HXnVCTAFqnjz3FzUFmc61FquCevmBuK6u8rGY3uxC L3Fq0v/cfbGVxyRUWUBekdqrior+bY7wl71/oYFoKKNtvAr6eEjSPYV+z1qekvcborPU08 Y/zob05TOUS/kHuOj0uQxtG/yhMOWqUiz5+vy09j/z630R81DzReuYJawBYz3u6c13mLNf pOT0+39JrUbNAIWpr8zEPmyEDSRI/O31cHeJi6a6ST/P/mVTmpfLo/ZCinkW7h9QyWDoN8 qLdE8zKO8VHDwb7q6EPOGIF8MaK+UPXQOJrruw4aIHsl3cKVDDAsvEzV0+QEgQ== 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 4SgQ3k1Gbqz1Bh0; Wed, 29 Nov 2023 16:37:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3ATGbsDO044428; Wed, 29 Nov 2023 16:37:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ATGbs0Q044425; Wed, 29 Nov 2023 16:37:54 GMT (envelope-from git) Date: Wed, 29 Nov 2023 16:37:54 GMT Message-Id: <202311291637.3ATGbs0Q044425@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: bac17554e4fb - stable/13 - LinuxKPI: pci.h add more constants 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/stable/13 X-Git-Reftype: branch X-Git-Commit: bac17554e4fb262db103b1378b416560077f75b0 Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=bac17554e4fb262db103b1378b416560077f75b0 commit bac17554e4fb262db103b1378b416560077f75b0 Author: Bjoern A. Zeeb AuthorDate: 2023-07-26 02:58:35 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-11-29 16:36:03 +0000 LinuxKPI: pci.h add more constants Add two more PCI_EXP_LNKSTA_CLS constants to the compat defines needed by wireless drivers. Sponsored by: The FreeBSD Foundation (cherry picked from commit f74c09f3ec69a6cdba46aa821ab665d2f87142f7) --- sys/compat/linuxkpi/common/include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 41849b4f4b39..d8ab851435f5 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -145,6 +145,8 @@ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \ #define PCI_EXP_TYPE_DOWNSTREAM PCIEM_TYPE_DOWNSTREAM_PORT /* Downstream Port */ #define PCI_EXP_FLAGS_SLOT PCIEM_FLAGS_SLOT /* Slot implemented */ #define PCI_EXP_TYPE_RC_EC PCIEM_TYPE_ROOT_EC /* Root Complex Event Collector */ +#define PCI_EXP_LNKSTA_CLS PCIEM_LINK_STA_SPEED +#define PCI_EXP_LNKSTA_CLS_8_0GB 0x0003 /* Current Link Speed 8.0GT/s */ #define PCI_EXP_LNKCAP_SLS_2_5GB 0x01 /* Supported Link Speed 2.5GT/s */ #define PCI_EXP_LNKCAP_SLS_5_0GB 0x02 /* Supported Link Speed 5.0GT/s */ #define PCI_EXP_LNKCAP_SLS_8_0GB 0x03 /* Supported Link Speed 8.0GT/s */