Subject: Adding a new tty device
To: 'netbsd-help@netbsd.org' <netbsd-help@netbsd.org>
From: Bruce Martin <BruceM@cat.co.za>
List: netbsd-help
Date: 07/28/1999 12:40:39
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BED8E5.A2A58560
Content-Type: text/plain

I have written a device driver for a serial port board that we have, and
it works fine in that it can read and write serial data. However, I now
want to implement it as a tty device on our system, so that I can use
all the usual tty functions on it. How do I go about this? Also, do I
need to write any other device driver functions (besides open, close,
read, write, poll, mmap, intr) to achieve this. Are there any books/docs
around describing this process?

thanks
 Bruce

------ =_NextPart_001_01BED8E5.A2A58560
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.1960.3">
<TITLE>Adding a new tty device</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I have written a device driver for a serial port =
board that we have, and it works fine in that it can read and write =
serial data. However, I now want to implement it as a tty device on our =
system, so that I can use all the usual tty functions on it. How do I =
go about this? Also, do I need to write any other device driver =
functions (besides open, close, read, write, poll, mmap, intr) to =
achieve this. Are there any books/docs around describing this =
process?</FONT></P>

<P><FONT SIZE=3D2>thanks</FONT>
<BR><FONT SIZE=3D2>&nbsp;Bruce</FONT>
</P>

</BODY>
</HTML>
------ =_NextPart_001_01BED8E5.A2A58560--