> On Dec 22, 2015, at 11:40 PM, Theo de Raadt <[email protected]>
wrote:
>
>> I originally set all the ports to PUC_COM_POW2(3) and I did communicate
>> with one of the ports to a different machine @ 115200.
>> In the next few days, I will test all the ports @ 115200 and 9600.
>
> Ok great. We'll avoid throwing a diff at the tree, until you are
> sure.
I tested this by connecting each of the 8 ports to the serial port on a Dell
laptop also running OpenBSD.
I used cu to test each port at 9600 and 115200. The ‘test’ was mash on
the keyboard on each side and see if letters that looked right showed up on
the other.
Based on this test, I think I have this card working.
pcidevs:
vendor PERLE 0x155f Perle
product PERLE R35583 0xb008 Speed8 LE
pucdata.c:
{
{ PCI_VENDOR_PERLE, PCI_PRODUCT_PERLE_R35583, 0x1415,
0x9501 },
{ 0xffff, 0xffff, 0xffff, 0xffff },
{
{ PUC_COM_POW2(3), 0x10, 0x0000 },
{ PUC_COM_POW2(3), 0x10, 0x0008 },
{ PUC_COM_POW2(3), 0x10, 0x0010 },
{ PUC_COM_POW2(3), 0x10, 0x0018 },
},
},
{
{ PCI_VENDOR_PERLE, PCI_PRODUCT_PERLE_R35583, 0x1415,
0x9511 },
{ 0xffff, 0xffff, 0xffff, 0xffff },
{
{ PUC_COM_POW2(3), 0x10, 0x0000 },
{ PUC_COM_POW2(3), 0x10, 0x0008 },
{ PUC_COM_POW2(3), 0x10, 0x0010 },
{ PUC_COM_POW2(3), 0x10, 0x0018 },
},
},
dmesg:
puc0 at pci0 dev 9 function 0 "Perle Speed8 LE" rev 0x00: ports: 4 com
com4 at puc0 port 0 apic 2 int 18: st16650, 32 byte fifo
com4: probed fifo depth: 16 bytes
com5 at puc0 port 1 apic 2 int 18: st16650, 32 byte fifo
com5: probed fifo depth: 16 bytes
com6 at puc0 port 2 apic 2 int 18: st16650, 32 byte fifo
com6: probed fifo depth: 16 bytes
com7 at puc0 port 3 apic 2 int 18: st16650, 32 byte fifo
com7: probed fifo depth: 16 bytes
puc1 at pci0 dev 9 function 1 "Perle Speed8 LE" rev 0x00: ports: 4 com
com8 at puc1 port 0 apic 2 int 18: st16650, 32 byte fifo
com9 at puc1 port 1 apic 2 int 18: st16650, 32 byte fifo
com10 at puc1 port 2 apic 2 int 18: st16650, 32 byte fifo
com11 at puc1 port 3 apic 2 int 18: st16650, 32 byte fifo
I’m still not sure why the first four ports give the probe message and the
second four don’t.
If this is adequate testing, feel free to add this. If more testing is
preferred, let me know what to do.
Thanks!
Jordon