GPI_MAX_CMD
static const char *const gpi_cmd_str[GPI_MAX_CMD] = {
#define TO_GPI_CMD_STR(_cmd) (((_cmd) >= GPI_MAX_CMD) ? "INVALID" : \
} gpi_cmd_info[GPI_MAX_CMD] = {
if (gpi_cmd >= GPI_MAX_CMD)