09-29-2017 06:29 AM - edited 09-29-2017 06:29 AM
We've finally gotten the UART16550 driver to produce a device in /dev in linux. I was wondering: Is there a way to access the MSR, MCR, and LCR registers through the driver using something like a read from /proc? Otherwise, how is the user supposed to write code to access those registers? Do we have to resort to low-level memmap or the low-level example code which directly talks to memory?
Kurt
09-29-2017 09:00 AM
Hey Kurt,
The Linux driver for the 16550 UART should handle those registers for the user.
The usespace program then uses IOCTLs to query status and configure the UART.
Hope this clarifies,
Herbert