linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Working with COM-port from kernel module
@ 2006-04-26  0:16 gutter
  0 siblings, 0 replies; only message in thread
From: gutter @ 2006-04-26  0:16 UTC (permalink / raw)
  To: linux-c-programming

Hi, all.

Could you, please, help me?

I want to write a linux-driver for a device connected to computer over a 
serial port to access it through /dev/mydev, but i'm not sure how to do 
it. I mean, i can access my device from user-mode program, setting 
termios structure and working with device through file /dev/ttySx.

1. But how can i in kernel-mode open /dev/ttySx, setup termios and 
read/write?
2. Should i use some kernel functions to do it or i shouldn't use 
termios and have to program harware ports (such as 0x3F8 etc) using 
inb/outb?
3. If i should program harware ports then how can i disable native linux 
serial driver (couse when my driver and linux driver will exist together 
they won't work, i think)?
4. And is there any way to use native linux serial driver from my driver 
to open serial port and read/write it?

Thank you in advance.

Mihail.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-26  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-26  0:16 Working with COM-port from kernel module gutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).