#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <kunit/test.h>
#include "vc4_mock.h"
struct vc4_mock_output_desc { … };
#define VC4_MOCK_OUTPUT_DESC(_vc4_type, _etype, _ctype) …
struct vc4_mock_pipe_desc { … };
#define VC4_MOCK_CRTC_DESC(_data, ...) …
#define VC4_MOCK_PIXELVALVE_DESC(_data, ...) …
struct vc4_mock_desc { … };
#define VC4_MOCK_DESC(...) …
static const struct vc4_mock_desc vc4_mock = …;
static const struct vc4_mock_desc vc5_mock = …;
static int __build_one_pipe(struct kunit *test, struct drm_device *drm,
const struct vc4_mock_pipe_desc *pipe)
{ … }
static int __build_mock(struct kunit *test, struct drm_device *drm,
const struct vc4_mock_desc *mock)
{ … }
KUNIT_DEFINE_ACTION_WRAPPER(kunit_action_drm_dev_unregister,
drm_dev_unregister,
struct drm_device *);
static struct vc4_dev *__mock_device(struct kunit *test, bool is_vc5)
{ … }
struct vc4_dev *vc4_mock_device(struct kunit *test)
{ … }
struct vc4_dev *vc5_mock_device(struct kunit *test)
{ … }