linux/drivers/platform/chrome/cros_ec_proto_test.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Kunit tests for ChromeOS Embedded Controller protocol.
 */

#include <kunit/test.h>

#include <asm/unaligned.h>

#include <linux/platform_data/cros_ec_commands.h>
#include <linux/platform_data/cros_ec_proto.h>

#include "cros_ec.h"
#include "cros_ec_proto_test_util.h"

#define BUFSIZE

struct cros_ec_proto_test_priv {};

static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test)
{}

static void cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize(struct kunit *test)
{}

static void cros_ec_proto_test_prepare_tx_normal(struct kunit *test)
{}

static void cros_ec_proto_test_prepare_tx_bad_msg_outsize(struct kunit *test)
{}

static void cros_ec_proto_test_check_result(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_pretest(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_normal(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_pd_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_pd_return0(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_legacy_normal_v3_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_legacy_normal_v3_return0(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_legacy_xfer_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_legacy_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_legacy_data_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_legacy_return0(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_mkbp(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_mkbp_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_mkbp_return0(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_host_sleep(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_no_host_sleep_return0(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_default_wake_mask_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_query_all_default_wake_mask_return0(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_normal(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_excess_msg_insize(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_excess_msg_outsize_without_passthru(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_excess_msg_outsize_with_passthru(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_protocol_v3_normal(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_protocol_v3_no_op(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_protocol_v2_normal(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_protocol_v2_no_op(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_in_progress_normal(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_in_progress_retries_eagain(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_in_progress_retries_status_processing(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_in_progress_xfer_error(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_in_progress_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_in_progress_return0(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_status_normal(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_status_xfer_error(struct kunit *test)
{}

static void cros_ec_proto_test_cmd_xfer_status_return_error(struct kunit *test)
{}

static void cros_ec_proto_test_get_next_event_no_mkbp_event(struct kunit *test)
{}

static void cros_ec_proto_test_get_next_event_mkbp_event_ec_suspended(struct kunit *test)
{}

static void cros_ec_proto_test_get_next_event_mkbp_event_version0(struct kunit *test)
{}

static void cros_ec_proto_test_get_next_event_mkbp_event_version2(struct kunit *test)
{}

static void cros_ec_proto_test_get_next_event_mkbp_event_host_event_rtc(struct kunit *test)
{}

static void cros_ec_proto_test_get_next_event_mkbp_event_host_event_masked(struct kunit *test)
{}

static void cros_ec_proto_test_get_host_event_no_mkbp_event(struct kunit *test)
{}

static void cros_ec_proto_test_get_host_event_not_host_event(struct kunit *test)
{}

static void cros_ec_proto_test_get_host_event_wrong_event_size(struct kunit *test)
{}

static void cros_ec_proto_test_get_host_event_normal(struct kunit *test)
{}

static void cros_ec_proto_test_check_features_cached(struct kunit *test)
{}

static void cros_ec_proto_test_check_features_not_cached(struct kunit *test)
{}

static void cros_ec_proto_test_get_sensor_count_normal(struct kunit *test)
{}

static void cros_ec_proto_test_get_sensor_count_xfer_error(struct kunit *test)
{}

static void cros_ec_proto_test_get_sensor_count_legacy(struct kunit *test)
{}

static void cros_ec_proto_test_ec_cmd(struct kunit *test)
{}

static void cros_ec_proto_test_release(struct device *dev)
{}

static int cros_ec_proto_test_init(struct kunit *test)
{}

static void cros_ec_proto_test_exit(struct kunit *test)
{}

static struct kunit_case cros_ec_proto_test_cases[] =;

static struct kunit_suite cros_ec_proto_test_suite =;

kunit_test_suite();

MODULE_DESCRIPTION();
MODULE_LICENSE();