Deleted Added
full compact
bwiphy.c (192307) bwiphy.c (226182)
1/*
2 * Copyright (c) 2007 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
5 * by Sepherosa Ziehau <sepherosa@gmail.com>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $DragonFly: src/sys/dev/netif/bwi/bwiphy.c,v 1.5 2008/01/15 09:01:13 sephe Exp $
35 */
36
37#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2007 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
5 * by Sepherosa Ziehau <sepherosa@gmail.com>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $DragonFly: src/sys/dev/netif/bwi/bwiphy.c,v 1.5 2008/01/15 09:01:13 sephe Exp $
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/dev/bwi/bwiphy.c 192307 2009-05-18 15:46:34Z imp $");
38__FBSDID("$FreeBSD: head/sys/dev/bwi/bwiphy.c 226182 2011-10-10 02:54:58Z adrian $");
39
40#include "opt_inet.h"
41
42#include <sys/param.h>
43#include <sys/endian.h>
44#include <sys/kernel.h>
45#include <sys/bus.h>
46#include <sys/malloc.h>

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

791 }
792 PHY_SETBITS(mac, 0x42b, 0x800);
793
794 /* Fill RSSI table */
795 for (i = 0; i < 64; ++i)
796 bwi_tbl_write_2(mac, BWI_PHYTBL_RSSI + i, i);
797
798 /* Fill noise table */
39
40#include "opt_inet.h"
41
42#include <sys/param.h>
43#include <sys/endian.h>
44#include <sys/kernel.h>
45#include <sys/bus.h>
46#include <sys/malloc.h>

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

791 }
792 PHY_SETBITS(mac, 0x42b, 0x800);
793
794 /* Fill RSSI table */
795 for (i = 0; i < 64; ++i)
796 bwi_tbl_write_2(mac, BWI_PHYTBL_RSSI + i, i);
797
798 /* Fill noise table */
799 for (i = 0; i < sizeof(bwi_phy_noise_11g); ++i) {
799 for (i = 0; i < N(bwi_phy_noise_11g); ++i) {
800 bwi_tbl_write_2(mac, BWI_PHYTBL_NOISE + i,
801 bwi_phy_noise_11g[i]);
802 }
803 }
804
805 /*
806 * Fill noise scale table
807 */

--- 214 unchanged lines hidden ---
800 bwi_tbl_write_2(mac, BWI_PHYTBL_NOISE + i,
801 bwi_phy_noise_11g[i]);
802 }
803 }
804
805 /*
806 * Fill noise scale table
807 */

--- 214 unchanged lines hidden ---