Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
762 B
C
39 lines
762 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_CONN_H__
|
|
#define __NVIF_CONN_H__
|
|
#include <nvif/object.h>
|
|
#include <nvif/event.h>
|
|
struct nvif_disp;
|
|
|
|
struct nvif_conn {
|
|
struct nvif_object object;
|
|
u32 id;
|
|
|
|
struct {
|
|
enum {
|
|
NVIF_CONN_VGA,
|
|
NVIF_CONN_TV,
|
|
NVIF_CONN_DVI_I,
|
|
NVIF_CONN_DVI_D,
|
|
NVIF_CONN_LVDS,
|
|
NVIF_CONN_LVDS_SPWG,
|
|
NVIF_CONN_HDMI,
|
|
NVIF_CONN_DP,
|
|
NVIF_CONN_EDP,
|
|
} type;
|
|
} info;
|
|
};
|
|
|
|
int nvif_conn_ctor(struct nvif_disp *, const char *name, int id, struct nvif_conn *);
|
|
void nvif_conn_dtor(struct nvif_conn *);
|
|
|
|
static inline int
|
|
nvif_conn_id(struct nvif_conn *conn)
|
|
{
|
|
return conn->object.handle;
|
|
}
|
|
|
|
int nvif_conn_event_ctor(struct nvif_conn *, const char *name, nvif_event_func, u8 types,
|
|
struct nvif_event *);
|
|
#endif
|