Is it possible to write serial driver in userspace, yet, have the device appear as regular serial driver /dev/ttyS0
in the system ?
The full story is that we have a pci express fpga, and there are several devices behind the pci express fpga: serials, canbus, i2c, mdio, etc.
I thought to implement it as uio_pci_generic
, yet the serial driver is a bit problematic because we rather that it will appear as regular serial /dev/ttyS0
.
If the above is not possible: Is it possible to implement some of the pci devices in kernel (serial) and others in userspace ? Is it problematic in terms of interrupt ?
Thanks for any idea.