All of lore.kernel.org
 help / color / mirror / Atom feed
From: nick <xerofoify@gmail.com>
To: airlied@linux.ie
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: mga_warp.c Question
Date: Thu, 27 Nov 2014 16:43:49 -0500	[thread overview]
Message-ID: <54779B15.3060401@gmail.com> (raw)

David,
I am posting some code below this message. Please tell me what you mean by this fix me in the code pasted.
Nick 
int mga_warp_init(drm_mga_private_t *dev_priv)
{
        u32 wmisc;
 
        /* FIXME: Get rid of these damned magic numbers...
        */
      switch (dev_priv->chipset) {
        case MGA_CARD_TYPE_G400:
        case MGA_CARD_TYPE_G550:
                 MGA_WRITE(MGA_WIADDR2, MGA_WMODE_SUSPEND);
                 MGA_WRITE(MGA_WGETMSB, 0x00000E00);
                 MGA_WRITE(MGA_WVRTXSZ, 0x00001807);
                 MGA_WRITE(MGA_WACCEPTSEQ, 0x18000000);
                 break;
         case MGA_CARD_TYPE_G200:
                MGA_WRITE(MGA_WIADDR, MGA_WMODE_SUSPEND);
                MGA_WRITE(MGA_WGETMSB, 0x1606);
                MGA_WRITE(MGA_WVRTXSZ, 7);
                break;
         default:
               return -EINVAL;
         }

       MGA_WRITE(MGA_WMISC, (MGA_WUCODECACHE_ENABLE |
                               MGA_WMASTER_ENABLE | MGA_WCACHEFLUSH_ENABLE));
      wmisc = MGA_READ(MGA_WMISC);
      if (wmisc != WMISC_EXPECTED) {
                DRM_ERROR("WARP engine config failed! 0x%x != 0x%x\n",
                wmisc, WMISC_EXPECTED);
              return -EINVAL;
        }

        return 0;
 }
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

                 reply	other threads:[~2014-11-27 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54779B15.3060401@gmail.com \
    --to=xerofoify@gmail.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.