Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/realtek-re-kmod: allow building for other architectures
Disable dash support on such archs and fix version number. PR: 258473 Submitted by: Franco Fichtner <franco@opnsense.org>
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- if_re.c.orig 2022-01-17 17:01:39 UTC | ||
+++ if_re.c | ||
@@ -4355,6 +4355,7 @@ | ||
sc->re_dash = re_check_dash(sc); | ||
|
||
if (sc->re_dash) { | ||
+#if defined(__amd64__) || defined(__i386__) | ||
if (HW_DASH_SUPPORT_TYPE_3(sc)) { | ||
u_int64_t CmacMemPhysAddress; | ||
bus_space_handle_t cmac_ioaddr; | ||
@@ -4374,6 +4375,9 @@ | ||
sc->re_mapped_cmac_handle = cmac_ioaddr; | ||
} | ||
} | ||
+#else | ||
+ sc->re_dash = 0; | ||
+#endif | ||
} | ||
|
||
switch(sc->re_type) { |