Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Conditionalize iwn_memwrite_2 and friends under ...



details:   https://anonhg.NetBSD.org/src/rev/8efc225e5ba7
branches:  trunk
changeset: 789972:8efc225e5ba7
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Sep 14 13:11:31 2013 +0000

description:
Conditionalize iwn_memwrite_2 and friends under !IEEE80211_NO_HT.

diffstat:

 sys/dev/pci/if_iwn.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 09176efd7c24 -r 8efc225e5ba7 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sat Sep 14 13:10:25 2013 +0000
+++ b/sys/dev/pci/if_iwn.c      Sat Sep 14 13:11:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwn.c,v 1.68 2013/08/23 16:49:53 christos Exp $     */
+/*     $NetBSD: if_iwn.c,v 1.69 2013/09/14 13:11:31 joerg Exp $        */
 /*     $OpenBSD: if_iwn.c,v 1.119 2013/05/29 23:16:52 yuo Exp $        */
 
 /*-
@@ -22,7 +22,7 @@
  * adapters.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.68 2013/08/23 16:49:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.69 2013/09/14 13:11:31 joerg Exp $");
 
 #define IWN_USE_RBUF   /* Use local storage for RX */
 #undef IWN_HWCRYPTO    /* XXX does not even compile yet */
@@ -918,6 +918,7 @@
        IWN_WRITE(sc, IWN_MEM_WDATA, data);
 }
 
+#ifndef IEEE80211_NO_HT
 static __inline void
 iwn_mem_write_2(struct iwn_softc *sc, uint32_t addr, uint16_t data)
 {
@@ -930,6 +931,7 @@
                tmp = (tmp & 0xffff0000) | data;
        iwn_mem_write(sc, addr & ~3, tmp);
 }
+#endif
 
 static __inline void
 iwn_mem_read_region_4(struct iwn_softc *sc, uint32_t addr, uint32_t *data,



Home | Main Index | Thread Index | Old Index