Deleted Added
full compact
if_bwn.c (209888) if_bwn.c (210393)
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn.c 209888 2010-07-10 21:39:03Z weongyo $");
31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn.c 210393 2010-07-22 20:08:02Z weongyo $");
32
33/*
34 * The Broadcom Wireless LAN controller driver.
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/module.h>

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

12823 } else { \
12824 _v = ((_y << (30 - _x)) + (_z << (-1 - _t))) / (_z << -_t); \
12825 } \
12826} while (0)
12827#define CALC_COEFF2(_v, _x, _y, _z) do { \
12828 int _t; \
12829 _t = _x - 11; \
12830 if (_t >= 0) \
32
33/*
34 * The Broadcom Wireless LAN controller driver.
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/module.h>

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

12823 } else { \
12824 _v = ((_y << (30 - _x)) + (_z << (-1 - _t))) / (_z << -_t); \
12825 } \
12826} while (0)
12827#define CALC_COEFF2(_v, _x, _y, _z) do { \
12828 int _t; \
12829 _t = _x - 11; \
12830 if (_t >= 0) \
12831 tmp[3] = (_y << (31 - _x)) / (_z >> _t); \
12831 _v = (_y << (31 - _x)) / (_z >> _t); \
12832 else \
12832 else \
12833 tmp[3] = (_y << (31 - _x)) / (_z << -_t); \
12833 _v = (_y << (31 - _x)) / (_z << -_t); \
12834} while (0)
12835 struct bwn_phy_lp_iq_est ie;
12836 uint16_t v0, v1;
12837 int tmp[2], ret;
12838
12839 v1 = BWN_PHY_READ(mac, BWN_PHY_RX_COMP_COEFF_S);
12840 v0 = v1 >> 8;
12841 v1 |= 0xff;

--- 1409 unchanged lines hidden ---
12834} while (0)
12835 struct bwn_phy_lp_iq_est ie;
12836 uint16_t v0, v1;
12837 int tmp[2], ret;
12838
12839 v1 = BWN_PHY_READ(mac, BWN_PHY_RX_COMP_COEFF_S);
12840 v0 = v1 >> 8;
12841 v1 |= 0xff;

--- 1409 unchanged lines hidden ---