From nobody Sun Sep 1 13:28:05 2024 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 4WxXkt2Xtjz5VD09; Sun, 01 Sep 2024 13:28:06 +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 4WxXks39Fqz4KYv; Sun, 1 Sep 2024 13:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725197285; 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=2GNzfFP3B5DWbPT5QiPfO83RqTmmMXG1uZmz90U9YQE=; b=UtULhVPoVou683wxLj8FgX5WA22MBnPpDFpDJWRo9sszFgzZQ1TdpOLujX5dFjb1ZwX31x rATgprTViTqdORnsUtAWsV7YUuXE/2ZsgCw/0FcedvI2G35I1HLAiCjkzfp6F2eVic3sfF njML+Fn7X4q5y5sO1358qluZzkHpnrgOd9+8EFgggfTtYTcfyODfF3HIfDnrJK8ffWDjj4 NoJS68+i0cvSUgqfgLAFR96nsgu696Vn0CKW5SEltSUjjM5g5EkJYbNJNC8LVJk9VkepIh 8IZ0Aq/q4NL7x5bylrJ0YF25LmeP8H6hcL330iqKdkbBvVbra0IMJd83Gu8mHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725197285; a=rsa-sha256; cv=none; b=VYu3/CR3HflprCE5Ub7cSbi5W+XyNqS6Yctfp32gqxG4qB0Qo5i8yjdxPJfapC0+i2UswR q35GtQxtIGJikeyEeg90UACwmTR/n83g59LM4ClucaOYGsSdLKXMCeqEtK7rTLm/OiUXe7 czgaFHn0m/bO+woDYY7Y5xQFcDBmaLKg2us9UV9J3CK6Tb83HTl/2jUYYyBRKj3PdE9WUK gzSy/KbI0UwdqOt43ohZRo8IQKxc65VVbDs+1SA7Vj+QXRP3irJ5koPXSNzVmwvi7gzX4/ OWrlNYKLrbx55MmlWTfI7HqKwDfAKsc4VjfpW12sVRexA6IInu6XPykhObHerQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725197285; 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=2GNzfFP3B5DWbPT5QiPfO83RqTmmMXG1uZmz90U9YQE=; b=m9UkvZrESn3R1p4GwzvoTRzdjhi9ZFXGe5CorIZ9uYnLQD1eeEoFNz5sTKE4Dk+w+yJMuC NB6CIMYVQXlmEGwg1aIxLHTXYl+g6qf+cVg5vVBCYyJh/5BRJRJiDMFayCzHyLSom4Ae9p SwWHWrHAGkgtcjOtNPZZfHTXIfY5NBWQbsHeBKmkYTA71cmLyPlmBnyEcFJWuFFV6pDWtv +wXVES0B8Q7Vn1F+5mdh0DpMpbgomMpNR4f486rmPtQn97GKyfWIeytXhRU34uYJoDEgpJ uvxgvta49XyuJpa+Cfi9+xcy47LVv1GoI+CZPGf6kiH8SjEDvCuyAOlErurDaA== 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 4WxXks2k0fzV89; Sun, 1 Sep 2024 13:28:05 +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 481DS54I030874; Sun, 1 Sep 2024 13:28:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 481DS54q030871; Sun, 1 Sep 2024 13:28:05 GMT (envelope-from git) Date: Sun, 1 Sep 2024 13:28:05 GMT Message-Id: <202409011328.481DS54q030871@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: b4ef1b1be753 - main - tools/sdiodevs2h.awk: introduce palias 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: b4ef1b1be753952a4aafa505817164624f712c37 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b4ef1b1be753952a4aafa505817164624f712c37 commit b4ef1b1be753952a4aafa505817164624f712c37 Author: Bjoern A. Zeeb AuthorDate: 2024-08-27 18:41:17 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-08-31 21:37:53 +0000 tools/sdiodevs2h.awk: introduce palias Some of the defined names are not the direct 1:1 mapping with vendor and device names used by Linux device drivers. Introduce a p(roduct)alias so we can map the one device entry I came across without much extra hassle and generate a name device drivers know about: palias BROADCOM_CYPRESS_43439 CYPRESS_43439 Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46455 --- sys/tools/sdiodevs2h.awk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys/tools/sdiodevs2h.awk b/sys/tools/sdiodevs2h.awk index 596d09531ab1..99735dc09a62 100644 --- a/sys/tools/sdiodevs2h.awk +++ b/sys/tools/sdiodevs2h.awk @@ -149,6 +149,18 @@ function product(hfile) printf("\n") > hfile } +function palias(hfile) +{ + nproducts++ + + products[nproducts, 1] = $2; # vendor name + products[nproducts, 2] = $3; # product id + products[nproducts, 3] = $4; # id + if (hfile) + printf("#define\tSDIO_DEVICE_ID_%s\tSDIO_DEVICE_ID_%s\n", \ + $2, $3) > hfile +} + function dump_dfile(dfile) { printf("\n") > dfile @@ -243,6 +255,10 @@ while ((getline < srcfile) > 0) { product(hfile) continue } + if ($1 == "palias") { + palias(hfile) + continue + } if ($0 == "") blanklines++ if (hfile)