I want to modify the serial port driver source code in kernel. And I found the serial port chipset is NCT6776F. But I can't find the serial port relate driver code.
Could someone give me some tips. Thank you very much.
My centos version is 7.6 and kernerl version is 3.10.0-957.el7.x86_64
where to get the serial port driver source code
Re: where to get the serial port driver source code
Your project sounds absurd. The NCT6776F is a Super I/O chip that implements "PC-compatible" serial ports. If you really have one, you should see something like in the kernel logs. Besides, the cip is specifically known to the kernel: Even the non-generic parts for hardware monitoring with lm_sensors are supported out of the box.
Code: Select all
[ 0.656617] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.677323] 00:01: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.698066] 00:02: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Code: Select all
[ 4.058284] nct6775: Found NCT6776D/F or compatible chip at 0xa30