/titanic_50/usr/src/lib/libprtdiag_psr/sparc/snowbird/common/ |
H A D | snowbird.c | 514 sc_rspmsg_t rsp_pkt; in pd_query_SMC_firmware_version() local 520 smc_send_msg(-1, &req_pkt, &rsp_pkt, POLL_TIMEOUT); in pd_query_SMC_firmware_version() 521 ver = (rsp_pkt.data[0] & 0xf0) >> 4; in pd_query_SMC_firmware_version() 522 rev = rsp_pkt.data[0] & 0x0f; in pd_query_SMC_firmware_version() 523 bldrev = rsp_pkt.data[2] & 0x3f; in pd_query_SMC_firmware_version() 540 sc_rspmsg_t rsp_pkt; in pd_check_cpu_health() local 549 smc_send_msg(-1, &req_pkt, &rsp_pkt, POLL_TIMEOUT); in pd_check_cpu_health() 551 dev_id = rsp_pkt.data[0] & dev_id; in pd_check_cpu_health() 554 if (rsp_pkt.data[0] & i2c_chk) { in pd_check_cpu_health() 558 if (rsp_pkt.data[0] & mem_test) { in pd_check_cpu_health() [all …]
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc/ |
H A D | libctsmc.c | 113 smc_send_local_cmd(int fd, sc_reqmsg_t *req_pkt, sc_rspmsg_t *rsp_pkt, in smc_send_local_cmd() argument 139 if (read(fd, rsp_pkt, SC_MSG_MAX_SIZE) == -1) { in smc_send_local_cmd() 145 if (SC_MSG_ID(rsp_pkt) != SC_MSG_ID(req_pkt)) { in smc_send_local_cmd() 146 dbg_print(SMC_ERRMSG_ERROR, SC_MSG_CC(rsp_pkt), in smc_send_local_cmd() 147 SC_MSG_ID(rsp_pkt)); in smc_send_local_cmd() 151 if (SC_MSG_CC(rsp_pkt) != 0) { in smc_send_local_cmd() 166 sc_rspmsg_t rsp_pkt; in get_geo_addr() local 179 if ((rc = smc_send_local_cmd(fd, &req_pkt, &rsp_pkt, in get_geo_addr() 185 *geo_addr = rsp_pkt.data[0]; in get_geo_addr() 210 smc_send_ipmi_message(int fd, sc_reqmsg_t *req_pkt, sc_rspmsg_t *rsp_pkt, in smc_send_ipmi_message() argument [all …]
|
H A D | smclib.h | 63 sc_rspmsg_t *rsp_pkt, int poll_time);
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/envmond/ |
H A D | piclsensors.c | 105 sc_rspmsg_t rsp_pkt; in env_get_temp_threshold() local 120 if ((rc = smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in env_get_temp_threshold() 129 if (LOW_WARNING_BIT(rsp_pkt.data[0])) { in env_get_temp_threshold() 130 *threshold_reading = rsp_pkt.data[1]; in env_get_temp_threshold() 136 if (LOW_SHUTDOWN_BIT(rsp_pkt.data[0])) { in env_get_temp_threshold() 137 *threshold_reading = rsp_pkt.data[2]; in env_get_temp_threshold() 143 if (LOW_POWEROFF_BIT(rsp_pkt.data[0])) { in env_get_temp_threshold() 144 *threshold_reading = rsp_pkt.data[3]; in env_get_temp_threshold() 150 if (HIGH_WARNING_BIT(rsp_pkt.data[0])) { in env_get_temp_threshold() 151 *threshold_reading = rsp_pkt.data[4]; in env_get_temp_threshold() [all …]
|
H A D | picldr.c | 211 sc_rspmsg_t rsp_pkt; in is_rtm_present() local 224 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in is_rtm_present() 243 sc_rspmsg_t rsp_pkt; in env_set_cpu_info() local 253 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in env_set_cpu_info() 257 cpu_geo_addr = rsp_pkt.data[0]; in env_set_cpu_info() 342 sc_rspmsg_t rsp_pkt; in env_set_smc_global_enables() local 350 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in env_set_smc_global_enables() 355 req_pkt.data[0] = rsp_pkt.data[0]; in env_set_smc_global_enables() 356 req_pkt.data[1] = rsp_pkt.data[1]; in env_set_smc_global_enables() 369 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in env_set_smc_global_enables()
|
H A D | piclplatmod.c | 166 sc_rspmsg_t rsp_pkt; in send_response2remote_device() local 173 rc = smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in send_response2remote_device() 257 sc_rspmsg_t rsp_pkt; in env_get_healthy_status() local 265 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in env_get_healthy_status() 269 return (rsp_pkt.data[0] & IS_HEALTHY); in env_get_healthy_status()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/watchdog/ |
H A D | piclwatchdog.c | 183 sc_rspmsg_t rsp_pkt; in wd_get_reg_dump() local 190 if ((rc = smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in wd_get_reg_dump() 199 buffer[i] = rsp_pkt.data[i]; in wd_get_reg_dump() 214 sc_rspmsg_t rsp_pkt; in wd_get_healthy_status() local 221 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in wd_get_healthy_status() 226 return ((rsp_pkt.data[0] & IS_HEALTHY) ? WD_HEALTHY_UP : in wd_get_healthy_status() 382 sc_rspmsg_t rsp_pkt; in wd_pat() local 400 if ((rc = smc_send_msg(wd_fd, &req_pkt, &rsp_pkt, in wd_pat() 408 time1[count].res_seq = SC_MSG_ID(&rsp_pkt); in wd_pat() 428 sc_rspmsg_t rsp_pkt; in wd_start() local [all …]
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/ |
H A D | piclsmc.c | 939 sc_rspmsg_t rsp_pkt; in is_fru_data_available() local 946 if (smc_send_msg(DEFAULT_FD, &req_pkt, &rsp_pkt, in is_fru_data_available() 950 if (SC_MSG_LEN(&rsp_pkt) == 0) { in is_fru_data_available() 953 cpu_no = rsp_pkt.data[0]; in is_fru_data_available()
|