The latest revision of the HST Saphir III ML PCI uses the Cologne HFC-4S
chipset (earlier versions used an Infineon chipset I think), so I'm
wondering if it could work with the vISDN driver. An image of the card
clearly showing the chip is at:
http://hstnet.de/english/products/isdn/saphir_3_ml_pci/SAPHIR_3_ml_pci.j
pg
lspci says:
0000:02:0a.0 ISDN controller: High Soft Tech: Unknown device 0007 (rev
01)
Subsystem: High Soft Tech: Unknown device 0100
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 193
Region 0: I/O ports at 1440 [disabled] [size=8]
Region 1: Memory at 40200000 (32-bit, non-prefetchable)
[size=4K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
(the first bit again with -n):
0000:02:0a.0 0204: 136a:0007 (rev 01)
Subsystem: 136a:0100
So far I have modified hfc-4s_main.c to include the PCI ID's with the
following addition:
{0x136a, 0x0007,
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
(unsigned long)&(struct hfc_card_config) {
.double_clock = 0,
.quartz_49 = 0,
.ram_size = 32,
}},
And now the HFC-4S chip is detected on the card, so something is going
right. This is what the kernel says (with debug enabled) when I load the
module:
hfc-4s: HFC-4S HFC-8S Driver loading
ACPI: PCI Interrupt 0000:02:0a.0[A] -> GSI 21 (level, low) -> IRQ 193
PCI: Setting latency timer of device 0000:02:0a.0 to 64
hfc-4s: pci-0000:02:0a.0 HFC-4S chip rev. 01 detected, using quartz=24
MHz, doubleclock=0
hfc-4s: pci-0000:02:0a.0:sys:Using FIFO config #0
hfc-4s: pci-0000:02:0a.0:sys:FIFO 0 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 1 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 2 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 3 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 4 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 5 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 6 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 7 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 8 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 9 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 10 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 11 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 12 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 13 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 14 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 15 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 16 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 17 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 18 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 19 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 20 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 21 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 22 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 23 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 24 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 25 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 26 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 27 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 28 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 29 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 30 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0:sys:FIFO 31 zmin=0080 zmax=01ff fmin=00 fmax=0f
hfc-4s: pci-0000:02:0a.0 resetting
hfc-4s: pci-0000:02:0a.0 configured at mem 0x40200000 (0xd08aa000) IRQ
193
I have configured the card with the sample config and
visdn_configurator, and port 1 is plugged into an NT1:
hfc-4s: pci-0000:02:0a.0 Clock source set to auto
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] leg B connecting to 000001
hfc-4s: pci-0000:02:0a.0:st0:chan[D] connecting to 000001
hfc-4s: pci-0000:02:0a.0:st0:chan[D] channel connected.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] leg A connecting to 000033
hfc-4s: pci-0000:02:0a.0 Seq #0 fifo [0,TX] <=> chan [2,TX] (0:D) =>
fifo [0,RX]
hfc-4s: pci-0000:02:0a.0 Seq #1 fifo [0,RX] <=> chan [2,RX] (0:D) END!
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] channel opened.
hfc-4s: pci-0000:02:0a.0:st0:chan[D] channel opened.
lapd: NETDEV_UP visdn1.0
hfc-4s: pci-0000:02:0a.0:st0:enabled
hfc-4s: pci-0000:02:0a.0:st0:layer 1 state = F0 => F6
hfc-4s: pci-0000:02:0a.0:st0:layer 1 state = F6 => F7
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] empty frame received
hfc-4s: pci-0000:02:0a.0:sys:chan[sys1] leg B connecting to 000002
hfc-4s: pci-0000:02:0a.0:st1:chan[D] connecting to 000002
hfc-4s: pci-0000:02:0a.0:st1:chan[D] channel connected.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys1] leg A connecting to 000038
hfc-4s: pci-0000:02:0a.0 Seq #0 fifo [0,TX] <=> chan [2,TX] (0:D) =>
fifo [0,RX]
hfc-4s: pci-0000:02:0a.0 Seq #1 fifo [0,RX] <=> chan [2,RX] (0:D) =>
fifo [1,TX]
hfc-4s: pci-0000:02:0a.0 Seq #2 fifo [1,TX] <=> chan [6,TX] (1:D) =>
fifo [1,RX]
hfc-4s: pci-0000:02:0a.0 Seq #3 fifo [1,RX] <=> chan [6,RX] (1:D) END!
hfc-4s: pci-0000:02:0a.0:sys:chan[sys1] channel opened.
hfc-4s: pci-0000:02:0a.0:st1:chan[D] channel opened.
lapd: NETDEV_UP visdn1.1
hfc-4s: pci-0000:02:0a.0:st1:enabled
hfc-4s: pci-0000:02:0a.0:st1:layer 1 state = F0 => F3
hfc-4s: pci-0000:02:0a.0:sys:chan[sys2] leg B connecting to 000003
hfc-4s: pci-0000:02:0a.0:st2:chan[D] connecting to 000003
hfc-4s: pci-0000:02:0a.0:st2:chan[D] channel connected.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys2] leg A connecting to 000043
hfc-4s: pci-0000:02:0a.0 Seq #0 fifo [0,TX] <=> chan [2,TX] (0:D) =>
fifo [0,RX]
hfc-4s: pci-0000:02:0a.0 Seq #1 fifo [0,RX] <=> chan [2,RX] (0:D) =>
fifo [1,TX]
hfc-4s: pci-0000:02:0a.0 Seq #2 fifo [1,TX] <=> chan [6,TX] (1:D) =>
fifo [1,RX]
hfc-4s: pci-0000:02:0a.0 Seq #3 fifo [1,RX] <=> chan [6,RX] (1:D) =>
fifo [2,TX]
hfc-4s: pci-0000:02:0a.0 Seq #4 fifo [2,TX] <=> chan [10,TX] (2:D) =>
fifo [2,RX]
hfc-4s: pci-0000:02:0a.0 Seq #5 fifo [2,RX] <=> chan [10,RX] (2:D) END!
hfc-4s: pci-0000:02:0a.0:sys:chan[sys2] channel opened.
hfc-4s: pci-0000:02:0a.0:st2:chan[D] channel opened.
lapd: NETDEV_UP visdn1.2
hfc-4s: pci-0000:02:0a.0:st2:enabled
hfc-4s: pci-0000:02:0a.0:st2:layer 1 state = F0 => F3
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] leg B connecting to 000004
hfc-4s: pci-0000:02:0a.0:st3:chan[D] connecting to 000004
hfc-4s: pci-0000:02:0a.0:st3:chan[D] channel connected.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] leg A connecting to 000048
hfc-4s: pci-0000:02:0a.0 Seq #0 fifo [0,TX] <=> chan [2,TX] (0:D) =>
fifo [0,RX]
hfc-4s: pci-0000:02:0a.0 Seq #1 fifo [0,RX] <=> chan [2,RX] (0:D) =>
fifo [1,TX]
hfc-4s: pci-0000:02:0a.0 Seq #2 fifo [1,TX] <=> chan [6,TX] (1:D) =>
fifo [1,RX]
hfc-4s: pci-0000:02:0a.0 Seq #3 fifo [1,RX] <=> chan [6,RX] (1:D) =>
fifo [2,TX]
hfc-4s: pci-0000:02:0a.0 Seq #4 fifo [2,TX] <=> chan [10,TX] (2:D) =>
fifo [2,RX]
hfc-4s: pci-0000:02:0a.0 Seq #5 fifo [2,RX] <=> chan [10,RX] (2:D) =>
fifo [3,TX]
hfc-4s: pci-0000:02:0a.0 Seq #6 fifo [3,TX] <=> chan [14,TX] (3:D) =>
fifo [3,RX]
hfc-4s: pci-0000:02:0a.0 Seq #7 fifo [3,RX] <=> chan [14,RX] (3:D) END!
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] channel opened.
hfc-4s: pci-0000:02:0a.0:st3:chan[D] channel opened.
lapd: NETDEV_UP visdn1.3
hfc-4s: pci-0000:02:0a.0:st3:enabled
hfc-4s: pci-0000:02:0a.0:st3:layer 1 state = F0 => F3
If I try to make a call out of port0, the kernel shows this:
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=0f, f2=0f, z1(f1)=01ff,
z2(f2)=01ff) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] RX (f1=01, f2=00, z1(f1)=008c,
z2(f1)=01ff) len 14: 000000feff030f000004ffd970 00
lapd: visdn1.0: improper ea bits in received frame
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=00, f2=00, z1(f1)=0082,
z2(f2)=0082) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=01, f2=01, z1(f1)=0085,
z2(f2)=0085) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] RX (f1=02, f2=01, z1(f1)=0097,
z2(f1)=008d) len 11: feff030f000004ffd970 00
lapd: visdn1.0: TEI 127 check request
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=02, f2=02, z1(f1)=0088,
z2(f2)=0088) len 3: 00017f
lapd: visdn1.0: MDL-ERROR-INDICATION(G)
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] RX (f1=03, f2=02, z1(f1)=00a2,
z2(f1)=0098) len 11: feff030f000004ffd970 00
lapd: visdn1.0: TEI 127 check request
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=03, f2=03, z1(f1)=008b,
z2(f2)=008b) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] RX (f1=04, f2=03, z1(f1)=00ad,
z2(f1)=00a3) len 11: feff030f000004ffd970 00
lapd: visdn1.0: TEI 127 check request
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=04, f2=04, z1(f1)=008e,
z2(f2)=008e) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=05, f2=05, z1(f1)=0091,
z2(f2)=0091) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] RX (f1=05, f2=04, z1(f1)=00b8,
z2(f1)=00ae) len 11: feff030f000004ffd970 00
lapd: visdn1.0: TEI 127 check request
hfc-4s: pci-0000:02:0a.0:sys:chan[sys0] TX (f1=06, f2=06, z1(f1)=0094,
z2(f2)=0094) len 3: 00017f
lapd: visdn1.0: MDL-ERROR-INDICATION(G)
and out of port 3 (nothing connected) I get this:
hfc-4s: pci-0000:02:0a.0:st3:L1 is down, bringing up L1.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] TX (f1=0f, f2=0f, z1(f1)=01ff,
z2(f2)=01ff) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:st3:layer 1 state = F3 => F4
hfc-4s: pci-0000:02:0a.0:st3:L1 is down, bringing up L1.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] TX (f1=00, f2=0f, z1(f1)=0082,
z2(f2)=01ff) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:st3:L1 is down, bringing up L1.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] TX (f1=01, f2=0f, z1(f1)=0085,
z2(f2)=01ff) len 3: 00017f
hfc-4s: pci-0000:02:0a.0:st3:L1 is down, bringing up L1.
hfc-4s: pci-0000:02:0a.0:sys:chan[sys3] TX (f1=02, f2=0f, z1(f1)=0088,
z2(f2)=01ff) len 3: 00017f
lapd: visdn1.3: MDL-ERROR-INDICATION(G)
So... it looks like the chip on the card is detected, and vISDN is
capable of detecting L1 state, but something, somewhere, is wrong and it
doesn't actually work... d'oh.
Any assistance would be greatly appreciated, even if it's "I tried one
of these before and it will never be made to work".
Thanks
James
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers