Lines Matching +full:0 +full:xca2

31 #define IPMI_KCS_BASE   0xca2
33 #define IPMI_KCS_STATUS_ABORT 0x60
34 #define IPMI_KCS_CMD_WRITE_START 0x61
35 #define IPMI_KCS_CMD_WRITE_END 0x62
36 #define IPMI_KCS_CMD_READ 0x68
38 #define IPMI_KCS_ABORTED_BY_CMD 0x01
41 #define IPMI_KCS_STATE_IDLE 0
48 #define IPMI_KCS_CMDREG_GET_OBF() ((kcs_get_cmdreg() >> 0) & 1)
75 while (IPMI_KCS_CMDREG_GET_IBF() != 0) { in kcs_wait_ibf()
77 g_assert(count != 0); in kcs_wait_ibf()
84 while (IPMI_KCS_CMDREG_GET_OBF() == 0) { in kcs_wait_obf()
86 g_assert(count != 0); in kcs_wait_obf()
99 g_assert(IPMI_KCS_CMDREG_GET_OBF() == 0); in kcs_clear_obf()
111 unsigned int i, j = 0; in kcs_cmd()
114 g_assert(kcs_get_cmdreg() == 0); in kcs_cmd()
120 for (i = 0; i < cmd_len; i++) { in kcs_cmd()
130 kcs_write_datareg(0); in kcs_cmd()
156 unsigned int i, j = 0; in kcs_abort()
160 g_assert(kcs_get_cmdreg() == 0); in kcs_abort()
166 for (i = 0; i < cmd_len; i++) { in kcs_abort()
176 kcs_write_datareg(0); in kcs_abort()
192 g_assert(retries > 0); in kcs_abort()
198 kcs_write_datareg(0); in kcs_abort()
205 rsp[0] = kcs_get_datareg(); in kcs_abort()
219 static uint8_t get_dev_id_cmd[] = { 0x18, 0x01 };
220 static uint8_t get_dev_id_rsp[] = { 0x1c, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00,
221 0x02, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 };
233 g_assert(memcmp(get_dev_id_rsp, rsp, rsplen) == 0); in test_kcs_base()
245 g_assert(rsp[0] == IPMI_KCS_ABORTED_BY_CMD); in test_kcs_abort()
248 static uint8_t set_bmc_globals_cmd[] = { 0x18, 0x2e, 0x0f };
249 static uint8_t set_bmc_globals_rsp[] = { 0x1c, 0x2e, 0x00 };
261 g_assert(memcmp(set_bmc_globals_rsp, rsp, rsplen) == 0); in test_enable_irq()