All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomas Jura <tjura@binghamton.edu>
To: linuxppc-dev@lists.linuxppc.org
Subject: Accessing PCI IORESOURCE_IO
Date: Wed, 19 Sep 2001 16:46:10 -0400	[thread overview]
Message-ID: <20010919164610.A346@kybl> (raw)


Can anybody explain me how to access PCI card resource
of type IORESOURCE_IO on PPC ?

My video card can work only with 4MB memory instead 6MB (
vram:6144 not helps ) and I think that solution is in the
non memory maped register on ATY chip.

thanks
Tomas

P.S. I tried following way (which failed):

rp=&pdev->resource[1];
addr = rp->start;
if( request_region( addr, 32, "atyfb" ) == 0 ){
  for( i = 0 ; i < 32; i++)
    printk( " %X",( unsigned ) inb( addr+i ) );
  printk( "\n" );
  release_region( addr, 32 );
} else
  printk("cannot request region 0x%lX\n", addr );

Resource 0, Flags 0x200, start 0x81000000, size 0x1000000
Resource 1, Flags 0x101, start 0xC00, size 0x100
Resource 2, Flags 0x200, start 0x80800000, size 0x1000
atyfb: using auxiliary register aperture
atyfb: 3D RAGE PRO (PQFP, PCI) [0x4750 rev 0x7c] 6M SGRAM,
14.31818 MHz XTAL, 23
0 MHz PLL, 100 Mhz MCLK
BUS_CNTL DAC_CNTL MEM_CNTL EXT_MEM_CNTL CRTC_GEN_CNTL DSP_CONFIG DSP_ON_OFF
6b2ea040 87010182 08651a79 e0000c01     03000600      001807ee   03c007cf


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

                 reply	other threads:[~2001-09-19 20:46 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=20010919164610.A346@kybl \
    --to=tjura@binghamton.edu \
    --cc=linuxppc-dev@lists.linuxppc.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.