int cxgb4_thermal_init(struct adapter *adap)
{ struct ch_thermal *ch_thermal = &adap->ch_thermal; char ch_tz_name[THERMAL_NAME_LENGTH]; int num_trip = CXGB4_NUM_TRIPS;
u32 param, val; int ret;
/* on older firmwares we may not get the trip temperature, * set the num of trips to 0.
*/
param = (FW_PARAMS_MNEM_V(FW_PARAMS_MNEM_DEV) |
FW_PARAMS_PARAM_X_V(FW_PARAMS_PARAM_DEV_DIAG) |
FW_PARAMS_PARAM_Y_V(FW_PARAM_DEV_DIAG_MAXTMPTHRESH));
ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1,
¶m, &val); if (ret < 0) {
num_trip = 0; /* could not get trip temperature */
} else {
trip.temperature = val * 1000;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.