linux/drivers/fpga/tests/fpga-bridge-test.c

// SPDX-License-Identifier: GPL-2.0
/*
 * KUnit test for the FPGA Bridge
 *
 * Copyright (C) 2023 Red Hat, Inc.
 *
 * Author: Marco Pagani <[email protected]>
 */

#include <kunit/device.h>
#include <kunit/test.h>
#include <linux/fpga/fpga-bridge.h>
#include <linux/module.h>
#include <linux/types.h>

struct bridge_stats {};

struct bridge_ctx {};

static int op_enable_set(struct fpga_bridge *bridge, bool enable)
{}

/*
 * Fake FPGA bridge that implements only the enable_set op to track
 * the state.
 */
static const struct fpga_bridge_ops fake_bridge_ops =;

/**
 * register_test_bridge() - Register a fake FPGA bridge for testing.
 * @test: KUnit test context object.
 * @dev_name: name of the kunit device to be registered
 *
 * Return: Context of the newly registered FPGA bridge.
 */
static struct bridge_ctx *register_test_bridge(struct kunit *test, const char *dev_name)
{}

static void unregister_test_bridge(struct kunit *test, struct bridge_ctx *ctx)
{}

static void fpga_bridge_test_get(struct kunit *test)
{}

static void fpga_bridge_test_toggle(struct kunit *test)
{}

/* Test the functions for getting and controlling a list of bridges */
static void fpga_bridge_test_get_put_list(struct kunit *test)
{}

static int fpga_bridge_test_init(struct kunit *test)
{}

static void fpga_bridge_test_exit(struct kunit *test)
{}

static struct kunit_case fpga_bridge_test_cases[] =;

static struct kunit_suite fpga_bridge_suite =;

kunit_test_suite();

MODULE_LICENSE();