RackMac3_1_MasterControl.cpp [plain text]
#include "RackMac3_1_MasterControl.h"
#define super IOPlatformControl
OSDefineMetaClassAndStructors(RackMac3_1_MasterControl, IOPlatformControl)
IOReturn RackMac3_1_MasterControl::initPlatformControl( const OSDictionary * dict )
{
OSDictionary *tmp_osdict;
OSString *tmp_string;
OSNumber *tmp_number;
IOReturn status = super::initPlatformControl( dict );
tmp_osdict = OSDynamicCast(OSDictionary, dict->getObject(kRM31HwmondThresholds));
if (tmp_osdict)
infoDict->setObject(kRM31HwmondThresholds, tmp_osdict);
#if CONTROL_DEBUG
else
CONTROL_DLOG("RackMac3_1_MasterControl::initPlatformControl no hwmondThresholds dictionary for control id = 0x%x!!\n", getControlID()->unsigned16BitValue());
#endif
tmp_string = OSDynamicCast(OSString, dict->getObject(kRM31GroupTag));
if (tmp_string)
infoDict->setObject(kRM31GroupTag, tmp_string);
#if CONTROL_DEBUG
else
CONTROL_DLOG("RackMac3_1_MasterSensor::initPlatformControl no group tag for control id = 0x%x!!\n", getControlID()->unsigned16BitValue());
#endif
tmp_number = OSDynamicCast(OSNumber, dict->getObject(kRM31SortNumber));
if (tmp_number)
infoDict->setObject(kRM31SortNumber, tmp_number);
#if CONTROL_DEBUG
else
CONTROL_DLOG("RackMac3_1_MasterSensor::initPlatformControl no sort number for control id = 0x%x!!\n", getControlID()->unsigned16BitValue());
#endif
return(status);
}