Deleted Added
full compact
oce_mbox.c (267839) oce_mbox.c (269693)
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: head/sys/dev/oce/oce_mbox.c 267839 2014-06-24 20:11:22Z delphij $ */
39/* $FreeBSD: head/sys/dev/oce/oce_mbox.c 269693 2014-08-07 21:56:46Z imp $ */
40
41#include "oce_if.h"
42extern uint32_t sfp_vpd_dump_buffer[TRANSCEIVER_DATA_NUM_ELE];
43
44/**
45 * @brief Reset (firmware) common function
46 * @param sc software handle to the device
47 * @returns 0 on success, ETIMEDOUT on failure

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

1871 ctx->v2.eventable = is_eventable;
1872 ctx->v2.valid = 1;
1873 ctx->v2.count = OCE_LOG2(cq->cq_cfg.q_len / 256);
1874 ctx->v2.nodelay = cq->cq_cfg.nodelay;
1875 ctx->v2.coalesce_wm = ncoalesce;
1876 ctx->v2.armed = 0;
1877 ctx->v2.eq_id = cq->eq->eq_id;
1878 if (ctx->v2.count == 3) {
40
41#include "oce_if.h"
42extern uint32_t sfp_vpd_dump_buffer[TRANSCEIVER_DATA_NUM_ELE];
43
44/**
45 * @brief Reset (firmware) common function
46 * @param sc software handle to the device
47 * @returns 0 on success, ETIMEDOUT on failure

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

1871 ctx->v2.eventable = is_eventable;
1872 ctx->v2.valid = 1;
1873 ctx->v2.count = OCE_LOG2(cq->cq_cfg.q_len / 256);
1874 ctx->v2.nodelay = cq->cq_cfg.nodelay;
1875 ctx->v2.coalesce_wm = ncoalesce;
1876 ctx->v2.armed = 0;
1877 ctx->v2.eq_id = cq->eq->eq_id;
1878 if (ctx->v2.count == 3) {
1879 if (cq->cq_cfg.q_len > (4*1024)-1)
1879 if ((u_int)cq->cq_cfg.q_len > (4*1024)-1)
1880 ctx->v2.cqe_count = (4*1024)-1;
1881 else
1882 ctx->v2.cqe_count = cq->cq_cfg.q_len;
1883 }
1884 } else {
1885 ctx->v0.num_pages = LE_16(num_pages);
1886 ctx->v0.eventable = is_eventable;
1887 ctx->v0.valid = 1;

--- 336 unchanged lines hidden ---
1880 ctx->v2.cqe_count = (4*1024)-1;
1881 else
1882 ctx->v2.cqe_count = cq->cq_cfg.q_len;
1883 }
1884 } else {
1885 ctx->v0.num_pages = LE_16(num_pages);
1886 ctx->v0.eventable = is_eventable;
1887 ctx->v0.valid = 1;

--- 336 unchanged lines hidden ---