25 #ifndef LIBSWITCHTEC_ERRORS_H 26 #define LIBSWITCHTEC_ERRORS_H 30 #define SWITCHTEC_ERRNO_MRPC_FLAG_BIT (1 << 30) 31 #define ERRNO_MRPC(x) (x & (~SWITCHTEC_ERRNO_MRPC_FLAG_BIT)) 34 ERR_PHYC_PORT_ARDY_BIND = 0x00000001,
35 ERR_LOGC_PORT_ARDY_BIND = 0x00000002,
36 ERR_BIND_PRTT_NOT_EXIST = 0x00000003,
37 ERR_PHYC_PORT_NOT_EXIST = 0x00000004,
38 ERR_PHYC_PORT_DIS = 0x00000005,
39 ERR_NO_LOGC_PORT = 0x00000006,
40 ERR_BIND_IN_PROGRESS = 0x00000007,
41 ERR_BIND_TGT_IS_USP = 0x00000008,
42 ERR_BIND_SUBCMD_INVALID = 0x00000009,
43 ERR_PHYC_PORT_LINK_ACT = 0x0000000a,
44 ERR_LOGC_PORT_NOT_BIND_PHYC_PORT = 0x0000000b,
45 ERR_UNBIND_OPT_INVALID = 0x0000000c,
46 ERR_BIND_CHECK_FAIL = 0x0000000d,
47 ERR_MPRC_UNSUPPORTED = 0x0000004a,
49 ERR_NO_AVAIL_MRPC_THREAD = 0x64001,
50 ERR_HANDLER_THREAD_NOT_IDLE = 0x64002,
51 ERR_NO_BG_THREAD = 0x64003,
52 ERR_SUBCMD_INVALID = 0x64004,
53 ERR_CMD_INVALID = 0x64005,
54 ERR_PARAM_INVALID = 0x64006,
55 ERR_BAD_FW_STATE = 0x64007,
56 ERR_MRPC_DENIED = 0x64010,
58 ERR_STACK_INVALID = 0x100001,
59 ERR_PORT_INVALID = 0x100002,
60 ERR_EVENT_INVALID = 0x100003,
61 ERR_RST_RULE_FAILED = 0x100005,
62 ERR_UART_NOT_SUPPORTED = 0x100072f1,
63 ERR_ACCESS_REFUSED = 0xFFFF0001,
int mrpc_error_cmd
The MRPC command ID when errno is set.