Deleted Added
full compact
oce_hw.c (257187) oce_hw.c (268046)
1/*-
2 * Copyright (C) 2013 Emulex
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 are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

31 * Contact Information:
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
1/*-
2 * Copyright (C) 2013 Emulex
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 are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

31 * Contact Information:
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
39/* $FreeBSD: stable/10/sys/dev/oce/oce_hw.c 257187 2013-10-26 19:02:39Z delphij $ */
39/* $FreeBSD: stable/10/sys/dev/oce/oce_hw.c 268046 2014-06-30 16:23:31Z delphij $ */
40
41
42#include "oce_if.h"
43
44static int oce_POST(POCE_SOFTC sc);
45
46/**
47 * @brief Function to post status

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

482 if (link.logical_link_status == NTWK_LOGICAL_LINK_UP) {
483 sc->link_status = NTWK_LOGICAL_LINK_UP;
484 if_link_state_change(sc->ifp, LINK_STATE_UP);
485 } else {
486 sc->link_status = NTWK_LOGICAL_LINK_DOWN;
487 if_link_state_change(sc->ifp, LINK_STATE_DOWN);
488 }
489
40
41
42#include "oce_if.h"
43
44static int oce_POST(POCE_SOFTC sc);
45
46/**
47 * @brief Function to post status

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

482 if (link.logical_link_status == NTWK_LOGICAL_LINK_UP) {
483 sc->link_status = NTWK_LOGICAL_LINK_UP;
484 if_link_state_change(sc->ifp, LINK_STATE_UP);
485 } else {
486 sc->link_status = NTWK_LOGICAL_LINK_DOWN;
487 if_link_state_change(sc->ifp, LINK_STATE_DOWN);
488 }
489
490 if (link.mac_speed > 0 && link.mac_speed < 5)
491 sc->link_speed = link.mac_speed;
492 else
493 sc->link_speed = 0;
494
490 sc->link_speed = link.phys_port_speed;
495 sc->qos_link_speed = (uint32_t )link.qos_link_speed * 10;
496
497 rc = oce_start_mq(sc->mq);
498
499 /* we need to get MCC aync events. So enable intrs and arm
500 first EQ, Other EQs will be armed after interface is UP
501 */
502 oce_hw_intr_enable(sc);

--- 93 unchanged lines hidden ---
491 sc->qos_link_speed = (uint32_t )link.qos_link_speed * 10;
492
493 rc = oce_start_mq(sc->mq);
494
495 /* we need to get MCC aync events. So enable intrs and arm
496 first EQ, Other EQs will be armed after interface is UP
497 */
498 oce_hw_intr_enable(sc);

--- 93 unchanged lines hidden ---