Date: Sat, 29 Jun 2002 12:32:31 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Lev Serebryakov <lev@serebryakov.spb.ru> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Driver for device on serial (COM) port Message-ID: <Pine.BSF.4.21.0206291229030.78555-100000@InterJet.elischer.org> In-Reply-To: <178176166781.20020629230514@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
in -current, we have a new netgraph node ng_device that gives a device interface to netgraph. We also have the ng_tty node that attaches to a tty as a 'line disciplin' adding a node between these to do you own stuff would give you what you want. (the ng_device node shuld be Merged from current soon and you could even do it yourself.. it shouldn't be hard) in any case you probably want to attach to the tty as a line disciplin of some kind.. for example there is a graphics-tablet disciplin around somewhere (but I don't know where). On Sat, 29 Jun 2002, Lev Serebryakov wrote: > Hello, freebsd-hackers! How are you? > > I want to write driver for some device, which is attached to > standard serial (COM, RS-232) port. > I want to make this driver full-featured -- with device node in > /dev, ioctl()s and other. But I don't want to re-implement all this > serial tty stuff, that is implemented in `sys/isa/sio.c' > In case of LPT we have `ppbus'. What should I do in case of COM > port? I want to `take' com port (any calls to corresponding /dev/ttydX, > /dev/cuaaX and other should failed after this), monitor com port > state (know about new bytes, etc) and after that detach from com > port (when device is shutdowned and switched off), so com port could > be used for other deviced (i.e. modem) without rebooting. > It looks like userland program, but I really NEED full-featured > driver, which is controlled via device node... > > Lev Serebryakov > /-----------------------------------------------\ > | FIDONet: 2:5030/661.0 | > | E-Mail: lev@serebryakov.spb.ru | > | Page: http://lev.serebryakov.spb.ru/ | > | ICQ UIN: 3670018 | > | Phone: You know, if you have world nodelist | > \===============================================/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0206291229030.78555-100000>