summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2011-01-01 14:25:04 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2011-01-01 14:25:04 +0000
commita00e172e98d05cec564a9baae14c2d5cd159d75e (patch)
treeffb6077e92225818a0724e13578c633f2f0b5648 /sys/dev
parent986975698d5df2adf73f5ae068d98c756a426c49 (diff)
cleanup, no binary change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ar9280.c3
-rw-r--r--sys/dev/ic/ar9285.c4
-rw-r--r--sys/dev/ic/ar9380.c10
3 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/ic/ar9280.c b/sys/dev/ic/ar9280.c
index fa3177dba0e..99a24551dae 100644
--- a/sys/dev/ic/ar9280.c
+++ b/sys/dev/ic/ar9280.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9280.c,v 1.15 2010/12/31 17:50:48 damien Exp $ */
+/* $OpenBSD: ar9280.c,v 1.16 2011/01/01 14:25:03 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -474,7 +474,6 @@ ar9280_spur_mitigate(struct athn_softc *sc, struct ieee80211_channel *c,
spurchans = sc->ops.get_spur_chans(sc, IEEE80211_IS_CHAN_2GHZ(c));
for (i = 0; i < AR_EEPROM_MODAL_SPURS; i++) {
spur = spurchans[i].spurChan;
- /* XXX Linux checks this too late? */
if (spur == AR_NO_SPUR)
return; /* XXX disable if it was enabled! */
spur /= 10;
diff --git a/sys/dev/ic/ar9285.c b/sys/dev/ic/ar9285.c
index 57ff3fd1e52..58ff14d922f 100644
--- a/sys/dev/ic/ar9285.c
+++ b/sys/dev/ic/ar9285.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9285.c,v 1.15 2010/12/31 17:50:48 damien Exp $ */
+/* $OpenBSD: ar9285.c,v 1.16 2011/01/01 14:25:03 damien Exp $ */
/*-
* Copyright (c) 2009-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -19,7 +19,7 @@
/*
* Driver for Atheros 802.11a/g/n chipsets.
- * Routines for AR9285 chipsets.
+ * Routines for AR9285 and AR9271 chipsets.
*/
#include "bpfilter.h"
diff --git a/sys/dev/ic/ar9380.c b/sys/dev/ic/ar9380.c
index 8490e7e7604..b52676470a3 100644
--- a/sys/dev/ic/ar9380.c
+++ b/sys/dev/ic/ar9380.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9380.c,v 1.11 2011/01/01 13:44:42 damien Exp $ */
+/* $OpenBSD: ar9380.c,v 1.12 2011/01/01 14:25:03 damien Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
@@ -472,6 +472,8 @@ ar9485_pmu_write(struct athn_softc *sc, uint32_t addr, uint32_t val)
return (ETIMEDOUT);
}
+#define ar9486_pmu_read AR_READ
+
void
ar9485_init_swreg(struct athn_softc *sc)
{
@@ -479,12 +481,12 @@ ar9485_init_swreg(struct athn_softc *sc)
uint32_t reg;
ar9485_pmu_write(sc, AR_PHY_PMU2,
- AR_READ(sc, AR_PHY_PMU2) & ~AR_PHY_PMU2_PGM);
+ ar9486_pmu_read(sc, AR_PHY_PMU2) & ~AR_PHY_PMU2_PGM);
if (eep->baseEepHeader.featureEnable & AR_EEP_INTERNAL_REGULATOR) {
ar9485_pmu_write(sc, AR_PHY_PMU1, 0x131dc17a);
- reg = AR_READ(sc, AR_PHY_PMU2);
+ reg = ar9486_pmu_read(sc, AR_PHY_PMU2);
reg = (reg & ~0xffc00000) | 0x10000000;
ar9485_pmu_write(sc, AR_PHY_PMU2, reg);
} else {
@@ -493,7 +495,7 @@ ar9485_init_swreg(struct athn_softc *sc)
}
ar9485_pmu_write(sc, AR_PHY_PMU2,
- AR_READ(sc, AR_PHY_PMU2) | AR_PHY_PMU2_PGM);
+ ar9486_pmu_read(sc, AR_PHY_PMU2) | AR_PHY_PMU2_PGM);
}
void