base.c (ce169aca0d823d38465127023e3d571816e6666c) base.c (c47faa364cfb249d5d7670fb7293a6f9acd8aa9e)
1/*-
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
4 * Copyright (c) 2006 Devicescape Software, Inc.
5 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com>
6 * Copyright (c) 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
7 *
8 * All rights reserved.

--- 169 unchanged lines hidden (view full) ---

178 .hw_value = ATH5K_RATE_CODE_36M,
179 .flags = 0 },
180 { .bitrate = 480,
181 .hw_value = ATH5K_RATE_CODE_48M,
182 .flags = 0 },
183 { .bitrate = 540,
184 .hw_value = ATH5K_RATE_CODE_54M,
185 .flags = 0 },
1/*-
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
4 * Copyright (c) 2006 Devicescape Software, Inc.
5 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com>
6 * Copyright (c) 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
7 *
8 * All rights reserved.

--- 169 unchanged lines hidden (view full) ---

178 .hw_value = ATH5K_RATE_CODE_36M,
179 .flags = 0 },
180 { .bitrate = 480,
181 .hw_value = ATH5K_RATE_CODE_48M,
182 .flags = 0 },
183 { .bitrate = 540,
184 .hw_value = ATH5K_RATE_CODE_54M,
185 .flags = 0 },
186 /* XR missing */
187};
188
189static inline u64 ath5k_extend_tsf(struct ath5k_hw *ah, u32 rstamp)
190{
191 u64 tsf = ath5k_hw_get_tsf64(ah);
192
193 if ((tsf & 0x7fff) < rstamp)
194 tsf -= 0x8000;

--- 1805 unchanged lines hidden (view full) ---

2000 */
2001 nexttbtt = bc_tu + roundup(hw_tu + FUDGE - bc_tu, intval);
2002 }
2003#undef FUDGE
2004
2005 ah->nexttbtt = nexttbtt;
2006
2007 intval |= AR5K_BEACON_ENA;
186};
187
188static inline u64 ath5k_extend_tsf(struct ath5k_hw *ah, u32 rstamp)
189{
190 u64 tsf = ath5k_hw_get_tsf64(ah);
191
192 if ((tsf & 0x7fff) < rstamp)
193 tsf -= 0x8000;

--- 1805 unchanged lines hidden (view full) ---

1999 */
2000 nexttbtt = bc_tu + roundup(hw_tu + FUDGE - bc_tu, intval);
2001 }
2002#undef FUDGE
2003
2004 ah->nexttbtt = nexttbtt;
2005
2006 intval |= AR5K_BEACON_ENA;
2008 ath5k_hw_init_beacon(ah, nexttbtt, intval);
2007 ath5k_hw_init_beacon_timers(ah, nexttbtt, intval);
2009
2010 /*
2011 * debugging output last in order to preserve the time critical aspect
2012 * of this function
2013 */
2014 if (bc_tsf == -1)
2015 ATH5K_DBG_UNLIMIT(ah, ATH5K_DEBUG_BEACON,
2016 "reconfigured timers based on HW TSF\n");

--- 1034 unchanged lines hidden ---
2008
2009 /*
2010 * debugging output last in order to preserve the time critical aspect
2011 * of this function
2012 */
2013 if (bc_tsf == -1)
2014 ATH5K_DBG_UNLIMIT(ah, ATH5K_DEBUG_BEACON,
2015 "reconfigured timers based on HW TSF\n");

--- 1034 unchanged lines hidden ---