From nobody Thu Nov 09 08:40:13 2023 X-Original-To: dev-commits-ports-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 4SQwPn3C1Mz50j2t; Thu, 9 Nov 2023 08:40:13 +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 4SQwPn2mMnz3S41; Thu, 9 Nov 2023 08:40:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699519213; 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=DNOLOm9e+E1Z6c9HpJI5mtAE4b2xwbqKaJR/wMhHjps=; b=qS6cvp+3ieh2SmICcnVxDx13jqsV6ZDq3DogsBquAHCUqVV9WswRBWuU3uvmxkHfQdAM1y 5pEYvSr5W4t6iIDTXTRlKxpYXE/UQT+CWTyWKn2y2yU6FKgT02qYsozNFrpSXkXH7YnHry Y7agnK+Xokov7A38NBhXsimUlDh3QwsnTh/8+/xjQiosQI5wwA9DHfwJqVMkMlSsuu31Qu dFhRWaoeJzWJQ7oMPXLu9t2J60DRxHj0omx/SDo65Fqpt5oXIhL5sfxYUwMaoIapuEaCTP GIXvmgpOzwZARZRkp6sPPkt9Lv5ejXoi61ZIdtO+Mn+eyuhrSXj5XjIC/+IK0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699519213; 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=DNOLOm9e+E1Z6c9HpJI5mtAE4b2xwbqKaJR/wMhHjps=; b=XRxw7/oOPEj0WOGgg/OImhQ71bP8l54lv6OglEO4q7n/xnkI0lmqcfBAvYIc4M+Jx8Cl0P nc7FSpNObz+1wGxN43lBgrMpjSe1cW6q+LlXEq+Ee3fN+t5Zi85nUwgM/JGhW8aF0bKcQI pdkcp7kI36ILTi53qg5UtcULWSdSbVz+GA4q9q5vOHcQMJQjbTpYLfMANU2bbxxANRXiCY Oj2ft0o3wMMaR01XG2wHR9tVU/WPu4SIVRIdmKTHEFyxtAhbJAAbQLtfHvONyORVf//5Bj m1ZfCG6+gXLqn8JyyFT7W1lPMqqtic2t5M+isfrRPbo9GY0eGrs3RiX0j/4crg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699519213; a=rsa-sha256; cv=none; b=Q8VLMhLbF7h3Tp617JZTbxzMLRHYhHWaNnCfLXt+KO509DIsdRGngmzxl/hVfy76MbXcKB p1yjkFl6FqPi7c3BLEprLsdDaOFJl3X4WB6RpQdmvQ6lo+RDLvfjHIOebhzVES2dFjoin7 XAQcGmjlRUAjP9bdir2Zj+MAyOWURsHu5iWIFEcXtwGK4nKbLFvZ3ClCpLyJh5GWGTTWw5 7xkAb30QCJMCtkdp59QlmK6pFnkjyRvRZj72CjE0zJATKGkf2qShzlisywsAosXuDoyFsD QL9LSloe70QCzJxfTNRjyHJmHxt6au+NFSomrR5II4vNXU681zPkEI3L5wCSfg== 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 4SQwPn1t1pz17g1; Thu, 9 Nov 2023 08:40:13 +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 3A98eDKK070298; Thu, 9 Nov 2023 08:40:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A98eD3Y070289; Thu, 9 Nov 2023 08:40:13 GMT (envelope-from git) Date: Thu, 9 Nov 2023 08:40:13 GMT Message-Id: <202311090840.3A98eD3Y070289@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 1a8019b9686f - main - net/aquantia-atlantic-kmod: fix build on non-x86 by adding missing macros List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a8019b9686f1dde684ebbbd25773b404f460ee3 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=1a8019b9686f1dde684ebbbd25773b404f460ee3 commit 1a8019b9686f1dde684ebbbd25773b404f460ee3 Author: Piotr Kubaj AuthorDate: 2023-11-07 23:10:32 +0000 Commit: Piotr Kubaj CommitDate: 2023-11-09 08:39:48 +0000 net/aquantia-atlantic-kmod: fix build on non-x86 by adding missing macros --- net/aquantia-atlantic-kmod/files/patch-aq__hw.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/net/aquantia-atlantic-kmod/files/patch-aq__hw.h b/net/aquantia-atlantic-kmod/files/patch-aq__hw.h new file mode 100644 index 000000000000..adc085697cd5 --- /dev/null +++ b/net/aquantia-atlantic-kmod/files/patch-aq__hw.h @@ -0,0 +1,17 @@ +--- aq_hw.h.orig 2023-11-07 23:05:23 UTC ++++ aq_hw.h +@@ -42,6 +42,14 @@ + #include + #include "aq_common.h" + ++#ifndef readl ++#define readl(va) (*(volatile uint32_t *) (va)) ++#endif ++ ++#ifndef writel ++#define writel(va, d) (*(volatile uint32_t *) (va) = (d)) ++#endif ++ + #define AQ_WRITE_REG(hw, reg, value) writel(((hw)->hw_addr + (reg)), htole32(value)) + + #define AQ_READ_REG(hw, reg) le32toh(readl((hw)->hw_addr + reg))