Deleted Added
full compact
oce_sysctl.c (231437) oce_sysctl.c (231879)
1/*-
2 * Copyright (C) 2012 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) 2012 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_sysctl.c 231879 2012-02-17 13:55:17Z luigi $ */
39
40
40/* $FreeBSD: head/sys/dev/oce/oce_sysctl.c 231437 2012-02-10 21:03:04Z luigi $ */
41
42
43#include "oce_if.h"
44
45static void copy_stats_to_sc_xe201(POCE_SOFTC sc);
46static void copy_stats_to_sc_be3(POCE_SOFTC sc);
47static void copy_stats_to_sc_be2(POCE_SOFTC sc);
48static int oce_sysctl_loopback(SYSCTL_HANDLER_ARGS);
49static int oce_be3_fwupgrade(POCE_SOFTC sc, const struct firmware *fw);
50static int oce_sys_fwupgrade(SYSCTL_HANDLER_ARGS);

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

103 0,"QOS Speed");
104 else
105 SYSCTL_ADD_UINT(ctx, child,
106 OID_AUTO, "speed",
107 CTLFLAG_RD,
108 &sc->speed,
109 0,"Link Speed");
110
41#include "oce_if.h"
42
43static void copy_stats_to_sc_xe201(POCE_SOFTC sc);
44static void copy_stats_to_sc_be3(POCE_SOFTC sc);
45static void copy_stats_to_sc_be2(POCE_SOFTC sc);
46static int oce_sysctl_loopback(SYSCTL_HANDLER_ARGS);
47static int oce_be3_fwupgrade(POCE_SOFTC sc, const struct firmware *fw);
48static int oce_sys_fwupgrade(SYSCTL_HANDLER_ARGS);

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

101 0,"QOS Speed");
102 else
103 SYSCTL_ADD_UINT(ctx, child,
104 OID_AUTO, "speed",
105 CTLFLAG_RD,
106 &sc->speed,
107 0,"Link Speed");
108
109 if (sc->function_mode & FNM_UMC_MODE)
110 SYSCTL_ADD_UINT(ctx, child,
111 OID_AUTO, "pvid",
112 CTLFLAG_RD,
113 &sc->pvid,
114 0,"PVID");
115
111 SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "loop_back",
112 CTLTYPE_INT | CTLFLAG_RW, (void *)sc, 0,
113 oce_sysctl_loopback, "I", "Loop Back Tests");
114
115 SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fw_upgrade",
116 CTLTYPE_STRING | CTLFLAG_RW, (void *)sc, 0,
117 oce_sys_fwupgrade, "A", "Firmware ufi file");
118

--- 1182 unchanged lines hidden ---
116 SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "loop_back",
117 CTLTYPE_INT | CTLFLAG_RW, (void *)sc, 0,
118 oce_sysctl_loopback, "I", "Loop Back Tests");
119
120 SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "fw_upgrade",
121 CTLTYPE_STRING | CTLFLAG_RW, (void *)sc, 0,
122 oce_sys_fwupgrade, "A", "Firmware ufi file");
123

--- 1182 unchanged lines hidden ---