[patch] puc(4) add ASIX AX99100 support

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[patch] puc(4) add ASIX AX99100 support

SASANO Takayoshi
hello, here is AX99100 4port serial PCI-Express controller support.
applying this patch, AX99100 is recognized as follows:

        puc0 at pci3 dev 0 function 0 "ASIX AX99100" rev 0x00: ports: 1 com
        com4 at puc0 port 0 apic 5 int 17: st16650, 32 byte fifo
        puc1 at pci3 dev 0 function 1 "ASIX AX99100" rev 0x00: ports: 1 com
        com5 at puc1 port 0 apic 5 int 18: st16650, 32 byte fifo
        puc2 at pci3 dev 0 function 2 "ASIX AX99100" rev 0x00: ports: 1 com
        com6 at puc2 port 0 apic 5 int 19: st16650, 32 byte fifo
        puc3 at pci3 dev 0 function 3 "ASIX AX99100" rev 0x00: ports: 1 com
        com7 at puc3 port 0 apic 5 int 16: st16650, 32 byte fifo

ok?
--
SASANO Takayoshi (JG1UAA) <[hidden email]>

Index: pcidevs
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1823
diff -u -p -r1.1823 pcidevs
--- pcidevs 16 Jul 2017 13:41:58 -0000 1.1823
+++ pcidevs 4 Aug 2017 12:53:12 -0000
@@ -966,6 +966,7 @@ product ARECA ARC1880 0x1880 ARC-1880
 
 /* ASIX Electronics products */
 product ASIX AX88140A 0x1400 AX88140A/88141
+product ASIX AX99100 0x9100 AX99100
 
 /* ASMedia products */
 product ASMEDIA ASM1061_SATA 0x0611 ASM1061 SATA
Index: pcidevs.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1817
diff -u -p -r1.1817 pcidevs.h
--- pcidevs.h 16 Jul 2017 13:42:20 -0000 1.1817
+++ pcidevs.h 4 Aug 2017 12:53:13 -0000
@@ -971,6 +971,7 @@
 
 /* ASIX Electronics products */
 #define PCI_PRODUCT_ASIX_AX88140A 0x1400 /* AX88140A/88141 */
+#define PCI_PRODUCT_ASIX_AX99100 0x9100 /* AX99100 */
 
 /* ASMedia products */
 #define PCI_PRODUCT_ASMEDIA_ASM1061_SATA 0x0611 /* ASM1061 SATA */
Index: pcidevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1811
diff -u -p -r1.1811 pcidevs_data.h
--- pcidevs_data.h 16 Jul 2017 13:42:20 -0000 1.1811
+++ pcidevs_data.h 4 Aug 2017 12:53:14 -0000
@@ -2152,6 +2152,10 @@ static const struct pci_known_product pc
     "AX88140A/88141",
  },
  {
+    PCI_VENDOR_ASIX, PCI_PRODUCT_ASIX_AX99100,
+    "AX99100",
+ },
+ {
     PCI_VENDOR_ASMEDIA, PCI_PRODUCT_ASMEDIA_ASM1061_SATA,
     "ASM1061 SATA",
  },
Index: pucdata.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/pucdata.c,v
retrieving revision 1.105
diff -u -p -r1.105 pucdata.c
--- pucdata.c 6 May 2017 01:54:31 -0000 1.105
+++ pucdata.c 4 Aug 2017 12:53:14 -0000
@@ -2200,6 +2200,13 @@ const struct puc_device_description puc_
  { PUC_COM_POW2(0), 0x14, 0x0000 },
     }
  },
+ {   /* "ASIX AX99100", */
+    { PCI_VENDOR_ASIX, PCI_PRODUCT_ASIX_AX99100, 0, 0 },
+    { 0xffff, 0xffff, 0, 0 },
+    {
+ { PUC_COM_POW2(0), 0x10, 0x0000 },
+    }
+ },
  {   /* "NetMos NM9820 UART" */
     {   PCI_VENDOR_NETMOS, PCI_PRODUCT_NETMOS_NM9820, 0, 0 },
     { 0xffff, 0xffff, 0, 0 },