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 $ */ |
40 |
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 |
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 --- |