[PATCH] Eagle and ADI 930 usb adsl modem driver

matthieu castet castet.matthieu at free.fr
Sat Oct 29 18:37:41 EDT 2005


attached is the driver for USB ADSL modems based on the ADI eagle
chipset using the usb_atm infrastructure.

The managing part was taken from bsd ueagle driver, other parts were
written from scratch.

The driver uses the in-kernel firmware loader :
- to load  a first usb firmware when the modem is in pre-firmware state
- to load the dsp firmware that are swapped in host memory.
- to load CMV (configuration and management variables) when the modem
boot. (We can't use options or sysfs for this as there many possible
values. See
https://mail.gna.org/public/eagleusb-dev/2005-04/msg00031.html for a
description of some)
- to load fpga code for 930 chipset.

The device had 4 endpoints :
* 2 for data (use by usbatm). The incoming
endpoint could be iso or bulk. The modem seems buggy and produce lot's
of atm errors when using it in bulk mode for speed > 3Mbps, so iso
endpoint is need for speed > 3Mbps. At the moment iso endpoint need a
patched usbatm library and for this reason is not included in this patch.

* One bulk endpoint for uploading dsp firmware

* One irq endpoint that notices the driver
    - if we need to upload a page of the dsp firmware
    - an ack for read or write CMV and the value (for the read case).

If order to make the driver cleaner, we design synchronous
(read|write)_cmv :
-send a synchronous control message to the modem
-wait for an ack or a timeout
-return the value if needed.

In order to run these synchronous usb messages we need a kernel thread.

Please comment and consider for inclusion.

The driver has been tested  with sagem fast 800 modems with different 
eagle chipset revision and with ADI 930 since April 2005.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: ueagle-atm.patch
Type: text/x-patch
Size: 53256 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/usbatm/attachments/20051029/517a7863/ueagle-atm-0001.bin

More information about the Usbatm mailing list