Bug 214670

Summary: [patch] add support for MCS9900-based parallel port card
Product: Base System Reporter: Robert Clausecker <fuz>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: ---    
Version: 11.0-RELEASE   
Hardware: Any   
OS: Any   

Description Robert Clausecker freebsd_committer freebsd_triage 2016-11-19 16:54:37 UTC
It seems that due to an oversight, parallel port cards with the MCS9900 chipset are not supported by the FreeBSD kernel. After adding the following patch and adding appropriate device hints, the card is supported and works fine:

--- /usr/src/sys/dev/ppc/ppc_pci.c.orig	2016-09-29 01:24:50.000000000 +0200
+++ /usr/src/sys/dev/ppc/ppc_pci.c	2016-11-19 15:08:36.381138000 +0100
@@ -92,6 +92,7 @@
 	{ 0x98059710, "NetMos NM9805 1284 Printer port", 0x10 },
 	{ 0x98659710, "MosChip MCS9865 1284 Printer port", 0x10 },
 	{ 0x99019710, "MosChip MCS9901 PCIe to Peripheral Controller", 0x10 },
+	{ 0x99009710, "MosChip MCS9900 PCIe to Peripheral Controller", 0x10 },
 	{ 0xffff }
 };

Please add this patch to the FreeBSD kernel so the card is supported out-of-the-box.
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-08-27 11:37:57 UTC
A commit references this bug:

Author: kib
Date: Sun Aug 27 11:37:08 UTC 2017
New revision: 322947
URL: https://svnweb.freebsd.org/changeset/base/322947

Log:
  Add PCI Id for MosChip MCS9900.

  Submitted by:	Robert Clausecker <fuz@fuz.su>
  PR:	214670
  MFC after:	1 week

Changes:
  head/sys/dev/ppc/ppc_pci.c