Deleted Added
full compact
thunder_bgx.c (297707) thunder_bgx.c (300294)
1/*
2 * Copyright (C) 2015 Cavium Inc.
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (C) 2015 Cavium Inc.
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/vnic/thunder_bgx.c 297707 2016-04-08 11:20:56Z wma $
26 * $FreeBSD: head/sys/dev/vnic/thunder_bgx.c 300294 2016-05-20 11:00:06Z wma $
27 *
28 */
29#include "opt_platform.h"
30
31#include <sys/cdefs.h>
27 *
28 */
29#include "opt_platform.h"
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/vnic/thunder_bgx.c 297707 2016-04-08 11:20:56Z wma $");
32__FBSDID("$FreeBSD: head/sys/dev/vnic/thunder_bgx.c 300294 2016-05-20 11:00:06Z wma $");
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bitset.h>
37#include <sys/bitstring.h>
38#include <sys/bus.h>
39#include <sys/endian.h>
40#include <sys/kernel.h>

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

104 "bgx",
105 thunder_bgx_methods,
106 sizeof(struct lmac),
107};
108
109static devclass_t thunder_bgx_devclass;
110
111DRIVER_MODULE(thunder_bgx, pci, thunder_bgx_driver, thunder_bgx_devclass, 0, 0);
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bitset.h>
37#include <sys/bitstring.h>
38#include <sys/bus.h>
39#include <sys/endian.h>
40#include <sys/kernel.h>

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

104 "bgx",
105 thunder_bgx_methods,
106 sizeof(struct lmac),
107};
108
109static devclass_t thunder_bgx_devclass;
110
111DRIVER_MODULE(thunder_bgx, pci, thunder_bgx_driver, thunder_bgx_devclass, 0, 0);
112MODULE_VERSION(thunder_bgx, 1);
112MODULE_DEPEND(thunder_bgx, pci, 1, 1, 1);
113MODULE_DEPEND(thunder_bgx, ether, 1, 1, 1);
113MODULE_DEPEND(thunder_bgx, pci, 1, 1, 1);
114MODULE_DEPEND(thunder_bgx, ether, 1, 1, 1);
114MODULE_DEPEND(thunder_bgx, octeon_mdio, 1, 1, 1);
115MODULE_DEPEND(thunder_bgx, thunder_mdio, 1, 1, 1);
115
116static int
117thunder_bgx_probe(device_t dev)
118{
119 uint16_t vendor_id;
120 uint16_t device_id;
121
122 vendor_id = pci_get_vendor(dev);

--- 1013 unchanged lines hidden ---
116
117static int
118thunder_bgx_probe(device_t dev)
119{
120 uint16_t vendor_id;
121 uint16_t device_id;
122
123 vendor_id = pci_get_vendor(dev);

--- 1013 unchanged lines hidden ---