From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4e64a7709fe42fbfc4744c0171df28e2@plan9.bell-labs.com> From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: UART device driver (Was: [9fans] random moving of cursor arrow) In-Reply-To: <20030725163518.Z28024@cackle.proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sat, 26 Jul 2003 01:50:56 -0400 Topicbox-Message-UUID: 0445dcfa-eacc-11e9-9e20-41e7f4b1d025 On Fri Jul 25 10:48:34 EDT 2003, lucio@proxima.alt.za wrote: > ... > I have a vested interest, anyway: I have a six-port BOCA card with > the most creative way of mapping its six ports to the I/O and > interrupt space and I'd like some suggestions on representing this > in plan9.ini. > ... If it's an ISA card then shared interrupts will not work. Use a line in plan9.ini for each port. Write a new driver (say uartisa.c) with a pnp function which calls allocates the necessary data structures and calls uarti8250alloc for each plan9.ini line, say uart0=type=i8250 port=XXX irq=Y See /sys/src/9/pc/uartpci.c for many clues.