mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-20 10:43:08 +00:00
714420a694
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>
22 lines
431 B
C
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
|