From mboxrd@z Thu Jan 1 00:00:00 1970 From: Murray Stokely Date: Sun, 21 May 2000 21:48:08 +0000 Subject: Re: "sparc_cpu_model" undefined Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ultralinux@vger.kernel.org On Sat, 20 May 2000, Jakub Jelinek wrote: % On Fri, May 19, 2000 at 06:44:38PM -0700, Murray Stokely wrote: % > On Fri, 19 May 2000, Pete Zaitcev wrote: % > % Imagine for a second that we make an on sparc that % > % gets included in your program without errors. What makes you think % > % that inb/outb there may be useful to you, even after ioperm() ? % > % They easily may happen to be defined as stba/lduba instructions, % > % or may require port address to be offset. % > % > Ok, so how do I get around these problems to write a few bytes % > directly to an IO port. As an example, I would like to write a few % > bytes to the parallel port to control a LED or program a % > microcontroller. With Linux/x86 I just call ioperm() and then outb(). % > How do I do this under Linux/sparc? % % There are __NO I/O PORTS__ on SPARC. Everything is I/O mapped. What address is the parallel port mapped to? What book, example source, or web site can I read to learn more about IO programming on Sparcs? - Murray