30 lines
763 B
C
30 lines
763 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __MESON_DUMMY_H
|
|
#define __MESON_DUMMY_H
|
|
|
|
#include "meson_drv.h"
|
|
#include <drm/drm_encoder.h>
|
|
#include <drm/amlogic/meson_connector_dev.h>
|
|
|
|
struct meson_dummy {
|
|
struct meson_connector base;
|
|
struct drm_encoder encoder;
|
|
struct drm_device *drm;
|
|
};
|
|
|
|
#define connector_to_meson_dummy(x) \
|
|
container_of(connector_to_meson_connector(x), struct meson_dummy, base)
|
|
#define encoder_to_meson_dummy(x) container_of(x, struct meson_dummy, encoder)
|
|
|
|
int meson_dummy_dev_bind(struct drm_device *drm,
|
|
int type, struct meson_connector_dev *intf);
|
|
int meson_dummy_dev_unbind(struct drm_device *drm,
|
|
int type, struct meson_connector_dev *intf);
|
|
|
|
#endif
|
|
|