From: paurea@gsyc.escet.urjc.es
To: 9fans@cse.psu.edu
Subject: [9fans] questions on sis630 driver...
Date: Fri, 2 Aug 2002 14:40:05 +0200 [thread overview]
Message-ID: <15690.32165.579801.684580@nanonic.hilbert.space> (raw)
I continue trying to write the sis630 driver and have a lot of questions.
Forgive me if they are really naive, it is the first time I try to write a
driver... I am still fighting with aux/vga.
The questions are on how should I map and use fb memory and mmio.
I have finally understand that the mmio ports and the address of the video
memory are configured using some PCI configuration registers.
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?)
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?
TIA
--
Saludos, Gorka
"Curiosity sKilled the cat"
next reply other threads:[~2002-08-02 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 12:40 paurea [this message]
2002-08-02 23:03 ` paurea
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=15690.32165.579801.684580@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).