Deleted Added
full compact
t4_main.c (254933) t4_main.c (255005)
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
3 * All rights reserved.
4 * Written by: Navdeep Parhar <np@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
3 * All rights reserved.
4 * Written by: Navdeep Parhar <np@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/cxgbe/t4_main.c 254933 2013-08-26 19:02:52Z np $");
29__FBSDID("$FreeBSD: head/sys/dev/cxgbe/t4_main.c 255005 2013-08-28 20:45:45Z np $");
30
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/param.h>
35#include <sys/conf.h>
36#include <sys/priv.h>
37#include <sys/kernel.h>

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

595 sc->cpl_handler[i] = cpl_not_handled;
596 for (i = 0; i < nitems(sc->fw_msg_handler); i++)
597 sc->fw_msg_handler[i] = fw_msg_not_handled;
598 t4_register_cpl_handler(sc, CPL_SET_TCB_RPL, t4_filter_rpl);
599 t4_register_cpl_handler(sc, CPL_TRACE_PKT, t4_trace_pkt);
600 t4_register_cpl_handler(sc, CPL_TRACE_PKT_T5, t5_trace_pkt);
601 t4_init_sge_cpl_handlers(sc);
602
30
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/param.h>
35#include <sys/conf.h>
36#include <sys/priv.h>
37#include <sys/kernel.h>

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

595 sc->cpl_handler[i] = cpl_not_handled;
596 for (i = 0; i < nitems(sc->fw_msg_handler); i++)
597 sc->fw_msg_handler[i] = fw_msg_not_handled;
598 t4_register_cpl_handler(sc, CPL_SET_TCB_RPL, t4_filter_rpl);
599 t4_register_cpl_handler(sc, CPL_TRACE_PKT, t4_trace_pkt);
600 t4_register_cpl_handler(sc, CPL_TRACE_PKT_T5, t5_trace_pkt);
601 t4_init_sge_cpl_handlers(sc);
602
603
604 /* Prepare the adapter for operation */
605 rc = -t4_prep_adapter(sc);
606 if (rc != 0) {
607 device_printf(dev, "failed to prepare adapter: %d.\n", rc);
608 goto done;
609 }
610
611 /*

--- 7187 unchanged lines hidden ---
603 /* Prepare the adapter for operation */
604 rc = -t4_prep_adapter(sc);
605 if (rc != 0) {
606 device_printf(dev, "failed to prepare adapter: %d.\n", rc);
607 goto done;
608 }
609
610 /*

--- 7187 unchanged lines hidden ---