[Asterisk-Dev] FXO Hardware Sourcing

Jim Fleming JimFleming at ameritech.net
Wed Feb 26 21:22:37 MST 2003


----- Original Message ----- 
From: "Stephane Fourdrinier" <stephane at younix.com>
To: <asterisk-dev at lists.digium.com>
Sent: Wednesday, February 26, 2003 9:15 PM
Subject: RE: [Asterisk-Dev] FXO Hardware Sourcing


> I have one here, couldn't get it to work with Asterisk.
> 
> Here is the output of cat /proc/pci
>   Bus  2, device  10, function  0:
>     Communication controller: PCI device 1057:5608 (Motorola) (rev 0).
>      
> > >
> > > This appears to be the same board.
> > > http://www.amigo.com.tw/main.htm
> > > AMI-IA92/IE92
> > >       INTERNAL V.92 PCI DATA/FAX/TAM MODEM
> > 

There does not appear to be much difference. If there is only one card, the driver
code can probably be simplified.

static struct pci_device_id wcfxo_pci_tbl[] __devinitdata = {

{ 0xe159, 0x0001, 0x8085, PCI_ANY_ID, 0, 0, (unsigned long) &wcx101p },

{ 0x1057, 0x5608, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcx100p },

};

static struct wcfxo_desc wcx100p = { "Wildcard X100P",

FLAG_INVERTSER | FLAG_USE_XTAL | FLAG_DOUBLE_CLOCK };

static struct wcfxo_desc wcx101p = { "Wildcard X101P",

FLAG_USE_XTAL | FLAG_DOUBLE_CLOCK };

...............

if (wc->flags & FLAG_INVERTSER)

writechunk[x << 1] = cpu_to_le32(

~((unsigned short)(ZT_XLAW(wc->chan.writechunk[x], (&wc->chan)))| 0x1) << 16

);

else

writechunk[x << 1] = cpu_to_le32(

((unsigned short)(ZT_XLAW(wc->chan.writechunk[x], (&wc->chan)))| 0x1) << 16

);

====

Jim Fleming

http://IPv8.no-ip.com







More information about the asterisk-dev mailing list