Adding support for MosChip 9912 PCIe (serial/parallel) cards
Daniel Eischen
deischen at freebsd.org
Sat Mar 3 15:53:28 UTC 2018
On Sat, 3 Mar 2018, Andre Albsmeier wrote:
> On Fri, 02-Mar-2018 at 08:36:40 -0500, Daniel Eischen wrote:
>> On Fri, 2 Mar 2018, Andre Albsmeier wrote:
>>
>>> I have a MosChip 9912 card (PCIe card with 1 parallel and 2 serial
>>> ports) sitting here which does not get detected on 11.1. I tried
>>> to simply add it to the uart and ppc drivers with
>>>
>> [ ... ]
>>
>> Do you try adding similar support to puc_pci_devices[] in
>> sys/dev/puc/pucdata.c?
>
> Just tried that:
>
> @@ -1204,6 +1204,11 @@
> PUC_PORT_1S1P, 0x10, 4, 0,
> },
>
> +{ 0x9710, 0x9912, 0xa000, 0x3012,
> + "NetMos NM9912 Dual UART and 1284 Printer port",
> + DEFAULT_RCLK,
> + PUC_PORT_2S1P, 0x10, 4, 0,
> +},
> { 0x9710, 0x9865, 0xa000, 0x3012,
> "NetMos NM9865 Dual UART and 1284 Printer port",
> DEFAULT_RCLK,
>
> But the results are exactly the same. It also doesn't
> matter if puc.ko is loaded at all.
Are you sure your subvendor and subdevice are correct? I would
add some device_printf()'s in puc_pci.c::puc_pci_match() and
boot with/enable bootverbose. Try to see where it's failing.
--
DE
More information about the freebsd-hackers
mailing list