9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: paurea@gsyc.escet.urjc.es
To: 9fans@cse.psu.edu
Subject: Re: [9fans] questions on sis630 driver...
Date: Sat,  3 Aug 2002 01:03:00 +0200	[thread overview]
Message-ID: <15691.4004.755757.437493@nanonic.hilbert.space> (raw)
In-Reply-To: <15690.32165.579801.684580@nanonic.hilbert.space>:paurea@gsyc.escet.urjc.es's message of 14:40:05 Friday,2 August 2002

I wrote the mail without enough sleep, so I suppose didn't make much sense.
Sorry for that.


paurea@gsyc.escet.urjc.es writes:

>I don't have a pnp bios. I don't know what plan9 pnp capabilities are
>(haven't found anything by browsing the source). Anyway I have found
>that the BAR registers of the card are set to zero. This gets me to my two
>questions.

 > 1) Which addresses do I choose for the framebuffer and the mmio registers?.
 > I have to set the card's register to them... (can I use segattach for that?)

I meant do I use segattach or some other way to get a segment to select the
addresses for  mmio?. (and for the framebuffer upamalloc?)


 >
 > 2) After choosing the addresses and setting the card to them, how do I
 >    access them?. I have been looking to the vgaxio function and
 >    haven't been able to understand how does it know where the
 >    registers are mapped...  Do I have to write to the PCI register the
 >    absolute address and use myself the address minus 0x80000000 for
 >    the pointers?. How does vgaxio know what the base address is?
 >


I think I have understand all this, I was just in a confused state of
mind when I wrote this... aux/vga is in user-space and so the pointers
start in zero.  In the kernel they start on 0x80000000. vgaxio uses
ports and so isn't in any place in memory, it just uses inport and
outport. To the PCI registers I write physical addresses. Is this all
correct?.

Thanks a lot.
--
                 Saludos,
                         Gorka

"Curiosity sKilled the cat"


  reply	other threads:[~2002-08-02 23:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-02 12:40 paurea
2002-08-02 23:03 ` paurea [this message]
2002-08-03  0:28 Russ Cox
2002-08-03  1:40 ` paurea

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=15691.4004.755757.437493@nanonic.hilbert.space \
    --to=paurea@gsyc.escet.urjc.es \
    --cc=9fans@cse.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).