bwiphy.c (191762) | bwiphy.c (192042) |
---|---|
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 191762 2009-05-03 04:01:43Z imp $"); | 38__FBSDID("$FreeBSD: head/sys/dev/bwi/bwiphy.c 192042 2009-05-13 14:25:55Z nwhitehorn $"); |
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> --- 612 unchanged lines hidden (view full) --- 659 PHY_WRITE(mac, ofs, val); 660 val -= 0x202; 661 } 662 663 val = 0x2120; 664 for (ofs = 0xa8; ofs < 0xc8; ++ofs) { 665 PHY_WRITE(mac, ofs, (val & 0x3f3f)); 666 val += 0x202; | 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> --- 612 unchanged lines hidden (view full) --- 659 PHY_WRITE(mac, ofs, val); 660 val -= 0x202; 661 } 662 663 val = 0x2120; 664 for (ofs = 0xa8; ofs < 0xc8; ++ofs) { 665 PHY_WRITE(mac, ofs, (val & 0x3f3f)); 666 val += 0x202; |
667 DELAY(10); |
|
667 } 668 669 if (phy->phy_mode == IEEE80211_MODE_11G) { 670 RF_SETBITS(mac, 0x7a, 0x20); 671 RF_SETBITS(mac, 0x51, 0x4); 672 PHY_SETBITS(mac, 0x802, 0x100); 673 PHY_SETBITS(mac, 0x42b, 0x2000); 674 PHY_WRITE(mac, 0x5b, 0); --- 346 unchanged lines hidden --- | 668 } 669 670 if (phy->phy_mode == IEEE80211_MODE_11G) { 671 RF_SETBITS(mac, 0x7a, 0x20); 672 RF_SETBITS(mac, 0x51, 0x4); 673 PHY_SETBITS(mac, 0x802, 0x100); 674 PHY_SETBITS(mac, 0x42b, 0x2000); 675 PHY_WRITE(mac, 0x5b, 0); --- 346 unchanged lines hidden --- |