Re: programming the serial port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, 6 May 2002, Seth Arnold wrote:

> On Mon, May 06, 2002 at 08:29:18PM +0200, Bart Vandewoestyne wrote:
> > and that's *not* what I have to do: i have to program
> > the UART directly, that is 'set individual bits on the UART' up until
> > i manage to send something out and receive something...
> >
> > I guess I will be needing the inb, outb or ioctl system calls, right?
>
> (a) ioctl(2) will be using a file descriptor :)
> (b) honestly, what are they teaching in schools these days? "Yeah, we
> know there is a nice, portable, way you can talk to serial drivers on
> most every unix-ish system in the world. We don't want you to do that."

i think it's the not invented here syndrome
anyway, isn't there a way to incorporate the kernel serial code into you
specific embedded system?

>
> You might be able to do this from userspace, with iopl(2) or ioperm(2),
> and the right magic assembly to poke bytes into specific registers. Or
> you might need to do it in the kernel. I'm not sure. :) BTW, check out
> serial.c, and if you can write something that provides the same API but
> is nicer, I'm sure others would like to see it. I've heard nothing but
> ill will towards it. :)
>
> --
> http://www.wirex.com/
>


-- 
Stijn Vander Maelen
3th year computer science, Brussels Free University (VUB)

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux