Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic swap16 -> bswap16 swap32 -> bswap32



details:   https://anonhg.NetBSD.org/src/rev/d4a19e2c15f3
branches:  trunk
changeset: 792971:d4a19e2c15f3
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jan 22 17:29:29 2014 +0000

description:
swap16 -> bswap16   swap32 -> bswap32

diffstat:

 sys/dev/ic/arn9380.c |  30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diffs (57 lines):

diff -r aabdd9684c63 -r d4a19e2c15f3 sys/dev/ic/arn9380.c
--- a/sys/dev/ic/arn9380.c      Wed Jan 22 16:32:09 2014 +0000
+++ b/sys/dev/ic/arn9380.c      Wed Jan 22 17:29:29 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arn9380.c,v 1.2 2013/04/03 14:20:02 christos Exp $     */
+/*     $NetBSD: arn9380.c,v 1.3 2014/01/22 17:29:29 matt Exp $ */
 /*     $OpenBSD: ar9380.c,v 1.17 2012/10/20 09:54:20 stsp Exp $        */
 
 /*-
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9380.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9380.c,v 1.3 2014/01/22 17:29:29 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -224,25 +224,25 @@
        struct ar9380_modal_eep_header *modal;
        int i;
 
-       base->regDmn[0] = swap16(base->regDmn[0]);
-       base->regDmn[1] = swap16(base->regDmn[1]);
-       base->swreg = swap32(base->swreg);
+       base->regDmn[0] = bswap16(base->regDmn[0]);
+       base->regDmn[1] = bswap16(base->regDmn[1]);
+       base->swreg = bswap32(base->swreg);
 
        modal = &eep->modalHeader2G;
-       modal->antCtrlCommon = swap32(modal->antCtrlCommon);
-       modal->antCtrlCommon2 = swap32(modal->antCtrlCommon2);
-       modal->papdRateMaskHt20 = swap32(modal->papdRateMaskHt20);
-       modal->papdRateMaskHt40 = swap32(modal->papdRateMaskHt40);
+       modal->antCtrlCommon = bswap32(modal->antCtrlCommon);
+       modal->antCtrlCommon2 = bswap32(modal->antCtrlCommon2);
+       modal->papdRateMaskHt20 = bswap32(modal->papdRateMaskHt20);
+       modal->papdRateMaskHt40 = bswap32(modal->papdRateMaskHt40);
        for (i = 0; i < AR9380_MAX_CHAINS; i++)
-               modal->antCtrlChain[i] = swap16(modal->antCtrlChain[i]);
+               modal->antCtrlChain[i] = bswap16(modal->antCtrlChain[i]);
 
        modal = &eep->modalHeader5G;
-       modal->antCtrlCommon = swap32(modal->antCtrlCommon);
-       modal->antCtrlCommon2 = swap32(modal->antCtrlCommon2);
-       modal->papdRateMaskHt20 = swap32(modal->papdRateMaskHt20);
-       modal->papdRateMaskHt40 = swap32(modal->papdRateMaskHt40);
+       modal->antCtrlCommon = bswap32(modal->antCtrlCommon);
+       modal->antCtrlCommon2 = bswap32(modal->antCtrlCommon2);
+       modal->papdRateMaskHt20 = bswap32(modal->papdRateMaskHt20);
+       modal->papdRateMaskHt40 = bswap32(modal->papdRateMaskHt40);
        for (i = 0; i < AR9380_MAX_CHAINS; i++)
-               modal->antCtrlChain[i] = swap16(modal->antCtrlChain[i]);
+               modal->antCtrlChain[i] = bswap16(modal->antCtrlChain[i]);
 #endif
 }
 



Home | Main Index | Thread Index | Old Index