From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15691.4004.755757.437493@nanonic.hilbert.space> From: paurea@gsyc.escet.urjc.es To: 9fans@cse.psu.edu Subject: Re: [9fans] questions on sis630 driver... 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 References: <15690.32165.579801.684580@nanonic.hilbert.space> Date: Sat, 3 Aug 2002 01:03:00 +0200 Topicbox-Message-UUID: d74060f0-eaca-11e9-9e20-41e7f4b1d025 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"