static void util_get_config(uint8_t slot_id) { int ret; int i; bic_config_t config = {0}; bic_config_u *t = (bic_config_u *) &config; ret = bic_get_config(slot_id, &config); if (ret) { printf("util_get_config: bic_get_config failed\n"); return; } printf("SoL Enabled?: %s", t->bits.sol? "Enabled" : "Disabled"); printf("POST Enabled?: %s", t->bits.post? "Enabled" : "Disabled"); printf("KCS Enabled?: %s", t->bits.kcs? "Enabled" : "Disabled"); printf("IPMB Enabled?: %s", t->bits.ipmb? "Enabled" : "Disabled"); }
// Disable POST buffer for the server in given slot int pal_post_disable(uint8_t slot) { int ret; int i; bic_config_t config = {0}; bic_config_u *t = (bic_config_u *) &config; ret = bic_get_config(slot, &config); if (ret) { return ret; } t->bits.post = 0; ret = bic_set_config(slot, &config); if (ret) { return ret; } return 0; }
// Enable POST buffer for the server in given slot int pal_post_enable(uint8_t slot) { int ret; int i; bic_config_t config = {0}; bic_config_u *t = (bic_config_u *) &config; ret = bic_get_config(slot, &config); if (ret) { syslog(LOG_ALERT, "post_enable: bic_get_config failed\n"); return ret; } t->bits.post = 1; ret = bic_set_config(slot, &config); if (ret) { syslog(LOG_ALERT, "post_enable: bic_set_config failed\n"); return ret; } return 0; }