Deleted Added
full compact
if_iwn.c (217511) if_iwn.c (219902)
1/*-
2 * Copyright (c) 2007-2009
3 * Damien Bergamini <damien.bergamini@free.fr>
4 * Copyright (c) 2008
5 * Benjamin Close <benjsc@FreeBSD.org>
6 * Copyright (c) 2008 Sam Leffler, Errno Consulting
7 *
8 * Permission to use, copy, modify, and distribute this software for any

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

19 */
20
21/*
22 * Driver for Intel WiFi Link 4965 and 1000/5000/6000 Series 802.11 network
23 * adapters.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2009
3 * Damien Bergamini <damien.bergamini@free.fr>
4 * Copyright (c) 2008
5 * Benjamin Close <benjsc@FreeBSD.org>
6 * Copyright (c) 2008 Sam Leffler, Errno Consulting
7 *
8 * Permission to use, copy, modify, and distribute this software for any

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

19 */
20
21/*
22 * Driver for Intel WiFi Link 4965 and 1000/5000/6000 Series 802.11 network
23 * adapters.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/dev/iwn/if_iwn.c 217511 2011-01-17 20:15:15Z bschmidt $");
27__FBSDID("$FreeBSD: head/sys/dev/iwn/if_iwn.c 219902 2011-03-23 13:10:15Z jhb $");
28
29#include <sys/param.h>
30#include <sys/sockio.h>
31#include <sys/sysctl.h>
32#include <sys/mbuf.h>
33#include <sys/kernel.h>
34#include <sys/socket.h>
35#include <sys/systm.h>

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

424 uint8_t macaddr[IEEE80211_ADDR_LEN];
425
426 sc->sc_dev = dev;
427
428 /*
429 * Get the offset of the PCI Express Capability Structure in PCI
430 * Configuration Space.
431 */
28
29#include <sys/param.h>
30#include <sys/sockio.h>
31#include <sys/sysctl.h>
32#include <sys/mbuf.h>
33#include <sys/kernel.h>
34#include <sys/socket.h>
35#include <sys/systm.h>

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

424 uint8_t macaddr[IEEE80211_ADDR_LEN];
425
426 sc->sc_dev = dev;
427
428 /*
429 * Get the offset of the PCI Express Capability Structure in PCI
430 * Configuration Space.
431 */
432 error = pci_find_extcap(dev, PCIY_EXPRESS, &sc->sc_cap_off);
432 error = pci_find_cap(dev, PCIY_EXPRESS, &sc->sc_cap_off);
433 if (error != 0) {
434 device_printf(dev, "PCIe capability structure not found!\n");
435 return error;
436 }
437
438 /* Clear device-specific "PCI retry timeout" register (41h). */
439 pci_write_config(dev, 0x41, 0, 1);
440

--- 6309 unchanged lines hidden ---
433 if (error != 0) {
434 device_printf(dev, "PCIe capability structure not found!\n");
435 return error;
436 }
437
438 /* Clear device-specific "PCI retry timeout" register (41h). */
439 pci_write_config(dev, 0x41, 0, 1);
440

--- 6309 unchanged lines hidden ---