summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-02 13:21:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-02 17:14:45 +0100
commitadd84cd8a8dc6d285912d0ea3a3a3e7faa9e0942 (patch)
treea50924e05503ce8dd297c286b4f2f79ad409ac97 /src/sna/sna.h
parent3123dec3dfc55fbca32d32eaaa8ac29396b28c49 (diff)
sna: Perform dynamic connector discovery
One of the side-effects of MST is that we need to support dynamic attachment and removal of displays as the branch hierachy changes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index cf9a4d57..cc086d75 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -242,6 +242,7 @@ struct sna {
#define SNA_IS_HOSTED 0x80
#define SNA_PERFORMANCE 0x100
#define SNA_POWERSAVE 0x200
+#define SNA_REDISCOVER 0x40000000
#define SNA_REPROBE 0x80000000
unsigned cpu_features;
@@ -281,6 +282,7 @@ struct sna {
unsigned num_real_crtc;
unsigned num_real_output;
unsigned num_fake;
+ unsigned serial;
} mode;
struct {
@@ -378,6 +380,7 @@ struct sna {
bool sna_mode_pre_init(ScrnInfoPtr scrn, struct sna *sna);
bool sna_mode_fake_init(struct sna *sna, int num_fake);
void sna_mode_adjust_frame(struct sna *sna, int x, int y);
+extern void sna_mode_discover(struct sna *sna);
extern void sna_mode_update(struct sna *sna);
extern void sna_mode_reset(struct sna *sna);
extern void sna_mode_wakeup(struct sna *sna);