I wrote a kernel module for a touch screen monitor and earlier I used inputattach (written in userspace) to open serial port, set baud rate, control flags, line discipline etc.
But now I want to implement the functionalities of inputattach directly in our driver as we don't want to trigger our driver from an userspace program i.e inputattch.
But I cant able to set c_ispeed, c_ospeed, c_cflag, c_iflag, line discipline, etc., in kernel space.
Is there any solution to set baud rate, line discipline etc., by only using our kernel module?
I have found this document https://www.kernel.org/doc/Documentation/serial-console.txt it is about how to configure a serial port as console on Linux, but it includes a section for the kernel which indicates how to set the console options on the kernel including the baud speed, this might give you some guidance. And this other link is how to configure the kernel for parameters on a serial port http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel.html I hope you find this useful
Retrieving data ...