Deleted Added
full compact
nicvf_main.c (299447) nicvf_main.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/nicvf_main.c 299447 2016-05-11 13:42:20Z zbb $
26 * $FreeBSD: head/sys/dev/vnic/nicvf_main.c 300294 2016-05-20 11:00:06Z wma $
27 *
28 */
29#include <sys/cdefs.h>
27 *
28 */
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/vnic/nicvf_main.c 299447 2016-05-11 13:42:20Z zbb $");
30__FBSDID("$FreeBSD: head/sys/dev/vnic/nicvf_main.c 300294 2016-05-20 11:00:06Z wma $");
31
32#include "opt_inet.h"
33#include "opt_inet6.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/bitset.h>
38#include <sys/bitstring.h>

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

124static driver_t nicvf_driver = {
125 "vnic",
126 nicvf_methods,
127 sizeof(struct nicvf),
128};
129
130static devclass_t nicvf_devclass;
131
31
32#include "opt_inet.h"
33#include "opt_inet6.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/bitset.h>
38#include <sys/bitstring.h>

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

124static driver_t nicvf_driver = {
125 "vnic",
126 nicvf_methods,
127 sizeof(struct nicvf),
128};
129
130static devclass_t nicvf_devclass;
131
132DRIVER_MODULE(nicvf, pci, nicvf_driver, nicvf_devclass, 0, 0);
133MODULE_DEPEND(nicvf, pci, 1, 1, 1);
134MODULE_DEPEND(nicvf, ether, 1, 1, 1);
135MODULE_DEPEND(nicvf, vnic_pf, 1, 1, 1);
132DRIVER_MODULE(vnicvf, pci, nicvf_driver, nicvf_devclass, 0, 0);
133MODULE_VERSION(vnicvf, 1);
134MODULE_DEPEND(vnicvf, pci, 1, 1, 1);
135MODULE_DEPEND(vnicvf, ether, 1, 1, 1);
136MODULE_DEPEND(vnicvf, vnicpf, 1, 1, 1);
136
137static int nicvf_allocate_misc_interrupt(struct nicvf *);
138static int nicvf_enable_misc_interrupt(struct nicvf *);
139static int nicvf_allocate_net_interrupts(struct nicvf *);
140static void nicvf_release_all_interrupts(struct nicvf *);
141static int nicvf_update_hw_max_frs(struct nicvf *, int);
142static int nicvf_hw_set_mac_addr(struct nicvf *, uint8_t *);
143static void nicvf_config_cpi(struct nicvf *);

--- 1483 unchanged lines hidden ---
137
138static int nicvf_allocate_misc_interrupt(struct nicvf *);
139static int nicvf_enable_misc_interrupt(struct nicvf *);
140static int nicvf_allocate_net_interrupts(struct nicvf *);
141static void nicvf_release_all_interrupts(struct nicvf *);
142static int nicvf_update_hw_max_frs(struct nicvf *, int);
143static int nicvf_hw_set_mac_addr(struct nicvf *, uint8_t *);
144static void nicvf_config_cpi(struct nicvf *);

--- 1483 unchanged lines hidden ---