CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/08/14 12:14:11
Modified files:
sys/dev/ic : com.c comreg.h comvar.h
sys/dev/pci : puc.c pucdata.c pucvar.h
sys/dev/puc : com_puc.c
Log message:
Re-commit Exar XR17V35x serial port support previously backed out:
The Exar XR17V354 has 4 ports that have a 256-byte FIFO, use a
frequency of 125Mhz, and have a unique sleep register. A custom
interrupt handler is setup in puc for these ports so it can check a
register which reports which ports triggered the interrupt, rather
than having to run comintr for every port every time.
To avoid probing for these ports in com_attach_subr which requires
access to registers that may be reserved on certain platforms, pass
the sc_uarttype from com_puc_attach since the port type is already
known based on the puc device vendor/id.
Input from kettenis, tested in snaps