summaryrefslogtreecommitdiffstats
path: root/mof/60_LMI_Fan.mof
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-04-18 16:03:19 +0200
committerMichal Minar <miminar@redhat.com>2013-04-22 18:59:04 +0200
commitcb3913a5177f998acb503691fb1908f82c7f890b (patch)
tree819f60359938871c0e728432623ea4151f607d8f /mof/60_LMI_Fan.mof
parent6c3ca07f99bb8eeb0ef8aae5d72682d2f860c2a1 (diff)
downloadopenlmi-providers-cb3913a5177f998acb503691fb1908f82c7f890b.tar.gz
openlmi-providers-cb3913a5177f998acb503691fb1908f82c7f890b.tar.xz
openlmi-providers-cb3913a5177f998acb503691fb1908f82c7f890b.zip
renamed mof files according to LMI convention
Mof files prefixed with digits ensuring their correct order of parsing upon their installation. This avoids problems with sfcbmof compiler, which can not handle dependent classes being parsed before their antecedents. Convention is specified in mof/README. Removed inclusion of LMI_Qualifiers in LMI_Jobs. LMI_Qualifiers should be registered in cimom instead of included in dependent mof files. This allows it to be used by any other providers simultaneously. Modified references to mof files in cmake build files.
Diffstat (limited to 'mof/60_LMI_Fan.mof')
-rw-r--r--mof/60_LMI_Fan.mof109
1 files changed, 109 insertions, 0 deletions
diff --git a/mof/60_LMI_Fan.mof b/mof/60_LMI_Fan.mof
new file mode 100644
index 0000000..3c964cf
--- /dev/null
+++ b/mof/60_LMI_Fan.mof
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Authors: Michal Minar <miminar@redhat.com>
+ */
+
+[ Provider("cmpi:cmpiLMI_Fan") ]
+class LMI_Fan: CIM_Fan
+{
+ [ Key, Override("DeviceID"),
+ Description("Uniquely identifies fan. It is a composition of "
+ "SysPath and Name glued with slash ('/').") ]
+ string DeviceID;
+
+ [ Override("Name"),
+ Description("Name of fan provided by system.") ]
+ string Name;
+
+ [ Description("Array of fan features, that are exposed through system "
+ " interface. In other words: those that are readible/writable."),
+ ValueMap { "1", "2", "3", "4", "5", "6", "7", "8" },
+ Values { "MinSpeed", "MaxSpeed", "Divisor", "Pulses", "Beep",
+ "Alarm", "MinAlarm", "MaxAlarm" }
+ ]
+ uint16 AccessibleFeatures[];
+
+ [ Description("Minimum speed value."), Write,
+ Units("Revolutions per Minute") ]
+ uint64 MinSpeed;
+
+ [ Description("Maximum speed value."), Write,
+ Units("Revolutions per Minute") ]
+ uint64 MaxSpeed;
+
+ [ Description("Fan divisisor. It affects Minimum and Maximum speed value "
+ "and accuracy of readings. "
+ "The drivers account for the 'fan divisor' in their calculation "
+ "of RPM. So changing the fan divisor will NOT change the "
+ "nominal RPM reading, it will only affect the minimum and maximum "
+ "readings and the accuracy of the readings. "
+ "The actual formula is RPM = (60 * 22500) / (count * divisor)"),
+ Write ]
+ uint32 Divisor;
+
+ [ Description("Number of tachometer pulses per fan revolution. "
+ "Integer value, typically between 1 and 4. "
+ "This value is a characteristic of the fan connected to the "
+ "device's input, so it has to be set in accordance with the fan "
+ "model."),
+ Write ]
+ uint32 Pulses;
+
+ [ Description("This indicates, whether a PC's speaker should beep "
+ "when an alarm occurs."),
+ Write ]
+ boolean Beep;
+
+ [ Description("ALARM warning indicating, that current speed is out of "
+ "range. This information is supplied by fan's chip driver.") ]
+ boolean Alarm;
+
+ [ Description("ALARM warning indicating, that current speed is below "
+ "the critical level. This information is supplied by fan's chip "
+ "driver.") ]
+ boolean MinAlarm;
+
+ [ Description("ALARM warning indicating, that current speed is above "
+ "the critical level. This information is supplied by fan's chip "
+ "driver.") ]
+ boolean MaxAlarm;
+};
+
+[ Provider("cmpi:cmpiLMI_Fan") ]
+class LMI_FanSensor: CIM_NumericSensor
+{
+ [ Key, Override("DeviceID"),
+ Description("Uniquely identifies fan. It is a composition of "
+ "SysPath and Name glued with slash ('/').") ]
+ string DeviceID;
+
+ [ Override("Name"),
+ Description("Name of fan provided by system.") ]
+ string Name;
+};
+
+[ Association,
+ Provider("cmpi:cmpiLMI_Fan") ]
+class LMI_FanAssociatedSensor: CIM_AssociatedSensor
+{
+ [ Override("Antecedent") ]
+ LMI_FanSensor REF Antecedent;
+
+ [ Override("Dependent") ]
+ LMI_Fan REF Dependent;
+};