aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_display.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-02-23 19:03:05 -0500
committerBen Skeggs <bskeggs@redhat.com>2010-02-25 00:09:21 -0500
commit04a39c577f4114a3f098ee8ef0e20f7778b5ddad (patch)
tree681d13d2a73c86a293a0ad6fa9d5e6ef4a5fd42e /drivers/gpu/drm/nouveau/nv50_display.c
parent7f245b20e30515264b94f6373ef7d721155990a4 (diff)
drm/nouveau: merge nvbios and nouveau_bios_info
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_display.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_display.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
index 34af3b27741..c406be6fdc5 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -465,7 +465,7 @@ static int nv50_display_disable(struct drm_device *dev)
465int nv50_display_create(struct drm_device *dev) 465int nv50_display_create(struct drm_device *dev)
466{ 466{
467 struct drm_nouveau_private *dev_priv = dev->dev_private; 467 struct drm_nouveau_private *dev_priv = dev->dev_private;
468 struct dcb_table *dcb = &dev_priv->VBIOS.dcb; 468 struct dcb_table *dcb = &dev_priv->vbios.dcb;
469 uint32_t connector[16] = {}; 469 uint32_t connector[16] = {};
470 int ret, i; 470 int ret, i;
471 471
@@ -526,7 +526,7 @@ int nv50_display_create(struct drm_device *dev)
526 connector[entry->connector] |= (1 << entry->type); 526 connector[entry->connector] |= (1 << entry->type);
527 } 527 }
528 528
529 /* It appears that DCB 3.0+ VBIOS has a connector table, however, 529 /* It appears that DCB 3.0+ vbios has a connector table, however,
530 * I'm not 100% certain how to decode it correctly yet so just 530 * I'm not 100% certain how to decode it correctly yet so just
531 * look at what encoders are present on each connector index and 531 * look at what encoders are present on each connector index and
532 * attempt to derive the connector type from that. 532 * attempt to derive the connector type from that.
@@ -667,8 +667,8 @@ nv50_display_irq_head(struct drm_device *dev, int *phead,
667 return -1; 667 return -1;
668 } 668 }
669 669
670 for (i = 0; i < dev_priv->VBIOS.dcb.entries; i++) { 670 for (i = 0; i < dev_priv->vbios.dcb.entries; i++) {
671 struct dcb_entry *dcbent = &dev_priv->VBIOS.dcb.entry[i]; 671 struct dcb_entry *dcbent = &dev_priv->vbios.dcb.entry[i];
672 672
673 if (dcbent->type != type) 673 if (dcbent->type != type)
674 continue; 674 continue;
@@ -692,7 +692,7 @@ nv50_display_script_select(struct drm_device *dev, struct dcb_entry *dcbent,
692 struct drm_nouveau_private *dev_priv = dev->dev_private; 692 struct drm_nouveau_private *dev_priv = dev->dev_private;
693 struct nouveau_connector *nv_connector = NULL; 693 struct nouveau_connector *nv_connector = NULL;
694 struct drm_encoder *encoder; 694 struct drm_encoder *encoder;
695 struct nvbios *bios = &dev_priv->VBIOS; 695 struct nvbios *bios = &dev_priv->vbios;
696 uint32_t mc, script = 0, or; 696 uint32_t mc, script = 0, or;
697 697
698 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { 698 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
@@ -710,7 +710,7 @@ nv50_display_script_select(struct drm_device *dev, struct dcb_entry *dcbent,
710 switch (dcbent->type) { 710 switch (dcbent->type) {
711 case OUTPUT_LVDS: 711 case OUTPUT_LVDS:
712 script = (mc >> 8) & 0xf; 712 script = (mc >> 8) & 0xf;
713 if (bios->pub.fp_no_ddc) { 713 if (bios->fp_no_ddc) {
714 if (bios->fp.dual_link) 714 if (bios->fp.dual_link)
715 script |= 0x0100; 715 script |= 0x0100;
716 if (bios->fp.if_is_24bit) 716 if (bios->fp.if_is_24bit)