git: 1a8019b9686f - main - net/aquantia-atlantic-kmod: fix build on non-x86 by adding missing macros
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Nov 2023 08:40:13 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=1a8019b9686f1dde684ebbbd25773b404f460ee3 commit 1a8019b9686f1dde684ebbbd25773b404f460ee3 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-11-07 23:10:32 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> 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 <sys/endian.h> + #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))