aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_encoder.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-10-28 08:54:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-28 08:54:23 -0400
commit37be944a0270402f9cda291a930b0286f6dc92f5 (patch)
tree6a91a9eb86450f4a18a8871f04a1ef810e7b55d6 /drivers/gpu/drm/nouveau/nouveau_encoder.h
parentca836a25435ef1b9914840ed0a310c9b6ac261d1 (diff)
parent1717c0e23f411147490c7a3312b894f0ea9a5fb1 (diff)
Merge branch 'drm-core-next' of git://people.freedesktop.org/~airlied/linux
* 'drm-core-next' of git://people.freedesktop.org/~airlied/linux: (290 commits) Revert "drm/ttm: add a way to bo_wait for either the last read or last write" Revert "drm/radeon/kms: add a new gem_wait ioctl with read/write flags" vmwgfx: Don't pass unused arguments to do_dirty functions vmwgfx: Emulate depth 32 framebuffers drm/radeon: Lower the severity of the radeon lockup messages. drm/i915/dp: Fix eDP on PCH DP on CPT/PPT drm/i915/dp: Introduce is_cpu_edp() drm/i915: use correct SPD type value drm/i915: fix ILK+ infoframe support drm/i915: add DP test request handling drm/i915: read full receiver capability field during DP hot plug drm/i915/dp: Remove eDP special cases from bandwidth checks drm/i915/dp: Fix the math in intel_dp_link_required drm/i915/panel: Always record the backlight level again (but cleverly) i915: Move i915_read/write out of line drm/i915: remove transcoder PLL mashing from mode_set per specs drm/i915: if transcoder disable fails, say which drm/i915: set watermarks for third pipe on IVB drm/i915: export a CPT mode set verification function drm/i915: fix transcoder PLL select masking ...
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_encoder.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_encoder.h27
1 files changed, 5 insertions, 22 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_encoder.h b/drivers/gpu/drm/nouveau/nouveau_encoder.h
index ae69b61d93db..e5d6e3faff3d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_encoder.h
+++ b/drivers/gpu/drm/nouveau/nouveau_encoder.h
@@ -49,17 +49,17 @@ struct nouveau_encoder {
49 49
50 union { 50 union {
51 struct { 51 struct {
52 int mc_unknown; 52 u8 dpcd[8];
53 uint32_t unk0;
54 uint32_t unk1;
55 int dpcd_version;
56 int link_nr; 53 int link_nr;
57 int link_bw; 54 int link_bw;
58 bool enhanced_frame; 55 u32 datarate;
59 } dp; 56 } dp;
60 }; 57 };
61}; 58};
62 59
60struct nouveau_encoder *
61find_encoder(struct drm_connector *connector, int type);
62
63static inline struct nouveau_encoder *nouveau_encoder(struct drm_encoder *enc) 63static inline struct nouveau_encoder *nouveau_encoder(struct drm_encoder *enc)
64{ 64{
65 struct drm_encoder_slave *slave = to_encoder_slave(enc); 65 struct drm_encoder_slave *slave = to_encoder_slave(enc);
@@ -83,21 +83,4 @@ nouveau_encoder_connector_get(struct nouveau_encoder *encoder);
83int nv50_sor_create(struct drm_connector *, struct dcb_entry *); 83int nv50_sor_create(struct drm_connector *, struct dcb_entry *);
84int nv50_dac_create(struct drm_connector *, struct dcb_entry *); 84int nv50_dac_create(struct drm_connector *, struct dcb_entry *);
85 85
86struct bit_displayport_encoder_table {
87 uint32_t match;
88 uint8_t record_nr;
89 uint8_t unknown;
90 uint16_t script0;
91 uint16_t script1;
92 uint16_t unknown_table;
93} __attribute__ ((packed));
94
95struct bit_displayport_encoder_table_entry {
96 uint8_t vs_level;
97 uint8_t pre_level;
98 uint8_t reg0;
99 uint8_t reg1;
100 uint8_t reg2;
101} __attribute__ ((packed));
102
103#endif /* __NOUVEAU_ENCODER_H__ */ 86#endif /* __NOUVEAU_ENCODER_H__ */