View | Details | Raw Unified | Return to bug 258473
Collapse All | Expand All

(-)b/net/realtek-re-kmod/Makefile (-6 / +4 lines)
Lines 1-22 Link Here
1
# Created by: Alex Dupre <ale@FreeBSD.org>
1
# Created by: Alex Dupre <ale@FreeBSD.org>
2
2
3
PORTNAME=	re
3
PORTNAME=	re
4
DISTVERSION=	v196.04
4
PORTVERSION=	196.04
5
PORTREVISION=	3
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	4
6
CATEGORIES=	net
7
CATEGORIES=	net
7
MASTER_SITES=	LOCAL/ale
8
MASTER_SITES=	LOCAL/ale
8
PKGNAMEPREFIX=	realtek-
9
PKGNAMEPREFIX=	realtek-
9
PKGNAMESUFFIX=	-kmod
10
PKGNAMESUFFIX=	-kmod
10
DISTNAME=	rtl_bsd_drv_${DISTVERSION}
11
DISTNAME=	rtl_bsd_drv_${DISTVERSIONPREFIX}${PORTVERSION}
11
12
12
MAINTAINER=	ale@FreeBSD.org
13
MAINTAINER=	ale@FreeBSD.org
13
COMMENT=	Kernel driver for Realtek PCIe Ethernet Controllers
14
COMMENT=	Kernel driver for Realtek PCIe Ethernet Controllers
14
15
15
LICENSE=	BSD4CLAUSE
16
LICENSE=	BSD4CLAUSE
16
17
17
ONLY_FOR_ARCHS=		amd64 i386
18
ONLY_FOR_ARCHS_REASON=	uses X86-specific code
19
20
USES=		kmod tar:tgz uidfix
18
USES=		kmod tar:tgz uidfix
21
19
22
PLIST_FILES=	${KMODDIR}/if_re.ko
20
PLIST_FILES=	${KMODDIR}/if_re.ko
(-)b/net/realtek-re-kmod/files/patch-optional-dash (+20 lines)
Added Link Here
1
--- if_re.c
2
+++ if_re.c
3
@@ -4355,6 +4355,7 @@ static void re_init_software_variable(struct re_softc *sc)
4
                 sc->re_dash = re_check_dash(sc);
5
 
6
         if (sc->re_dash) {
7
+#if defined(__amd64__) || defined(__i386__)
8
                 if (HW_DASH_SUPPORT_TYPE_3(sc)) {
9
                         u_int64_t CmacMemPhysAddress;
10
                         bus_space_handle_t cmac_ioaddr;
11
@@ -4374,6 +4375,9 @@ static void re_init_software_variable(struct re_softc *sc)
12
                                         sc->re_mapped_cmac_handle = cmac_ioaddr;
13
                         }
14
                 }
15
+#else
16
+                sc->re_dash = 0;
17
+#endif
18
         }
19
 
20
         switch(sc->re_type) {

Return to bug 258473