Re: "sparc_cpu_model" undefined
Murray Stokely <[email protected]>
| Newsgroups | org.kernel.vger.ultralinux |
|---|---|
| Message-ID | <marc-linux-ultrasparc-95894596802666@msgid-missing> |
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 <asm/io.h> 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