Deleted Added
full compact
if_run.c (261118) if_run.c (261124)
1/*-
2 * Copyright (c) 2008,2010 Damien Bergamini <damien.bergamini@free.fr>
3 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca>
4 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org>
5 * Copyright (c) 2013-2014 Kevin Lo
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above

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

13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008,2010 Damien Bergamini <damien.bergamini@free.fr>
3 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca>
4 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org>
5 * Copyright (c) 2013-2014 Kevin Lo
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above

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

13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <sys/cdefs.h>
21__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 261118 2014-01-24 09:17:29Z kevlo $");
21__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 261124 2014-01-24 15:34:22Z kevlo $");
22
23/*-
24 * Ralink Technology RT2700U/RT2800U/RT3000U/RT3900E chipset driver.
25 * http://www.ralinktech.com/
26 */
27
28#include <sys/param.h>
29#include <sys/sockio.h>

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

1383 return (error);
1384
1385 tmp >>= (8 * (addr & 0x3));
1386 *val = (addr & 1) ? tmp >> 16 : tmp & 0xffff;
1387
1388 return (0);
1389}
1390
22
23/*-
24 * Ralink Technology RT2700U/RT2800U/RT3000U/RT3900E chipset driver.
25 * http://www.ralinktech.com/
26 */
27
28#include <sys/param.h>
29#include <sys/sockio.h>

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

1383 return (error);
1384
1385 tmp >>= (8 * (addr & 0x3));
1386 *val = (addr & 1) ? tmp >> 16 : tmp & 0xffff;
1387
1388 return (0);
1389}
1390
1391/* Read 16-bit from eFUSE ROM (RT3070 only.) */
1391/* Read 16-bit from eFUSE ROM for RT3xxx. */
1392static int
1393run_efuse_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val)
1394{
1395 return (run_efuse_read(sc, addr, val, 2));
1396}
1397
1398static int
1399run_eeprom_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val)

--- 4890 unchanged lines hidden ---
1392static int
1393run_efuse_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val)
1394{
1395 return (run_efuse_read(sc, addr, val, 2));
1396}
1397
1398static int
1399run_eeprom_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val)

--- 4890 unchanged lines hidden ---