Bug 214670 - [patch] add support for MCS9900-based parallel port card
Summary: [patch] add support for MCS9900-based parallel port card
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-11-19 16:54 UTC by Robert Clausecker
Modified: 2017-08-27 11:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker 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 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