Download raw body.
adding support for Meinberg PCI510 receiver card
Hi,
The following diff adds support for the Meinberg PCI510 card.
With this diff, the card is recognized and functions as expected:
mbg0 at pci0 dev 14 function 0 "Meinberg Funkuhren PCI510" rev 0x00: synchronized
$ ntpctl -s S
sensor
wt gd st next poll offset correction
mbg0 DCFa
* 1 1 0 13s 15s 0.385ms 2.500ms
Would it be possible to add this to the tree?
Thanks and best regards,
Maurice Janssen
Index: man4/mbg.4
===================================================================
RCS file: /cvs/src/share/man/man4/mbg.4,v
retrieving revision 1.15
diff -u -p -u -p -r1.15 mbg.4
--- man4/mbg.4 25 Sep 2023 15:39:12 -0000 1.15
+++ man4/mbg.4 22 Mar 2024 21:21:13 -0000
@@ -44,6 +44,8 @@ Currently, the following cards are suppo
5V DCF77 time signal station receiver card
.It PCI509
5V DCF77 time signal station receiver card
+.It PCI510
+3.3V/5V DCF77 time signal station receiver card
.It PCI511
3.3V/5V DCF77 time signal station receiver card
.It PEX511
Index: mbg.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/mbg.c,v
retrieving revision 1.35
diff -u -p -u -p -r1.35 mbg.c
--- mbg.c 25 Sep 2023 15:38:46 -0000 1.35
+++ mbg.c 22 Mar 2024 21:26:38 -0000
@@ -159,6 +159,7 @@ const struct pci_matchid mbg_devices[] =
{ PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_GPS170PCI },
{ PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_PCI32 },
{ PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_PCI509 },
+ { PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_PCI510 },
{ PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_PCI511 },
{ PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_PEX511 },
{ PCI_VENDOR_MEINBERG, PCI_PRODUCT_MEINBERG_PZF180PEX }
@@ -241,6 +242,7 @@ mbg_attach(struct device *parent, struct
sc->sc_read = mbg_read_amcc_s5920;
sensor_task_register(sc, mbg_task, 10);
break;
+ case PCI_PRODUCT_MEINBERG_PCI510:
case PCI_PRODUCT_MEINBERG_PCI511:
case PCI_PRODUCT_MEINBERG_PEX511:
sc->sc_read = mbg_read_asic;
Index: pcidevs
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.2068
diff -u -p -u -p -r1.2068 pcidevs
--- pcidevs 6 Mar 2024 07:01:24 -0000 1.2068
+++ pcidevs 22 Mar 2024 21:26:38 -0000
@@ -7538,6 +7538,7 @@ product MEDIATEK MT7921 0x7961 MT7921
/* Meinberg Funkuhren */
product MEINBERG PCI32 0x0101 PCI32
product MEINBERG PCI509 0x0102 PCI509
+product MEINBERG PCI510 0x0103 PCI510
product MEINBERG PCI511 0x0104 PCI511
product MEINBERG PEX511 0x0105 PEX511
product MEINBERG PZF180PEX 0x0106 PZF180PEX
adding support for Meinberg PCI510 receiver card