m1n1/src/dcp.h
Hector Martin 714420a694 display: Put DCP to sleep if display is external
This stops DCP from killing our modeset if the connection cycles.

Also force a (potential) configure cycle if the display is external;
this makes sure updated stage2s will have a chance at fixing issues of
old stage1s. Modesetting is fast when it's the same mode as before.

Signed-off-by: Hector Martin <marcan@marcan.st>
2022-06-01 01:54:11 +09:00

22 lines
431 B
C

/* SPDX-License-Identifier: MIT */
#ifndef DCP_H
#define DCP_H
#include "asc.h"
#include "dart.h"
#include "rtkit.h"
typedef struct {
dart_dev_t *dart_dcp;
dart_dev_t *dart_disp;
iova_domain_t *iovad_dcp;
asc_dev_t *asc;
rtkit_dev_t *rtkit;
} dcp_dev_t;
dcp_dev_t *dcp_init(const char *dcp_path, const char *dcp_dart_path, const char *disp_dart_path);
int dcp_shutdown(dcp_dev_t *dcp, bool sleep);
#endif