Deleted Added
full compact
t4_main.c (253890) t4_main.c (254577)
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 253890 2013-08-02 18:05:42Z np $");
29__FBSDID("$FreeBSD: head/sys/dev/cxgbe/t4_main.c 254577 2013-08-20 18:22:04Z 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>

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

2544#undef FW_PARAM_DEV
2545
2546static void
2547t4_set_desc(struct adapter *sc)
2548{
2549 char buf[128];
2550 struct adapter_params *p = &sc->params;
2551
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>

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

2544#undef FW_PARAM_DEV
2545
2546static void
2547t4_set_desc(struct adapter *sc)
2548{
2549 char buf[128];
2550 struct adapter_params *p = &sc->params;
2551
2552 snprintf(buf, sizeof(buf), "Chelsio %s %sNIC (rev %d), S/N:%s, E/C:%s",
2553 p->vpd.id, is_offload(sc) ? "R" : "", chip_rev(sc), p->vpd.sn,
2554 p->vpd.ec);
2552 snprintf(buf, sizeof(buf), "Chelsio %s %sNIC (rev %d), S/N:%s, "
2553 "P/N:%s, E/C:%s", p->vpd.id, is_offload(sc) ? "R" : "",
2554 chip_rev(sc), p->vpd.sn, p->vpd.pn, p->vpd.ec);
2555
2556 device_set_desc_copy(sc->dev, buf);
2557}
2558
2559static void
2560build_medialist(struct port_info *pi)
2561{
2562 struct ifmedia *media = &pi->media;

--- 5236 unchanged lines hidden ---
2555
2556 device_set_desc_copy(sc->dev, buf);
2557}
2558
2559static void
2560build_medialist(struct port_info *pi)
2561{
2562 struct ifmedia *media = &pi->media;

--- 5236 unchanged lines hidden ---