]> git.ipfire.org Git - thirdparty/linux-firmware.git/commitdiff
Merge branch 'from-kernel' of git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2...
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 9 Jul 2009 21:53:24 +0000 (22:53 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 9 Jul 2009 21:55:20 +0000 (22:55 +0100)
Conflicts:
WHENCE

77 files changed:
LICENCE.agere [new file with mode: 0644]
LICENCE.atheros_firmware [new file with mode: 0644]
LICENCE.i2400m [new file with mode: 0644]
LICENCE.iwlwifi_firmware [new file with mode: 0644]
LICENCE.qla2xxx [new file with mode: 0644]
LICENSE.ralink-firmware.txt [new file with mode: 0644]
WHENCE
agere_ap_fw.bin [new file with mode: 0644]
agere_sta_fw.bin [new file with mode: 0644]
ar9170-1.fw [new file with mode: 0644]
ar9170-2.fw [new file with mode: 0644]
cxgb3/t3fw-7.0.0.bin [new file with mode: 0644]
cxgb3/t3fw-7.1.0.bin [new file with mode: 0644]
i2400m-fw-usb-1.3.sbcf [new file with mode: 0644]
i2400m-fw-usb-1.4.sbcf [new file with mode: 0644]
iwlwifi-3945-2.ucode [new file with mode: 0644]
iwlwifi-4965-2.ucode [new file with mode: 0644]
iwlwifi-5000-1.ucode [new file with mode: 0644]
iwlwifi-5150-2.ucode [new file with mode: 0644]
libertas/LICENSE [new file with mode: 0644]
libertas/cf8385.bin [new file with mode: 0644]
libertas/cf8385_helper.bin [new file with mode: 0644]
libertas/gspi8682.bin [new file with mode: 0644]
libertas/gspi8682_helper.bin [new file with mode: 0644]
libertas/gspi8686_v9.bin [new file with mode: 0644]
libertas/gspi8686_v9_helper.bin [new file with mode: 0644]
libertas/gspi8688.bin [new file with mode: 0644]
libertas/gspi8688_helper.bin [new file with mode: 0644]
libertas/sd8385.bin [new file with mode: 0644]
libertas/sd8385_helper.bin [new file with mode: 0644]
libertas/sd8682.bin [new file with mode: 0644]
libertas/sd8682_helper.bin [new file with mode: 0644]
libertas/sd8686_v8.bin [new file with mode: 0644]
libertas/sd8686_v8_helper.bin [new file with mode: 0644]
libertas/sd8686_v9.bin [new file with mode: 0644]
libertas/sd8686_v9_helper.bin [new file with mode: 0644]
libertas/sd8688.bin [new file with mode: 0644]
libertas/sd8688_helper.bin [new file with mode: 0644]
libertas/usb8388_v5.bin [new file with mode: 0644]
libertas/usb8388_v9.bin [new file with mode: 0644]
libertas/usb8682.bin [new file with mode: 0644]
mwl8k/LICENSE [new file with mode: 0644]
mwl8k/fmimage_8687.fw [new file with mode: 0644]
mwl8k/helper_8687.fw [new file with mode: 0644]
ql2100_fw.bin [new file with mode: 0644]
ql2200_fw.bin [new file with mode: 0644]
ql2300_fw.bin [new file with mode: 0644]
ql2322_fw.bin [new file with mode: 0644]
ql2400_fw.bin [new file with mode: 0644]
ql2500_fw.bin [new file with mode: 0644]
rt2561.bin [new file with mode: 0644]
rt2561s.bin [new file with mode: 0644]
rt2661.bin [new file with mode: 0644]
rt2860.bin [new file with mode: 0644]
rt2870.bin [new file with mode: 0644]
rt73.bin [new file with mode: 0644]
slicoss/gbdownload.sys [new file with mode: 0644]
slicoss/gbrcvucode.sys [new file with mode: 0644]
slicoss/oasisdbgdownload.sys [new file with mode: 0644]
slicoss/oasisdownload.sys [new file with mode: 0644]
slicoss/oasisrcvucode.sys [new file with mode: 0644]
sxg/saharadbgdownloadB.sys [new file with mode: 0644]
sxg/saharadownloadB.sys [new file with mode: 0644]
usbdux/Makefile_dux [new file with mode: 0644]
usbdux/README.dux [new file with mode: 0644]
usbdux/fx2-include.asm [new file with mode: 0644]
usbdux/usbdux_firmware.asm [new file with mode: 0644]
usbdux/usbduxfast_firmware.asm [new file with mode: 0644]
usbdux_firmware.bin [new file with mode: 0644]
usbduxfast_firmware.bin [new file with mode: 0644]
v4l-cx231xx-avcore-01.fw [new file with mode: 0644]
v4l-cx23418-apu.fw [new file with mode: 0644]
v4l-cx23418-cpu.fw [new file with mode: 0644]
v4l-cx23418-dig.fw [new file with mode: 0644]
v4l-cx23885-avcore-01.fw [new file with mode: 0644]
v4l-cx23885-enc.fw [new file with mode: 0644]
v4l-cx25840.fw [new file with mode: 0644]

diff --git a/LICENCE.agere b/LICENCE.agere
new file mode 100644 (file)
index 0000000..c11466c
--- /dev/null
@@ -0,0 +1,77 @@
+agere_sta_fw.bin -- 9.48 Hermes I
+agere_ap_fw.bin  -- 9.48 Hermes I
+
+The above firmware images were compiled from the Agere linux driver
+wl_lkm_718_release.tar.gz, and dumped. The driver is coverred by the
+following copyright and software license.
+
+ * SOFTWARE LICENSE
+ *
+ * This software is provided subject to the following terms and conditions,
+ * which you should read carefully before using the software.  Using this
+ * software indicates your acceptance of these terms and conditions.  If you do
+ * not agree with these terms and conditions, do not use the software.
+ *
+ * COPYRIGHT © 1994 - 1995  by AT&T.                All Rights Reserved
+ * COPYRIGHT © 1996 - 2000 by Lucent Technologies.  All Rights Reserved
+ * COPYRIGHT © 2001 - 2004  by Agere Systems Inc.   All Rights Reserved
+ * All rights reserved.
+ *
+ * Redistribution and use in source or binary forms, with or without
+ * modifications, are permitted provided that the following conditions are met:
+ *
+ * . Redistributions of source code must retain the above copyright notice, this
+ *    list of conditions and the following Disclaimer as comments in the code as
+ *    well as in the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * . Redistributions in binary form must reproduce the above copyright notice,
+ *    this list of conditions and the following Disclaimer in the documentation
+ *    and/or other materials provided with the distribution.
+ *
+ * . Neither the name of Agere Systems Inc. nor the names of the contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, INFRINGEMENT AND THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  ANY
+ * USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE IS SOLELY AT THE USERS OWN
+ * RISK. IN NO EVENT SHALL AGERE SYSTEMS INC. OR CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, INCLUDING, BUT NOT LIMITED TO, CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+
+The following statement from Agere clarifies the status of the firmware
+
+---
+I would like to confirm that the two drivers; Linux LKM Wireless Driver
+Source Code, Version 7.18 and Linux LKM Wireless Driver Source Code,
+Version 7.22 comply with Open Source BSD License. Therefore the source
+code can be distributed in unmodified or modified form consistent with
+the terms of the license.
+
+The Linux driver architecture was based on two modules, the MSF (Module
+specific functions) and the HCF (Hardware Control Functions).  Included
+in the HCF is run-time firmware (binary format) which is downloaded into
+the RAM of the Hermes 1/2/2.5 WMAC.
+
+This hex coded firmware is not based on any open source software and
+hence it is not subject to any Open Source License.  The firmware was
+developed by Agere and runs on the DISC processor embedded within the
+Hermes 1/2/2.5 Wireless MAC devices. 
+
+Hope this helps.
+
+Sincerely,
+
+Viren Pathare
+Intellectual Property Licensing Manager
+Agere
+---
diff --git a/LICENCE.atheros_firmware b/LICENCE.atheros_firmware
new file mode 100644 (file)
index 0000000..40d434b
--- /dev/null
@@ -0,0 +1,40 @@
+Copyright (c) 2008, Atheros Communications, Inc.
+All rights reserved.
+
+Redistribution.  Redistribution and use in binary form, without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions must reproduce the above copyright notice and the
+  following disclaimer in the documentation and/or other materials
+  provided with the distribution.
+
+* Neither the name of Atheros Communications, Inc. nor the names of
+  its suppliers may be used to endorse or promote products derived
+  from this software without specific prior written permission.
+
+* No reverse engineering, decompilation, or disassembly of this
+  software is permitted.
+
+Limited patent license.  Atheros Communications, Inc. grants a
+world-wide, royalty-free, non-exclusive license under patents it
+now or hereafter owns or controls to make, have made, use, import,
+offer to sell and sell ("Utilize") this software, but solely to
+the extent that any such patent is necessary to Utilize the software
+alone, or in combination with an operating system licensed under an
+approved Open Source license as listed by the Open Source Initiative
+at http://opensource.org/licenses.  The patent license shall not
+apply to any other combinations which include this software. No
+hardware per se is licensed hereunder.
+
+DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENCE.i2400m b/LICENCE.i2400m
new file mode 100644 (file)
index 0000000..263167f
--- /dev/null
@@ -0,0 +1,43 @@
+Copyright (c) 2008, Intel Corporation.
+
+All rights reserved.
+
+Redistribution.  
+
+Redistribution and use in binary form, without modification, are
+permitted provided that the following conditions are met:
+
+ * Redistributions must reproduce the above copyright notice and the
+   following disclaimer in the documentation and/or other materials
+   provided with the distribution.
+
+ * Neither the name of Intel Corporation nor the names of its
+   suppliers may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+
+ * No reverse engineering, decompilation, or disassembly of this
+   software is permitted.
+
+Limited patent license.
+
+Intel Corporation grants a world-wide, royalty-free, non-exclusive
+license under patents it now or hereafter owns or controls to make,
+have made, use, import, offer to sell and sell (“Utilize”) this
+software, but solely to the extent that any such patent is necessary
+to Utilize the software alone.  The patent license shall not apply to
+any combinations which include this software.  No hardware per se is
+licensed hereunder.
+
+DISCLAIMER.  
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENCE.iwlwifi_firmware b/LICENCE.iwlwifi_firmware
new file mode 100644 (file)
index 0000000..938004c
--- /dev/null
@@ -0,0 +1,39 @@
+Copyright (c) 2006-2009, Intel Corporation.
+All rights reserved.
+
+Redistribution.  Redistribution and use in binary form, without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions must reproduce the above copyright notice and the
+  following disclaimer in the documentation and/or other materials
+  provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its suppliers
+  may be used to endorse or promote products derived from this software
+  without specific prior written permission.
+* No reverse engineering, decompilation, or disassembly of this software
+  is permitted.
+
+Limited patent license.  Intel Corporation grants a world-wide,
+royalty-free, non-exclusive license under patents it now or hereafter
+owns or controls to make, have made, use, import, offer to sell and
+sell ("Utilize") this software, but solely to the extent that any
+such patent is necessary to Utilize the software alone, or in
+combination with an operating system licensed under an approved Open
+Source license as listed by the Open Source Initiative at
+http://opensource.org/licenses.  The patent license shall not apply to
+any other combinations which include this software.  No hardware per
+se is licensed hereunder.
+
+DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/LICENCE.qla2xxx b/LICENCE.qla2xxx
new file mode 100644 (file)
index 0000000..f669ae0
--- /dev/null
@@ -0,0 +1,39 @@
+Copyright (c)  2003-2006 QLogic Corporation
+QLogic Linux Fibre Channel HBA Firmware
+
+You may redistribute the hardware specific firmware binary file
+under the following terms:
+
+       1. Redistribution of source code (only if applicable),
+          must retain the above copyright notice, this list of
+          conditions and the following disclaimer.
+
+       2. Redistribution in binary form must reproduce the above
+          copyright notice, this list of conditions and the
+          following disclaimer in the documentation and/or other
+          materials provided with the distribution.
+
+       3. The name of QLogic Corporation may not be used to
+          endorse or promote products derived from this software
+          without specific prior written permission
+
+REGARDLESS OF WHAT LICENSING MECHANISM IS USED OR APPLICABLE,
+THIS PROGRAM IS PROVIDED BY QLOGIC CORPORATION "AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+USER ACKNOWLEDGES AND AGREES THAT USE OF THIS PROGRAM WILL NOT
+CREATE OR GIVE GROUNDS FOR A LICENSE BY IMPLICATION, ESTOPPEL, OR
+OTHERWISE IN ANY INTELLECTUAL PROPERTY RIGHTS (PATENT, COPYRIGHT,
+TRADE SECRET, MASK WORK, OR OTHER PROPRIETARY RIGHT) EMBODIED IN
+ANY OTHER QLOGIC HARDWARE OR SOFTWARE EITHER SOLELY OR IN
+COMBINATION WITH THIS PROGRAM.
diff --git a/LICENSE.ralink-firmware.txt b/LICENSE.ralink-firmware.txt
new file mode 100644 (file)
index 0000000..39e3c52
--- /dev/null
@@ -0,0 +1,39 @@
+Copyright (c) 2007, Ralink Technology Corporation \r
+All rights reserved.\r
+\r
+Redistribution.  Redistribution and use in binary form, without \r
+modification, are permitted provided that the following conditions are \r
+met:\r
+\r
+* Redistributions must reproduce the above copyright notice and the \r
+  following disclaimer in the documentation and/or other materials \r
+  provided with the distribution. \r
+* Neither the name of Ralink Technology Corporation nor the names of its\r
+  suppliers may be used to endorse or promote products derived from this\r
+  software without specific prior written permission. \r
+* No reverse engineering, decompilation, or disassembly of this software \r
+  is permitted.\r
+\r
+Limited patent license. Ralink Technology Corporation grants a world-wide, \r
+royalty-free, non-exclusive license under patents it now or hereafter \r
+owns or controls to make, have made, use, import, offer to sell and \r
+sell ("Utilize") this software, but solely to the extent that any \r
+such patent is necessary to Utilize the software alone, or in \r
+combination with an operating system licensed under an approved Open \r
+Source license as listed by the Open Source Initiative at \r
+http://opensource.org/licenses.  The patent license shall not apply to \r
+any other combinations which include this software.  No hardware per \r
+se is licensed hereunder.\r
+\r
+DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND \r
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, \r
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND \r
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE \r
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, \r
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS \r
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND \r
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR \r
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE \r
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH \r
+DAMAGE.\r
diff --git a/WHENCE b/WHENCE
index 0f5649a08c0c0d5b2802c10c94e769a4b34043be..b6f3c6d0fac87f86e0df8c1d7c46e1fba018502b 100644 (file)
--- a/WHENCE
+++ b/WHENCE
@@ -89,6 +89,7 @@ Licence: Allegedly GPLv2+, but no source visible. Marked:
   Copyright (C) 2001 Qlogic Corporation (www.qlogic.com)
 
 --------------------------------------------------------------------------
+
 Driver: smctr -- SMC ISA/MCA Token Ring adapter
 
 File: tr_smctr.bin
@@ -398,6 +399,39 @@ Found in hex form in kernel source.
 
 --------------------------------------------------------------------------
 
+Driver: SCSI_QLA_FC - QLogic QLA2XXX Fibre Channel
+
+File: ql2100_fw.bin -- 1.19.38 TP
+File: ql2200_fw.bin -- 2.02.08 TP
+File: ql2300_fw.bin -- 3.03.20 IPX
+File: ql2322_fw.bin -- 3.03.20 IPX
+File: ql2400_fw.bin -- 4.04.04 IP
+File: ql2500_fw.bin -- 4.04.04
+
+Licence: Redistributable. See LICENCE.qla2xxx for details
+
+Available from ftp://ftp.qlogic.com/outgoing/linux/firmware/
+
+--------------------------------------------------------------------------
+
+Driver: ORINOCO - Agere/Prism/Symbol Orinoco support
+
+File: agere_sta_fw.bin -- 9.48 Hermes I
+File: agere_ap_fw.bin  -- 9.48 Hermes I
+
+Licence: Redistributable. See LICENCE.agere for details
+
+--------------------------------------------------------------------------
+
+Driver: AR9170 - Atheros 802.11n "otus" USB
+
+File: ar9170-1.fw
+File: ar9170-2.fw
+
+License: Redistributable. See LICENCE.atheros_firmware for details
+
+--------------------------------------------------------------------------
+
 Driver: CASSINI - Sun Cassini
 
 File: sun/cassini.bin
@@ -408,11 +442,64 @@ Found in hex form in kernel source.
 
 --------------------------------------------------------------------------
 
+Driver: SLICOSS - Alacritech IS-NIC products
+
+File: slicoss/gbdownload.sys
+File: slicoss/gbrcvucode.sys
+File: slicoss/oasisdbgdownload.sys
+File: slicoss/oasisdownload.sys
+File: slicoss/oasisrcvucode.sys
+
+Licence:
+               Copyright (C) 1999-2009 Alacritech, Inc.
+
+       as an unpublished work. This notice does not imply unrestricted or
+       public access to the source code from which this firmware image is
+       derived.  Except as noted below this firmware image may not be
+       reproduced, used, sold or transferred to any third party without
+       Alacritech's prior written consent.  All Rights Reserved.
+
+       Permission is hereby granted for the distribution of this firmware
+       image as part of a Linux or other Open Source operating system kernel
+       in text or binary form as required.
+
+       This firmware may not be modified.
+
+Found in hex form in kernel source.
+
+--------------------------------------------------------------------------
+
+Driver: SXG - Alacritech IS-NIC products
+
+File: sxg/saharadownloadB.sys
+File: sxg/saharadbgdownloadB.sys
+
+Licence:
+               Copyright (C) 1999-2009 Alacritech, Inc.
+
+       as an unpublished work. This notice does not imply unrestricted or
+       public access to the source code from which this firmware image is
+       derived.  Except as noted below this firmware image may not be
+       reproduced, used, sold or transferred to any third party without
+       Alacritech's prior written consent.  All Rights Reserved.
+
+       Permission is hereby granted for the distribution of this firmware
+       image as part of a Linux or other Open Source operating system kernel
+       in text or binary form as required.
+
+       This firmware may not be modified.
+
+Found in hex form in kernel source.
+
+--------------------------------------------------------------------------
+
 Driver: cxgb3 - Chelsio Terminator 3 1G/10G Ethernet adapter
 
-File: cxgb3/t3b_psram-1.1.0.bin.ihex
-File: cxgb3/t3c_psram-1.1.0.bin.ihex
-file: cxgb3/t3fw-7.4.0.bin.ihex
+File: cxgb3/t3b_psram-1.1.0.bin
+File: cxgb3/t3c_psram-1.1.0.bin
+File: cxgb3/t3fw-7.0.0.bin
+File: cxgb3/t3fw-7.1.0.bin
+file: cxgb3/t3fw-7.4.0.bin
 
 License: GPLv2 or OpenIB.org BSD license, no source visible
 
@@ -480,6 +567,92 @@ Found in hex form in kernel source, with the following notice:
 
 --------------------------------------------------------------------------
 
+Driver: i2400m-usb - Intel 2400 Wireless WiMAX Connection over USB
+
+File: i2400m-fw-usb-1.3.sbcf
+File: i2400m-fw-usb-1.4.sbcf
+
+License: Redistributable. See LICENCE.i2400m for details
+
+Also available from http://linuxwimax.org/Download
+
+--------------------------------------------------------------------------
+
+Driver: libertas - Marvell Libertas fullmac-type 802.11b/g cards
+
+File: cf8385.bin
+File: cf8385_helper.bin
+File: gspi8682.bin
+File: gspi8682_helper.bin
+File: gspi8686_v9.bin
+File: gspi8686_v9_helper.bin
+File: gspi8688.bin
+File: gspi8688_helper.bin
+File: sd8385.bin
+File: sd8385_helper.bin
+File: sd8682.bin
+File: sd8682_helper.bin
+File: sd8686_v8.bin
+File: sd8686_v8_helper.bin
+File: sd8686_v9.bin
+File: sd8686_v9_helper.bin
+File: sd8688.bin
+File: sd8688_helper.bin
+File: usb8388_v5.bin
+File: usb8388_v9.bin
+File: usb8682.bin
+
+License: Redistributable. See libertas/LICENSE for details.  Extracted from
+Linux driver tarballs downloaded from Marvell's "Extranet" with permission.
+
+--------------------------------------------------------------------------
+
+Driver: mwl8k - Marvell Libertas softmac-type 802.11b/g cards
+
+File: fmimage_8687.fw
+File: helper_8687.fw
+
+License: Redistributable. See mwl8k/LICENSE for details.  Downloaded from
+Marvell's "Extranet" with permission.
+
+--------------------------------------------------------------------------
+
+
+Driver: iwlwifi - Intel Wireless Wifi
+
+File: iwlwifi-3945-2.ucode
+Info: v15.32.2.9
+
+File: iwlwifi-4965-2.ucode
+Info: v228.57.2.23
+
+File: iwlwifi-5000-1.ucode
+Info: v5.4.A.11 (aka v5.4.1.16)
+
+File: iwlwifi-5150-2.ucode
+Info: v8.24.2.2
+
+License: Redistributable. See LICENCE.iwlwifi_firmware for details
+
+Also available from http://intellinuxwireless.org/?n=Downloads
+
+--------------------------------------------------------------------------
+
+Driver: cx231xx - Conexant Cx23100/101/102 USB broadcast A/V decoder
+
+File: v4l-cx231xx-avcore-01.fw
+
+License:
+  Conexant grants permission to use and redistribute these firmware
+  files for use with Conexant devices, but not as a part of the Linux
+  kernel or in any other form which would require these files themselves
+  to be covered by the terms of the GNU General Public License.
+  These firmware files are distributed in the hope that they will be
+  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+--------------------------------------------------------------------------
+
 Driver: TEHUTI - Tehuti Networks 10G Ethernet
 
 File: tehuti/bdx.bin
@@ -618,6 +791,54 @@ Found in hex form in kernel source.
 
 --------------------------------------------------------------------------
 
+Driver: cx23418 - Conexant PCI Broadcast A/V with MPEG encoder
+
+File: v4l-cx23418-apu.fw
+File: v4l-cx23418-cpu.fw
+File: v4l-cx23418-dig.fw
+
+License:
+  Conexant grants permission to use and redistribute these firmware
+  files for use with Conexant devices, but not as a part of the Linux
+  kernel or in any other form which would require these files themselves
+  to be covered by the terms of the GNU General Public License.
+  These firmware files are distributed in the hope that they will be
+  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+--------------------------------------------------------------------------
+
+Driver: cx23885 - Conexant PCI Express Broadcast A/V decoder
+
+File: v4l-cx23885-avcore-01.fw
+File: v4l-cx23885-enc.fw
+
+License:
+  Conexant grants permission to use and redistribute these firmware
+  files for use with Conexant devices, but not as a part of the Linux
+  kernel or in any other form which would require these files themselves
+  to be covered by the terms of the GNU General Public License.
+  These firmware files are distributed in the hope that they will be
+  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+--------------------------------------------------------------------------
+
+Driver: cx23840 - Conexant sideport Broadcast A/V decoder
+
+File: v4l-cx25840.fw
+
+License:
+  Conexant grants permission to use and redistribute these firmware
+  files for use with Conexant devices, but not as a part of the Linux
+  kernel or in any other form which would require these files themselves
+  to be covered by the terms of the GNU General Public License.
+  These firmware files are distributed in the hope that they will be
+  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+--------------------------------------------------------------------------
+
 Driver: SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
 
 File: qlogic/isp1000.bin
@@ -640,8 +861,8 @@ Found in hex form in kernel source.
 
 Driver: bnx2x: Broadcom Everest
 
-File: bnx2x-e1-4.8.53.0.fw.ihex
-File: bnx2x-e1h-4.8.53.0.fw.ihex
+File: bnx2x-e1-4.8.53.0.fw
+File: bnx2x-e1h-4.8.53.0.fw
 
 License:
   Copyright (c) 2007-2009 Broadcom Corporation
@@ -698,3 +919,55 @@ Found in hex form in kernel source, with the following comment:
    Copyright (c) 1998-2002 by Paul Davis <pbd@op.net>
 
 --------------------------------------------------------------------------
+
+Driver: rt61pci - Ralink RT2561, RT2561S, RT2661 wireless MACs
+
+File: rt2561.bin rt2561s.bin rt2661.bin
+
+Licence: Redistributable. See LICENSE.ralink-firmware.txt for details
+
+Downloaded from http://www.ralinktech.com/ralink/Home/Support/Linux.html
+
+--------------------------------------------------------------------------
+
+Driver: rt73usb - Ralink RT2571W, RT2671 wireless MACs
+
+File: rt73.bin
+
+Licence: Redistributable. See LICENSE.ralink-firmware.txt for details
+
+Downloaded from http://www.ralinktech.com/ralink/Home/Support/Linux.html
+
+--------------------------------------------------------------------------
+
+Driver: rt2860sta - Ralink RT2860, RT2890 wireless MACs
+
+File: rt2860.bin
+
+Licence: Redistributable. See LICENSE.ralink-firmware.txt for details
+
+Downloaded from http://www.ralinktech.com/ralink/Home/Support/Linux.html
+
+--------------------------------------------------------------------------
+
+Driver: rt2870sta - Ralink RT2870 wireless MACs
+
+File: rt2870.bin
+
+Licence: Redistributable. See LICENSE.ralink-firmware.txt for details
+
+Downloaded from http://www.ralinktech.com/ralink/Home/Support/Linux.html
+
+--------------------------------------------------------------------------
+
+Driver: usbdux/usbduxfast - usbdux data acquisition cards
+
+File: usbdux_firmware.bin
+File: usbdixfast_firmware.bin
+Source: usbdux/fx2-include.asm
+Source: usbdux/usbduxfast_firmware.asm
+Source: usbdux/usbdux_firmware.asm
+
+Licence: GPLv2. See source code in usbdux/ subdirectory.
+
+Provided from the author, Bernd Porr <BerndPorr@f2s.com>
diff --git a/agere_ap_fw.bin b/agere_ap_fw.bin
new file mode 100644 (file)
index 0000000..8375c94
Binary files /dev/null and b/agere_ap_fw.bin differ
diff --git a/agere_sta_fw.bin b/agere_sta_fw.bin
new file mode 100644 (file)
index 0000000..bae000f
Binary files /dev/null and b/agere_sta_fw.bin differ
diff --git a/ar9170-1.fw b/ar9170-1.fw
new file mode 100644 (file)
index 0000000..d422bdb
Binary files /dev/null and b/ar9170-1.fw differ
diff --git a/ar9170-2.fw b/ar9170-2.fw
new file mode 100644 (file)
index 0000000..aa0e807
Binary files /dev/null and b/ar9170-2.fw differ
diff --git a/cxgb3/t3fw-7.0.0.bin b/cxgb3/t3fw-7.0.0.bin
new file mode 100644 (file)
index 0000000..cb48e4a
Binary files /dev/null and b/cxgb3/t3fw-7.0.0.bin differ
diff --git a/cxgb3/t3fw-7.1.0.bin b/cxgb3/t3fw-7.1.0.bin
new file mode 100644 (file)
index 0000000..f1285ce
Binary files /dev/null and b/cxgb3/t3fw-7.1.0.bin differ
diff --git a/i2400m-fw-usb-1.3.sbcf b/i2400m-fw-usb-1.3.sbcf
new file mode 100644 (file)
index 0000000..e690305
Binary files /dev/null and b/i2400m-fw-usb-1.3.sbcf differ
diff --git a/i2400m-fw-usb-1.4.sbcf b/i2400m-fw-usb-1.4.sbcf
new file mode 100644 (file)
index 0000000..93079c3
Binary files /dev/null and b/i2400m-fw-usb-1.4.sbcf differ
diff --git a/iwlwifi-3945-2.ucode b/iwlwifi-3945-2.ucode
new file mode 100644 (file)
index 0000000..b8806a2
Binary files /dev/null and b/iwlwifi-3945-2.ucode differ
diff --git a/iwlwifi-4965-2.ucode b/iwlwifi-4965-2.ucode
new file mode 100644 (file)
index 0000000..8cf429d
Binary files /dev/null and b/iwlwifi-4965-2.ucode differ
diff --git a/iwlwifi-5000-1.ucode b/iwlwifi-5000-1.ucode
new file mode 100644 (file)
index 0000000..5519149
Binary files /dev/null and b/iwlwifi-5000-1.ucode differ
diff --git a/iwlwifi-5150-2.ucode b/iwlwifi-5150-2.ucode
new file mode 100644 (file)
index 0000000..04d6586
Binary files /dev/null and b/iwlwifi-5150-2.ucode differ
diff --git a/libertas/LICENSE b/libertas/LICENSE
new file mode 100644 (file)
index 0000000..1fd8766
--- /dev/null
@@ -0,0 +1,19 @@
+FIRMWARE LICENSE TERMS
+
+
+Copyright (c) Marvell International Ltd.
+
+All rights reserved.
+
+Redistribution. Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met:
+
+* Redistributions must reproduce the above copyright notice and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+* Neither the name of Marvell International Ltd. nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission.
+
+* No reverse engineering, decompilation, or disassembly of this software is permitted.
+
+Limited patent license. Marvell International Ltd. grants a world-wide, royalty-free, non-exclusive license under patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ("Utilize") this software, but solely to the extent that any such patent is necessary to Utilize the software alone, or in combination with an operating system licensed under an approved Open Source license as listed by the Open Source Initiative at http://opensource.org/licenses. The patent license shall not apply to any other combinations which include this software. No hardware per se is licensed hereunder.
+
+DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/libertas/cf8385.bin b/libertas/cf8385.bin
new file mode 100644 (file)
index 0000000..463c02c
Binary files /dev/null and b/libertas/cf8385.bin differ
diff --git a/libertas/cf8385_helper.bin b/libertas/cf8385_helper.bin
new file mode 100644 (file)
index 0000000..349ca99
Binary files /dev/null and b/libertas/cf8385_helper.bin differ
diff --git a/libertas/gspi8682.bin b/libertas/gspi8682.bin
new file mode 100644 (file)
index 0000000..92199c0
Binary files /dev/null and b/libertas/gspi8682.bin differ
diff --git a/libertas/gspi8682_helper.bin b/libertas/gspi8682_helper.bin
new file mode 100644 (file)
index 0000000..424cfb3
Binary files /dev/null and b/libertas/gspi8682_helper.bin differ
diff --git a/libertas/gspi8686_v9.bin b/libertas/gspi8686_v9.bin
new file mode 100644 (file)
index 0000000..58dc03d
Binary files /dev/null and b/libertas/gspi8686_v9.bin differ
diff --git a/libertas/gspi8686_v9_helper.bin b/libertas/gspi8686_v9_helper.bin
new file mode 100644 (file)
index 0000000..424cfb3
Binary files /dev/null and b/libertas/gspi8686_v9_helper.bin differ
diff --git a/libertas/gspi8688.bin b/libertas/gspi8688.bin
new file mode 100644 (file)
index 0000000..fb7bb49
Binary files /dev/null and b/libertas/gspi8688.bin differ
diff --git a/libertas/gspi8688_helper.bin b/libertas/gspi8688_helper.bin
new file mode 100644 (file)
index 0000000..424cfb3
Binary files /dev/null and b/libertas/gspi8688_helper.bin differ
diff --git a/libertas/sd8385.bin b/libertas/sd8385.bin
new file mode 100644 (file)
index 0000000..8a28395
Binary files /dev/null and b/libertas/sd8385.bin differ
diff --git a/libertas/sd8385_helper.bin b/libertas/sd8385_helper.bin
new file mode 100644 (file)
index 0000000..af658c8
Binary files /dev/null and b/libertas/sd8385_helper.bin differ
diff --git a/libertas/sd8682.bin b/libertas/sd8682.bin
new file mode 100644 (file)
index 0000000..ea0fb93
Binary files /dev/null and b/libertas/sd8682.bin differ
diff --git a/libertas/sd8682_helper.bin b/libertas/sd8682_helper.bin
new file mode 100644 (file)
index 0000000..746ae0b
Binary files /dev/null and b/libertas/sd8682_helper.bin differ
diff --git a/libertas/sd8686_v8.bin b/libertas/sd8686_v8.bin
new file mode 100644 (file)
index 0000000..aef7bbc
Binary files /dev/null and b/libertas/sd8686_v8.bin differ
diff --git a/libertas/sd8686_v8_helper.bin b/libertas/sd8686_v8_helper.bin
new file mode 100644 (file)
index 0000000..c2ddfbe
Binary files /dev/null and b/libertas/sd8686_v8_helper.bin differ
diff --git a/libertas/sd8686_v9.bin b/libertas/sd8686_v9.bin
new file mode 100644 (file)
index 0000000..5cada25
Binary files /dev/null and b/libertas/sd8686_v9.bin differ
diff --git a/libertas/sd8686_v9_helper.bin b/libertas/sd8686_v9_helper.bin
new file mode 100644 (file)
index 0000000..f450ee6
Binary files /dev/null and b/libertas/sd8686_v9_helper.bin differ
diff --git a/libertas/sd8688.bin b/libertas/sd8688.bin
new file mode 100644 (file)
index 0000000..199e32a
Binary files /dev/null and b/libertas/sd8688.bin differ
diff --git a/libertas/sd8688_helper.bin b/libertas/sd8688_helper.bin
new file mode 100644 (file)
index 0000000..746ae0b
Binary files /dev/null and b/libertas/sd8688_helper.bin differ
diff --git a/libertas/usb8388_v5.bin b/libertas/usb8388_v5.bin
new file mode 100644 (file)
index 0000000..d98b089
Binary files /dev/null and b/libertas/usb8388_v5.bin differ
diff --git a/libertas/usb8388_v9.bin b/libertas/usb8388_v9.bin
new file mode 100644 (file)
index 0000000..38f28ca
Binary files /dev/null and b/libertas/usb8388_v9.bin differ
diff --git a/libertas/usb8682.bin b/libertas/usb8682.bin
new file mode 100644 (file)
index 0000000..f969104
Binary files /dev/null and b/libertas/usb8682.bin differ
diff --git a/mwl8k/LICENSE b/mwl8k/LICENSE
new file mode 100644 (file)
index 0000000..3224e1b
--- /dev/null
@@ -0,0 +1,18 @@
+FIRMWARE LICENSE TERMS
+
+
+Copyright (c) Marvell International Ltd.
+
+All rights reserved.
+
+Redistribution. Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met:
+
+* Redistributions must reproduce the above copyright notice and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+* Neither the name of Marvell International Ltd. nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission.
+
+* No reverse engineering, decompilation, or disassembly of this software is permitted.
+
+Limited patent license. Marvell International Ltd. grants a world-wide, royalty-free, non-exclusive license under patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ("Utilize") this software, but solely to the extent that any such patent is necessary to Utilize the software alone, or in combination with an operating system licensed under an approved Open Source license as listed by the Open Source Initiative at http://opensource.org/licenses. The patent license shall not apply to any other combinations which include this software. No hardware per se is licensed hereunder.
+
+DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/mwl8k/fmimage_8687.fw b/mwl8k/fmimage_8687.fw
new file mode 100644 (file)
index 0000000..f0f16d5
Binary files /dev/null and b/mwl8k/fmimage_8687.fw differ
diff --git a/mwl8k/helper_8687.fw b/mwl8k/helper_8687.fw
new file mode 100644 (file)
index 0000000..a0221fb
Binary files /dev/null and b/mwl8k/helper_8687.fw differ
diff --git a/ql2100_fw.bin b/ql2100_fw.bin
new file mode 100644 (file)
index 0000000..a2b51b8
Binary files /dev/null and b/ql2100_fw.bin differ
diff --git a/ql2200_fw.bin b/ql2200_fw.bin
new file mode 100644 (file)
index 0000000..87cc832
Binary files /dev/null and b/ql2200_fw.bin differ
diff --git a/ql2300_fw.bin b/ql2300_fw.bin
new file mode 100644 (file)
index 0000000..681b9a5
Binary files /dev/null and b/ql2300_fw.bin differ
diff --git a/ql2322_fw.bin b/ql2322_fw.bin
new file mode 100644 (file)
index 0000000..8eabf6d
Binary files /dev/null and b/ql2322_fw.bin differ
diff --git a/ql2400_fw.bin b/ql2400_fw.bin
new file mode 100644 (file)
index 0000000..998a457
Binary files /dev/null and b/ql2400_fw.bin differ
diff --git a/ql2500_fw.bin b/ql2500_fw.bin
new file mode 100644 (file)
index 0000000..59b4987
Binary files /dev/null and b/ql2500_fw.bin differ
diff --git a/rt2561.bin b/rt2561.bin
new file mode 100644 (file)
index 0000000..b14bad3
Binary files /dev/null and b/rt2561.bin differ
diff --git a/rt2561s.bin b/rt2561s.bin
new file mode 100644 (file)
index 0000000..b0f7950
Binary files /dev/null and b/rt2561s.bin differ
diff --git a/rt2661.bin b/rt2661.bin
new file mode 100644 (file)
index 0000000..fe52a0b
Binary files /dev/null and b/rt2661.bin differ
diff --git a/rt2860.bin b/rt2860.bin
new file mode 100644 (file)
index 0000000..778a771
Binary files /dev/null and b/rt2860.bin differ
diff --git a/rt2870.bin b/rt2870.bin
new file mode 100644 (file)
index 0000000..9abc971
Binary files /dev/null and b/rt2870.bin differ
diff --git a/rt73.bin b/rt73.bin
new file mode 100644 (file)
index 0000000..1e395dd
Binary files /dev/null and b/rt73.bin differ
diff --git a/slicoss/gbdownload.sys b/slicoss/gbdownload.sys
new file mode 100644 (file)
index 0000000..60ab75b
Binary files /dev/null and b/slicoss/gbdownload.sys differ
diff --git a/slicoss/gbrcvucode.sys b/slicoss/gbrcvucode.sys
new file mode 100644 (file)
index 0000000..855b23e
Binary files /dev/null and b/slicoss/gbrcvucode.sys differ
diff --git a/slicoss/oasisdbgdownload.sys b/slicoss/oasisdbgdownload.sys
new file mode 100644 (file)
index 0000000..4ae5023
Binary files /dev/null and b/slicoss/oasisdbgdownload.sys differ
diff --git a/slicoss/oasisdownload.sys b/slicoss/oasisdownload.sys
new file mode 100644 (file)
index 0000000..cdc2cc1
Binary files /dev/null and b/slicoss/oasisdownload.sys differ
diff --git a/slicoss/oasisrcvucode.sys b/slicoss/oasisrcvucode.sys
new file mode 100644 (file)
index 0000000..a2b9bde
Binary files /dev/null and b/slicoss/oasisrcvucode.sys differ
diff --git a/sxg/saharadbgdownloadB.sys b/sxg/saharadbgdownloadB.sys
new file mode 100644 (file)
index 0000000..d3b3ed1
Binary files /dev/null and b/sxg/saharadbgdownloadB.sys differ
diff --git a/sxg/saharadownloadB.sys b/sxg/saharadownloadB.sys
new file mode 100644 (file)
index 0000000..c48cb92
Binary files /dev/null and b/sxg/saharadownloadB.sys differ
diff --git a/usbdux/Makefile_dux b/usbdux/Makefile_dux
new file mode 100644 (file)
index 0000000..3098d5b
--- /dev/null
@@ -0,0 +1,19 @@
+# (c) Bernd Porr
+# GNU public license
+# no warranty
+#
+
+all: as31 usbduxfast_firmware.bin usbdux_firmware.bin
+
+as31:
+       make -C as31-2.1
+
+usbduxfast_firmware.bin: fx2-include.asm usbduxfast_firmware.asm as31
+       as31-2.1/as31 -Fbin usbduxfast_firmware.asm
+
+usbdux_firmware.bin: fx2-include.asm usbdux_firmware.asm as31
+       as31-2.1/as31 -Fbin usbdux_firmware.asm
+
+clean:
+       rm -f *.bin *~ *.lst *.bin
+       make -C as31-2.1 clean
diff --git a/usbdux/README.dux b/usbdux/README.dux
new file mode 100644 (file)
index 0000000..6ff3c18
--- /dev/null
@@ -0,0 +1,15 @@
+To compile the firmware for the USBDUX and USBDUXfast
+-----------------------------------------------------
+Download the as31 from:
+
+http://www.berndporr.me.uk/as31/
+
+(this is a patched version of as31 which supports an
+include directive).
+
+Install it in this directory.
+
+Then run "make -f Makefile_dux".
+
+Feedback:
+BerndPorr@f2s.com
diff --git a/usbdux/fx2-include.asm b/usbdux/fx2-include.asm
new file mode 100644 (file)
index 0000000..7da6975
--- /dev/null
@@ -0,0 +1,164 @@
+; rev 0.9
+; (c) Bernd Porr, Bernd.Porr@cn.stir.ac.uk
+; GPL, GNU public license
+;
+;   This program is free software; you can redistribute it and/or modify
+;   it under the terms of the GNU General Public License as published by
+;   the Free Software Foundation; either version 2 of the License, or
+;   (at your option) any later version.
+;
+;   This program is distributed in the hope that it will be useful,
+;   but WITHOUT ANY WARRANTY; without even the implied warranty of
+;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;   GNU General Public License for more details.
+;
+;   You should have received a copy of the GNU General Public License
+;   along with this program; if not, write to the Free Software
+;   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+;
+; In conjunction with the as31.
+; Include-file for the FX2 by Cypress. The rest of the regs is defined
+; by the as31 itself.
+;
+; from the TRM of the FX2:
+;
+       ;;  CPU control
+       .equ    CPUCS,0E600H
+       .equ    REVCTL,0E60BH
+       ;; interface config
+       .equ    IFCONFIG,0E601H
+       .equ    FIFORESET,0E604H
+       ;; Endpoint configs
+       .equ    EP1OUTCFG,0E610H
+       .equ    EP1INCFG,0E611H
+       .equ    EP2CFG,0E612H
+       .equ    EP4CFG,0E613H
+       .equ    EP6CFG,0E614H
+       .equ    EP8CFG,0E615H
+       ;; packets per frame, always one for USB 1.1
+       .equ    EP2ISOINPKTS,0E640H
+       .equ    EP4ISOINPKTS,0E641H
+       .equ    EP6ISOINPKTS,0E642H
+       .equ    EP8ISOINPKTS,0E643H
+       ;; endpoint byte counts
+       .equ    EP1OUTBC,0E68DH
+       .equ    EP1INBC,0E68FH
+       .equ    EP1INCS,0E6A2H
+       .equ    EP2BCH,0E690H
+       .equ    EP2BCL,0E691H
+       .equ    EP4BCH,0E694H
+       .equ    EP4BCL,0E695H
+       .equ    EP6BCH,0E698H
+       .equ    EP6BCL,0E699H
+       .equ    EP8BCH,0E69CH
+       .equ    EP8BCL,0E69DH
+       ;;
+       .equ    EP4AUTOINLENH,0E622H
+       .equ    EP4AUTOINLENL,0E623H
+       .equ    EP6AUTOINLENH,0E624H
+       .equ    EP6AUTOINLENL,0E625H
+       .equ    EP2FIFOCFG,0E618H
+       .equ    EP4FIFOCFG,0E619H
+       .equ    EP6FIFOCFG,0E61AH
+       .equ    EP8FIFOCFG,0E61BH
+       ;; 
+       .equ    INPKTEND,0E648H
+       .equ    GPIFCTLCFG,0E6C3H
+       .equ    GPIFABORT,0E6F5H
+       .equ    GPIFIDLECTL,0E6C2H
+       .equ    GPIFWFSELECT,0E6C0H
+       .equ    GPIFREADYCFG,0E6F3H
+       .equ    GPIFIDLECS,0E6C1H
+       .equ    EP6GPIFFLGSEL,0E6E2H
+       .equ    EP6GPIFPDFSTOP,0E6E3H
+       .equ    EP6GPIFTRIG,0E6E4H
+       .equ    GPIFIE,0E660H
+       .equ    GPIFIRQ,0E661H
+       ;; 
+       ;; endpoint control
+       .equ    EP2CS,0E6A3H
+       .equ    EP4CS,0E6A4H
+       .equ    EP6CS,0E6A5H
+       .equ    EP8CS,0E6A6H
+       ;; endpoint buffers
+       .equ    EP2FIFOBUF,0F000H
+       .equ    EP4FIFOBUF,0F400H
+       .equ    EP6FIFOBUF,0F800H
+       .equ    EP8FIFOBUF,0FC00H
+       ;; IRQ enable for bulk NAK
+       .equ    IBNIE,0E658H
+       ;; interrupt requ for NAK
+       .equ    IBNIRQ,0E659H
+       ;; USB INT enables
+       .equ    USBIE,0E65CH
+       ;; USB interrupt request
+       .equ    USBIRQ,0E65DH
+       ;; endpoint IRQ enable
+       .equ    EPIE,0E65EH
+       ;; endpoint IRQ requests
+       .equ    EPIRQ,0E65FH
+       ;; USB error IRQ requests
+       .equ    USBERRIE,0E662H
+       ;; USB error IRQ request
+       .equ    USBERRIRQ,0E663H
+       ;; USB interrupt 2 autovector
+       .equ    INT2IVEC,0E666H
+       ;; autovector enable
+       .equ    INTSETUP,0E668H
+       ;; port cfg
+       .equ    PORTACFG,0E670H
+       .equ    PORTCCFG,0E671H
+       .equ    PORTECFG,0E672H
+       ;; I2C bus
+       .equ    I2CS,0E678H
+       .equ    I2DAT,0E679H
+       .equ    I2CTL,0E67AH
+       ;; auto pointers, read/write is directed to the pointed address
+       .equ    XAUTODAT1,0E67BH
+       .equ    XAUTODAT2,0E67CH
+       ;; USB-control
+       .equ    USBCS,0E680H
+       ;; force packet end
+       .equ    OUTPKTEND,0E649H
+       .equ    IOA,80H
+       .equ    DPL1,84H
+       .equ    DPH1,85H
+       .equ    DPS,86H
+       .equ    CKCON,8Eh
+       .equ    IOB,90H
+       .equ    EXIF,91h
+       .equ    MPAGE,92h
+       .equ    AUTOPTRH1,9AH
+       .equ    AUTOPTRL1,9BH
+       .equ    AUTOPTRH2,9DH
+       .equ    AUTOPTRL2,9EH
+       .equ    IOC,0A0H
+       .equ    INT2CLR,0A1H
+       .equ    INT4CLR,0A2H
+       .equ    EP2468STAT,0AAH
+       .equ    EP24FIFOFLGS,0ABH
+       .equ    EP68FIFOFLGS,0ACH
+       .equ    AUTOPTRSETUP,0AFH
+       .equ    IOD,0B0H
+       .equ    IOE,0B1H
+       .equ    OEA,0B2H
+       .equ    OEB,0B3H
+       .equ    OEC,0B4H
+       .equ    OED,0B5H
+       .equ    OEE,0B6H
+       .equ    GPIFTRIG,0BBH
+       .equ    EIE,0E8h
+       .equ    EIP,0F8h
+
+       
+       ;; GPIF
+       .equ    GPIFTCB3,0E6CEH
+       .equ    GPIFTCB2,0E6CFH
+       .equ    GPIFTCB1,0E6D0H
+       .equ    GPIFTCB0,0E6D1H
+       .equ    EP4GPIFFLGSEL,0E6DAH
+       .equ    EP4GPIFPFSTOP,0E6DBH
+
+
+       ;;; end of file
+       
diff --git a/usbdux/usbdux_firmware.asm b/usbdux/usbdux_firmware.asm
new file mode 100644 (file)
index 0000000..b93a895
--- /dev/null
@@ -0,0 +1,1184 @@
+;   usbdux_firmware.asm
+;   Copyright (C) 2004,2009 Bernd Porr, Bernd.Porr@f2s.com
+;   For usbdux.c
+;
+;   This program is free software; you can redistribute it and/or modify
+;   it under the terms of the GNU General Public License as published by
+;   the Free Software Foundation; either version 2 of the License, or
+;   (at your option) any later version.
+;
+;   This program is distributed in the hope that it will be useful,
+;   but WITHOUT ANY WARRANTY; without even the implied warranty of
+;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;   GNU General Public License for more details.
+;
+;   You should have received a copy of the GNU General Public License
+;   along with this program; if not, write to the Free Software
+;   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+;
+;
+; Firmware: usbdux_firmware.asm for usbdux.c
+; Description: University of Stirling USB DAQ & INCITE Technology Limited
+; Devices: [ITL] USB-DUX (usbdux.o)
+; Author: Bernd Porr <Bernd.Porr@f2s.com>
+; Updated: 17 Apr 2009
+; Status: stable
+;
+;;;
+;;;
+;;;
+
+       .inc    fx2-include.asm
+
+       .equ    CHANNELLIST,80h ; channellist in indirect memory
+       
+       .equ    CMD_FLAG,90h    ; flag if next IN transf is DIO
+       .equ    SGLCHANNEL,91h  ; channel for INSN
+       .equ    PWMFLAG,92h     ; PWM
+       
+       .equ    DIOSTAT0,98h    ; last status of the digital port
+       .equ    DIOSTAT1,99h    ; same for the second counter
+       
+       .equ    CTR0,0A0H       ; counter 0
+       .equ    CTR1,0A2H       ; counter 1
+                       
+       .org    0000h           ; after reset the processor starts here
+       ljmp    main            ; jump to the main loop
+
+       .org    000bh           ; timer 0 irq
+       ljmp    timer0_isr
+
+       .org    0043h           ; the IRQ2-vector
+       ljmp    jmptbl          ; irq service-routine
+       
+       .org    0100h           ; start of the jump table
+
+jmptbl:        ljmp    sudav_isr
+       nop
+       ljmp    sof_isr
+       nop
+       ljmp    sutok_isr
+       nop
+       ljmp    suspend_isr
+       nop
+       ljmp    usbreset_isr
+       nop
+       ljmp    hispeed_isr
+       nop
+       ljmp    ep0ack_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    ep0in_isr
+       nop
+       ljmp    ep0out_isr
+       nop
+       ljmp    ep1in_isr
+       nop
+       ljmp    ep1out_isr
+       nop
+       ljmp    ep2_isr
+       nop
+       ljmp    ep4_isr
+       nop
+       ljmp    ep6_isr
+       nop
+       ljmp    ep8_isr
+       nop
+       ljmp    ibn_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    ep0ping_isr
+       nop
+       ljmp    ep1ping_isr
+       nop
+       ljmp    ep2ping_isr
+       nop
+       ljmp    ep4ping_isr
+       nop
+       ljmp    ep6ping_isr
+       nop
+       ljmp    ep8ping_isr
+       nop
+       ljmp    errlimit_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    ep2isoerr_isr
+       nop
+       ljmp    ep4isoerr_isr
+       nop
+       ljmp    ep6isoerr_isr
+       nop
+       ljmp    ep8isoerr_isr
+
+       
+       ;; dummy isr
+sudav_isr:     
+sutok_isr:     
+suspend_isr:   
+usbreset_isr:  
+hispeed_isr:   
+ep0ack_isr:    
+spare_isr:     
+ep0in_isr:     
+ep0out_isr:    
+ep1in_isr:     
+ibn_isr:       
+ep0ping_isr:   
+ep1ping_isr:   
+ep2ping_isr:   
+ep4ping_isr:   
+ep6ping_isr:   
+ep8ping_isr:   
+errlimit_isr:  
+ep2isoerr_isr: 
+ep4isoerr_isr: 
+ep6isoerr_isr: 
+ep8isoerr_isr:
+ep6_isr:
+ep2_isr:
+ep4_isr:       
+
+       push    dps
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+       push    acc
+       push    psw
+
+       ;; clear the USB2 irq bit and return
+       mov     a,EXIF
+       clr     acc.4
+       mov     EXIF,a
+
+       pop     psw
+       pop     acc 
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl 
+       pop     dps
+       
+       reti
+
+               
+;;; main program
+;;; basically only initialises the processor and
+;;; then engages in an endless loop
+main:
+       mov     DPTR,#CPUCS     ; CPU control register
+       mov     a,#00010000b    ; 48Mhz
+       lcall   syncdelaywr
+
+        mov     dptr,#REVCTL
+        mov     a,#00000011b    ; allows skip
+        lcall   syncdelaywr
+
+       mov     IP,#0           ; all std 8051 int have low priority
+       mov     EIP,#0FFH       ; all FX2 interrupts have high priority
+       
+       mov     dptr,#INTSETUP  ; IRQ setup register
+       mov     a,#08h          ; enable autovector
+       lcall   syncdelaywr
+
+       lcall   initAD          ; init the ports to the converters
+
+       lcall   initeps         ; init the isochronous data-transfer
+
+       lcall   init_timer
+       
+mloop2:        nop
+
+;;; pwm
+       mov     r0,#PWMFLAG     ; pwm on?
+       mov     a,@r0           ; get info
+       jz      mloop2          ; it's off
+
+       mov     a,GPIFTRIG      ; GPIF status
+       anl     a,#80h          ; done bit
+       jz      mloop2          ; GPIF still busy
+
+        mov     a,#01h         ; WR,EP4, 01 = EP4
+        mov     GPIFTRIG,a     ; restart it
+
+       sjmp    mloop2          ; loop for ever
+
+
+;;; GPIF waveform for PWM
+waveform:
+       ;;      0     1     2     3     4     5     6     7(not used)
+       ;; len (gives 50.007Hz)
+       .db     195,  195,  195,  195,  195,  195,  1,    1
+
+       ;; opcode
+       .db     002H, 006H, 002H, 002H, 002H, 002H, 002H, 002H
+       
+       ;; out
+       .db     0ffH, 0ffH, 0ffH, 0ffH, 0ffH, 0ffH, 0ffH, 0ffH
+
+       ;; log
+       .db     000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H
+
+
+stopPWM:
+       mov     r0,#PWMFLAG     ; flag for PWM
+       mov     a,#0            ; PWM (for the main loop)
+       mov     @r0,a           ; set it
+
+       mov     dptr,#IFCONFIG  ; switch off GPIF
+       mov     a,#10000000b    ; gpif, 30MHz, internal IFCLK
+       lcall   syncdelaywr
+       ret
+       
+
+;;; init PWM
+startPWM:
+       mov     dptr,#IFCONFIG  ; switch on IFCLK signal
+       mov     a,#10000010b    ; gpif, 30MHz, internal IFCLK
+       lcall   syncdelaywr
+
+       mov     OEB,0FFH        ; output to port B
+
+       mov     DPTR,#EP4CFG
+       mov     a,#10100000b    ; valid, out, bulk
+       movx    @DPTR,a
+
+       ;; reset the endpoint
+       mov     dptr,#FIFORESET
+       mov     a,#80h          ; NAK
+       lcall   syncdelaywr
+       mov     a,#84h          ; reset EP4 + NAK
+       lcall   syncdelaywr
+       mov     a,#0            ; normal op
+       lcall   syncdelaywr
+
+       mov     dptr,#EP4BCL
+       mov     a,#0H           ; discard packets
+       lcall   syncdelaywr     ; empty FIFO buffer
+       lcall   syncdelaywr     ; empty FIFO buffer
+
+       ;; aborts all transfers by the GPIF
+       mov     dptr,#GPIFABORT
+       mov     a,#0ffh         ; abort all transfers
+       lcall   syncdelaywr
+
+       ;; wait for GPIF to finish
+wait_f_abort:
+       mov     a,GPIFTRIG      ; GPIF status
+       anl     a,#80h          ; done bit
+       jz      wait_f_abort    ; GPIF busy
+
+        mov     dptr,#GPIFCTLCFG
+        mov     a,#10000000b    ; tri state for CTRL
+        lcall   syncdelaywr
+
+        mov     dptr,#GPIFIDLECTL
+        mov     a,#11110000b    ; all CTL outputs low
+        lcall   syncdelaywr
+
+       ;; abort if FIFO is empty
+        mov     a,#00000001b    ; abort if empty
+        mov     dptr,#EP4GPIFFLGSEL
+        lcall   syncdelaywr
+
+       ;; 
+        mov     a,#00000001b    ; stop if GPIF flg
+        mov     dptr,#EP4GPIFPFSTOP
+        lcall   syncdelaywr
+
+       ;; transaction counter
+       mov     a,#0ffH
+       mov     dptr,#GPIFTCB3
+       lcall   syncdelaywr
+
+       ;; transaction counter
+       mov     a,#0ffH
+       mov     dptr,#GPIFTCB2
+       lcall   syncdelaywr
+
+       ;; transaction counter
+       mov     a,#0ffH         ; 512 bytes
+       mov     dptr,#GPIFTCB1
+       lcall   syncdelaywr
+
+       ;; transaction counter
+       mov     a,#0ffH
+       mov     dptr,#GPIFTCB0
+       lcall   syncdelaywr
+
+       ;; RDY pins. Not used here.
+        mov     a,#0
+        mov     dptr,#GPIFREADYCFG
+        lcall   syncdelaywr
+
+       ;; drives the output in the IDLE state
+        mov     a,#1
+        mov     dptr,#GPIFIDLECS
+        lcall   syncdelaywr
+
+       ;; direct data transfer from the EP to the GPIF
+       mov     dptr,#EP4FIFOCFG
+       mov     a,#00010000b    ; autoout=1, byte-wide
+       lcall   syncdelaywr
+
+       ;; waveform 0 is used for FIFO out
+       mov     dptr,#GPIFWFSELECT
+       mov     a,#00000000b
+       movx    @dptr,a
+       lcall   syncdelay
+
+       ;; transfer the delay byte from the EP to the waveform
+       mov     dptr,#0e781h    ; EP1 buffer
+       movx    a,@dptr         ; get the delay
+       mov     dptr,#waveform  ; points to the waveform
+       mov     r2,#6           ; fill 6 bytes
+timloop:
+       movx    @dptr,a         ; save timing in a xxx
+       inc     dptr
+       djnz    r2,timloop      ; fill the 6 delay bytes
+
+       ;; load waveform
+        mov     AUTOPTRH2,#0E4H ; XDATA0H
+        lcall   syncdelay
+        mov     AUTOPTRL2,#00H  ; XDATA0L
+        lcall   syncdelay
+
+       mov     dptr,#waveform  ; points to the waveform
+       
+        mov     AUTOPTRSETUP,#7 ; autoinc and enable
+        lcall   syncdelay
+
+        mov     r2,#20H         ; 32 bytes to transfer
+
+wavetr:
+        movx    a,@dptr
+       inc     dptr
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+        mov     dptr,#XAUTODAT2
+        movx    @dptr,a
+        lcall   syncdelay
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl
+        djnz    r2,wavetr
+
+       mov     dptr,#OUTPKTEND
+       mov     a,#084H
+       lcall   syncdelaywr
+       lcall   syncdelaywr
+
+       mov     r0,#PWMFLAG     ; flag for PWM
+       mov     a,#1            ; PWM (for the main loop)
+       mov     @r0,a           ; set it
+
+       ret
+
+
+
+;;; initialise the ports for the AD-converter
+initAD:
+       mov     OEA,#27H        ;PortA0,A1,A2,A5 Outputs
+       mov     IOA,#22H        ;/CS = 1, disable transfers to the converters
+       ret
+
+
+;;; init the timer for the soft counters
+init_timer:
+       ;; init the timer for 2ms sampling rate
+       mov     CKCON,#00000001b; CLKOUT/12 for timer
+       mov     TL0,#010H       ; 16
+       mov     TH0,#0H         ; 256
+       mov     IE,#82H         ; switch on timer interrupt (80H for all IRQs)
+       mov     TMOD,#00000000b ; 13 bit counters
+       setb    TCON.4          ; enable timer 0
+       ret
+
+
+;;; from here it's only IRQ handling...
+       
+;;; A/D-conversion:
+;;; control-byte in a,
+;;; result in r3(low) and r4(high)
+;;; this routine is optimised for speed
+readAD:                                ; mask the control byte
+       anl     a,#01111100b    ; only the channel, gain+pol are left
+       orl     a,#10000001b    ; start bit, external clock
+       ;; set CS to low
+       clr     IOA.1           ; set /CS to zero
+       ;; send the control byte to the AD-converter
+       mov     R2,#8           ; bit-counter
+bitlp: jnb     ACC.7,bitzero   ; jump if Bit7 = 0?
+       setb    IOA.2           ; set the DIN bit
+       sjmp    clock           ; continue with the clock
+bitzero:clr    IOA.2           ; clear the DIN bit
+clock: setb    IOA.0           ; SCLK = 1
+       clr     IOA.0           ; SCLK = 0
+        rl      a               ; next Bit
+        djnz    R2,bitlp
+
+       ;; continue the aquisition (already started)
+       clr     IOA.2           ; clear the DIN bit
+       mov     R2,#5           ; five steps for the aquision
+clockaq:setb   IOA.0           ; SCLK = 1
+       clr     IOA.0           ; SCLK = 0
+        djnz    R2,clockaq     ; loop
+       
+       ;; read highbyte from the A/D-converter
+       ;; and do the conversion
+       mov     r4,#0           ; Highbyte goes into R4
+       mov     R2,#4           ; COUNTER 4 data bits in the MSB
+       mov     r5,#08h         ; create bit-mask
+gethi:                         ; loop get the 8 highest bits from MSB downw
+       setb    IOA.0           ; SCLK = 1
+       clr     IOA.0           ; SCLK = 0
+       mov     a,IOA           ; from port A
+       jnb     ACC.4,zerob     ; the in-bit is zero
+       mov     a,r4            ; get the byte
+       orl     a,r5            ; or the bit to the result
+       mov     r4,a            ; save it again in r4
+zerob: mov     a,r5            ; get r5 in order to shift the mask
+       rr      a               ; rotate right
+       mov     r5,a            ; back to r5
+       djnz    R2,gethi
+       ;; read the lowbyte from the A/D-converter
+       mov     r3,#0           ; Lowbyte goes into R3
+       mov     r2,#8           ; COUNTER 8 data-bits in the LSB
+       mov     r5,#80h         ; create bit-mask
+getlo:                         ; loop get the 8 highest bits from MSB downw
+       setb    IOA.0           ; SCLK = 1
+       clr     IOA.0           ; SCLK = 0
+       mov     a,IOA           ; from port A
+       jnb     ACC.4,zerob2    ; the in-bit is zero
+       mov     a,r3            ; get the result-byte
+       orl     a,r5            ; or the bit to the result
+       mov     r3,a            ; save it again in r4
+zerob2:        mov     a,r5            ; get r5 in order to shift the mask
+       rr      a               ; rotate right
+       mov     r5,a            ; back to r5
+       djnz    R2,getlo
+       setb    IOA.1           ; set /CS to one
+       ;;
+       ret
+       
+
+       
+;;; aquires data from A/D channels and stores them in the EP6 buffer
+conv_ad:
+       mov     AUTOPTRH1,#0F8H ; auto pointer on EP6
+       mov     AUTOPTRL1,#00H
+       mov     AUTOPTRSETUP,#7
+       mov     r0,#CHANNELLIST ; points to the channellist
+
+       mov     a,@r0           ; number of channels
+       mov     r1,a            ; counter
+
+       mov     DPTR,#XAUTODAT1 ; auto pointer
+convloop:
+       inc     r0
+       mov     a,@r0           ; Channel
+       lcall   readAD
+       mov     a,R3            ;
+       movx    @DPTR,A
+       mov     a,R4            ;
+       movx    @DPTR,A
+       djnz    r1,convloop
+
+       ret
+
+
+
+
+;;; initilise the transfer
+;;; It is assumed that the USB interface is in alternate setting 3
+initeps:
+       mov     dptr,#FIFORESET
+       mov     a,#80H          
+       movx    @dptr,a         ; reset all fifos
+       mov     a,#2    
+       movx    @dptr,a         ; 
+       mov     a,#4            
+       movx    @dptr,a         ; 
+       mov     a,#6            
+       movx    @dptr,a         ; 
+       mov     a,#8            
+       movx    @dptr,a         ; 
+       mov     a,#0            
+       movx    @dptr,a         ; normal operat
+       
+       mov     DPTR,#EP2CFG
+       mov     a,#10010010b    ; valid, out, double buff, iso
+       movx    @DPTR,a
+
+       mov     dptr,#EP2FIFOCFG
+       mov     a,#00000000b    ; manual
+       movx    @dptr,a
+
+       mov     dptr,#EP2BCL    ; "arm" it
+       mov     a,#00h
+       movx    @DPTR,a         ; can receive data
+       lcall   syncdelay       ; wait to sync
+       movx    @DPTR,a         ; can receive data
+       lcall   syncdelay       ; wait to sync
+       movx    @DPTR,a         ; can receive data
+       lcall   syncdelay       ; wait to sync
+       
+       mov     DPTR,#EP1OUTCFG
+       mov     a,#10100000b    ; valid
+       movx    @dptr,a
+
+       mov     dptr,#EP1OUTBC  ; "arm" it
+       mov     a,#00h
+       movx    @DPTR,a         ; can receive data
+       lcall   syncdelay       ; wait until we can write again
+       movx    @dptr,a         ; make shure its really empty
+       lcall   syncdelay       ; wait
+
+       mov     DPTR,#EP6CFG    ; ISO data from here to the host
+       mov     a,#11010010b    ; Valid
+       movx    @DPTR,a         ; ISO transfer, double buffering
+
+       mov     DPTR,#EP8CFG    ; EP8
+       mov     a,#11100000b    ; BULK data from here to the host
+       movx    @DPTR,a         ;
+
+       mov     dptr,#EPIE      ; interrupt enable
+       mov     a,#10001000b    ; enable irq for ep1out,8
+       movx    @dptr,a         ; do it
+
+       mov     dptr,#EPIRQ     ; clear IRQs
+       mov     a,#10100000b
+       movx    @dptr,a
+
+       ;; enable interrups
+        mov     DPTR,#USBIE    ; USB int enables register
+        mov     a,#2            ; enables SOF (1ms/125us interrupt)
+        movx    @DPTR,a         ; 
+
+       mov     EIE,#00000001b  ; enable INT2 in the 8051's SFR
+       mov     IE,#80h         ; IE, enable all interrupts
+
+       ret
+
+
+;;; counter
+;;; r0: DIOSTAT
+;;; r1:        counter address
+;;; r2:        up/down-mask
+;;; r3:        reset-mask
+;;; r4:        clock-mask
+counter:       
+       mov     a,IOB           ; actual IOB input state
+       mov     r5,a            ; save in r5
+       anl     a,r3            ; bit mask for reset
+       jz      no_reset        ; reset if one
+       clr     a               ; set counter to zero
+       mov     @r1,a
+       inc     r4
+       mov     @r1,a
+       sjmp    ctr_end
+no_reset:      
+       mov     a,@r0           ; get last state
+       xrl     a,r5            ; has it changed?
+       anl     a,r5            ; is it now on?
+       anl     a,r4            ; mask out the port
+       jz      ctr_end         ; no rising edge
+       mov     a,r5            ; get port B again
+       anl     a,r2            ; test if up or down
+       jnz     ctr_up          ; count up
+       mov     a,@r1
+       dec     a
+       mov     @r1,a
+       cjne    a,#0ffh,ctr_end ; underflow?
+       inc     r1              ; high byte
+       mov     a,@r1
+       dec     a
+       mov     @r1,a
+       sjmp    ctr_end
+ctr_up:                                ; count up
+       mov     a,@r1
+       inc     a
+       mov     @r1,a
+       jnz     ctr_end
+       inc     r1              ; high byte
+       mov     a,@r1
+       inc     a
+       mov     @r1,a
+ctr_end:
+       mov     a,r5
+       mov     @r0,a
+       ret
+
+;;; implements two soft counters with up/down and reset
+timer0_isr:
+       push    dps
+       push    acc
+       push    psw
+       push    00h             ; R0
+       push    01h             ; R1
+       push    02h             ; R2
+       push    03h             ; R3
+       push    04h             ; R4
+       push    05h             ; R5
+               
+       mov     r0,#DIOSTAT0    ; status of port
+       mov     r1,#CTR0        ; address of counter0
+       mov     a,#00000001b    ; bit 0
+       mov     r4,a            ; clock
+       rl      a               ; bit 1
+       mov     r2,a            ; up/down
+       rl      a               ; bit 2
+       mov     r3,a            ; reset mask
+       lcall   counter
+       inc     r0              ; to DISTAT1
+       inc     r1              ; to CTR1
+       inc     r1
+       mov     a,r3
+       rl      a               ; bit 3
+       rl      a               ; bit 4
+       mov     r4,a            ; clock
+       rl      a               ; bit 5
+       mov     r2,a            ; up/down
+       rl      a               ; bit 6
+       mov     r3,a            ; reset
+       lcall   counter
+       
+       pop     05h             ; R5
+       pop     04h             ; R4
+       pop     03h             ; R3
+       pop     02h             ; R2
+       pop     01h             ; R1
+       pop     00h             ; R0
+       pop     psw
+       pop     acc 
+       pop     dps
+
+       reti
+
+;;; interrupt-routine for SOF
+;;; is for full speed
+sof_isr:
+       push    dps
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+       push    acc
+       push    psw
+       push    00h             ; R0
+       push    01h             ; R1
+       push    02h             ; R2
+       push    03h             ; R3
+       push    04h             ; R4
+       push    05h             ; R5
+       push    06h             ; R6
+       push    07h             ; R7
+               
+       mov     a,EP2468STAT
+       anl     a,#20H          ; full?
+       jnz     epfull          ; EP6-buffer is full
+
+       lcall   conv_ad         ; conversion
+
+       mov     DPTR,#EP6BCH    ; byte count H
+       mov     a,#0            ; is zero
+       lcall   syncdelaywr     ; wait until we can write again
+       
+       mov     DPTR,#EP6BCL    ; byte count L
+       mov     a,#10H          ; is 8x word = 16 bytes
+       lcall   syncdelaywr     ; wait until we can write again
+       
+epfull:
+       ;; do the D/A conversion
+       mov     a,EP2468STAT
+       anl     a,#01H          ; empty
+       jnz     epempty         ; nothing to get
+
+       mov     dptr,#0F000H    ; EP2 fifo buffer
+       lcall   dalo            ; conversion
+
+       mov     dptr,#EP2BCL    ; "arm" it
+       mov     a,#00h
+       lcall   syncdelaywr     ; wait for the rec to sync
+       lcall   syncdelaywr     ; wait for the rec to sync
+
+epempty:       
+       ;; clear INT2
+       mov     a,EXIF          ; FIRST clear the USB (INT2) interrupt request
+       clr     acc.4
+       mov     EXIF,a          ; Note: EXIF reg is not 8051 bit-addressable
+       
+       mov     DPTR,#USBIRQ    ; points to the SOF
+       mov     a,#2            ; clear the SOF
+       movx    @DPTR,a
+
+nosof: 
+       pop     07h
+       pop     06h
+       pop     05h
+       pop     04h             ; R4
+       pop     03h             ; R3
+       pop     02h             ; R2
+       pop     01h             ; R1
+       pop     00h             ; R0
+       pop     psw
+       pop     acc 
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl 
+       pop     dps
+       reti
+
+
+reset_ep8:
+       ;; erase all data in ep8
+       mov     dptr,#FIFORESET
+       mov     a,#80H          ; NAK
+       lcall   syncdelaywr
+       mov     dptr,#FIFORESET
+       mov     a,#8            ; reset EP8
+       lcall   syncdelaywr
+       mov     dptr,#FIFORESET
+       mov     a,#0            ; normal operation
+       lcall   syncdelaywr
+       ret
+
+
+reset_ep6:
+       ;; throw out old data
+       mov     dptr,#FIFORESET
+       mov     a,#80H          ; NAK
+       lcall   syncdelaywr
+       mov     dptr,#FIFORESET
+       mov     a,#6            ; reset EP6
+       lcall   syncdelaywr
+       mov     dptr,#FIFORESET
+       mov     a,#0            ; normal operation
+       lcall   syncdelaywr
+       ret
+
+;;; interrupt-routine for ep1out
+;;; receives the channel list and other commands
+ep1out_isr:
+       push    dps
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+       push    acc
+       push    psw
+       push    00h             ; R0
+       push    01h             ; R1
+       push    02h             ; R2
+       push    03h             ; R3
+       push    04h             ; R4
+       push    05h             ; R5
+       push    06h             ; R6
+       push    07h             ; R7
+               
+       mov     dptr,#0E780h    ; FIFO buffer of EP1OUT
+       movx    a,@dptr         ; get the first byte
+       mov     r0,#CMD_FLAG    ; pointer to the command byte
+       mov     @r0,a           ; store the command byte for ep8
+
+       mov     dptr,#ep1out_jmp; jump table for the different functions
+       rl      a               ; multiply by 2: sizeof sjmp
+       jmp     @a+dptr         ; jump to the jump table
+       ;; jump table, corresponds to the command bytes defined
+       ;; in usbdux.c
+ep1out_jmp:
+       sjmp    storechannellist; a=0
+       sjmp    single_da       ; a=1
+       sjmp    config_digital_b; a=2
+       sjmp    write_digital_b ; a=3
+       sjmp    storesglchannel ; a=4
+       sjmp    readcounter     ; a=5
+       sjmp    writecounter    ; a=6
+       sjmp    pwm_on          ; a=7
+       sjmp    pwm_off         ; a=8
+
+pwm_on:
+       lcall   startPWM
+       sjmp    over_da
+
+pwm_off:
+       lcall   stopPWM
+       sjmp    over_da
+
+       ;; read the counter
+readcounter:
+       lcall   reset_ep8       ; reset ep8
+       lcall   ep8_ops         ; fill the counter data in there
+       sjmp    over_da         ; jump to the end
+
+       ;; write zeroes to the counters
+writecounter:
+       mov     dptr,#0e781h    ; buffer
+       mov     r0,#CTR0        ; r0 points to counter 0
+       movx    a,@dptr         ; channel number
+       jz      wrctr0          ; first channel
+       mov     r1,a            ; counter
+wrctrl:
+       inc     r0              ; next counter
+       inc     r0              ; next counter
+       djnz    r1,wrctrl       ; advance to the right counter
+wrctr0:
+       inc     dptr            ; get to the value
+       movx    a,@dptr         ; get value
+       mov     @r0,a           ; save in ctr
+       inc     r0              ; next byte
+       inc     dptr
+       movx    a,@dptr         ; get value
+       mov     @r0,a           ; save in ctr
+       sjmp    over_da         ; jump to the end
+
+storesglchannel:
+       mov     r0,#SGLCHANNEL  ; the conversion bytes are now stored in 80h
+       mov     dptr,#0e781h    ; FIFO buffer of EP1OUT
+       movx    a,@dptr         ; 
+       mov     @r0,a
+
+       lcall   reset_ep8       ; reset FIFO
+       ;; Save new A/D data in EP8. This is the first byte
+       ;; the host will read during an INSN. If there are
+       ;; more to come they will be handled by the ISR of
+       ;; ep8.
+       lcall   ep8_ops         ; get A/D data
+               
+       sjmp    over_da
+
+       
+;;; Channellist:
+;;; the first byte is zero:
+;;; we've just received the channel list
+;;; the channel list is stored in the addresses from CHANNELLIST which
+;;; are _only_ reachable by indirect addressing
+storechannellist:
+       mov     r0,#CHANNELLIST ; the conversion bytes are now stored in 80h
+       mov     r2,#9           ; counter
+       mov     dptr,#0e781h    ; FIFO buffer of EP1OUT
+chanlloop:     
+       movx    a,@dptr         ; 
+       mov     @r0,a
+       inc     dptr
+       inc     r0
+       djnz    r2,chanlloop
+
+       lcall   reset_ep6       ; reset FIFO
+       
+       ;; load new A/D data into EP6
+       ;; This must be done. Otherwise the ISR is never called.
+       ;; The ISR is only called when data has _left_ the
+       ;; ep buffer here it has to be refilled.
+       lcall   ep6_arm         ; fill with the first data byte
+       
+       sjmp    over_da
+
+;;; Single DA conversion. The 2 bytes are in the FIFO buffer
+single_da:
+       mov     dptr,#0e781h    ; FIFO buffer of EP1OUT
+       lcall   dalo            ; conversion
+       sjmp    over_da
+
+;;; configure the port B as input or output (bitwise)
+config_digital_b:
+       mov     dptr,#0e781h    ; FIFO buffer of EP1OUT
+       movx    a,@dptr         ; get the second byte
+       mov     OEB,a           ; set the output enable bits
+       sjmp    over_da
+       
+;;; Write one byte to the external digital port B
+;;; and prepare for digital read
+write_digital_b:
+       mov     dptr,#0e781h    ; FIFO buffer of EP1OUT
+       movx    a,@dptr         ; get the second byte
+       mov     OEB,a           ; output enable
+       inc     dptr            ; next byte
+       movx    a,@dptr         ; bits
+       mov     IOB,a           ; send the byte to the I/O port
+
+       lcall   reset_ep8       ; reset FIFO of ep 8
+
+       ;; fill ep8 with new data from port B
+       ;; When the host requests the data it's already there.
+       ;; This must be so. Otherwise the ISR is not called.
+       ;; The ISR is only called when a packet has been delivered
+       ;; to the host. Thus, we need a packet here in the
+       ;; first instance.
+       lcall   ep8_ops         ; get digital data
+
+       ;; 
+       ;; for all commands the same
+over_da:       
+       mov     dptr,#EP1OUTBC
+       mov     a,#00h
+       lcall   syncdelaywr     ; arm
+       lcall   syncdelaywr     ; arm
+       lcall   syncdelaywr     ; arm
+
+       ;; clear INT2
+       mov     a,EXIF          ; FIRST clear the USB (INT2) interrupt request
+       clr     acc.4
+       mov     EXIF,a          ; Note: EXIF reg is not 8051 bit-addressable
+
+       mov     DPTR,#EPIRQ     ; 
+       mov     a,#00001000b    ; clear the ep1outirq
+       movx    @DPTR,a
+
+       pop     07h
+       pop     06h
+       pop     05h
+       pop     04h             ; R4
+       pop     03h             ; R3
+       pop     02h             ; R2
+       pop     01h             ; R1
+       pop     00h             ; R0
+       pop     psw
+       pop     acc 
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl 
+       pop     dps
+       reti
+
+
+       
+;;; all channels
+dalo:
+       movx    a,@dptr         ; number of channels
+       inc     dptr            ; pointer to the first channel
+       mov     r0,a            ; 4 channels
+nextDA:        
+       movx    a,@dptr         ; get the first low byte
+       mov     r3,a            ; store in r3 (see below)
+       inc     dptr            ; point to the high byte
+       movx    a,@dptr         ; get the high byte
+       mov     r4,a            ; store in r4 (for writeDA)
+       inc     dptr            ; point to the channel number
+       movx    a,@dptr         ; get the channel number
+       inc     dptr            ; get ready for the next channel
+       lcall   writeDA         ; write value to the DAC
+       djnz    r0,nextDA       ; next channel
+       ret
+
+
+
+;;; D/A-conversion:
+;;; control-byte in a,
+;;; value in r3(low) and r4(high)
+writeDA:                       ; mask the control byte
+       anl     a,#11000000b    ; only the channel is left
+       orl     a,#00110000b    ; internal clock, bipolar mode, +/-5V
+       orl     a,r4            ; or the value of R4 to it
+       ;; set CS to low
+       clr     IOA.5           ; set /CS to zero
+       ;; send the first byte to the DA-converter
+       mov     R2,#8           ; bit-counter
+DA1:    jnb     ACC.7,zeroda   ; jump if Bit7 = 0?
+       setb    IOA.2           ; set the DIN bit
+       sjmp    clkda           ; continue with the clock
+zeroda: clr    IOA.2           ; clear the DIN bit
+clkda: setb    IOA.0           ; SCLK = 1
+       clr     IOA.0           ; SCLK = 0
+        rl      a               ; next Bit
+        djnz    R2,DA1
+
+       
+       ;; send the second byte to the DA-converter
+       mov     a,r3            ; low byte
+       mov     R2,#8           ; bit-counter
+DA2:    jnb     ACC.7,zeroda2  ; jump if Bit7 = 0?
+       setb    IOA.2           ; set the DIN bit
+       sjmp    clkda2          ; continue with the clock
+zeroda2:clr    IOA.2           ; clear the DIN bit
+clkda2:        setb    IOA.0           ; SCLK = 1
+       clr     IOA.0           ; SCLK = 0
+        rl      a               ; next Bit
+        djnz    R2,DA2
+       ;; 
+       setb    IOA.5           ; set /CS to one
+       ;; 
+noDA:  ret
+       
+
+
+;;; arm ep6
+ep6_arm:
+       lcall   conv_ad
+       
+       mov     DPTR,#EP6BCH    ; byte count H
+       mov     a,#0            ; is zero
+       lcall   syncdelaywr     ; wait until the length has arrived
+       
+       mov     DPTR,#EP6BCL    ; byte count L
+       mov     a,#10H          ; is one
+       lcall   syncdelaywr     ; wait until the length has been proc
+       ret
+       
+
+
+;;; converts one analog/digital channel and stores it in EP8
+;;; also gets the content of the digital ports B and D depending on
+;;; the COMMAND flag
+ep8_ops:
+       mov     dptr,#0fc01h    ; ep8 fifo buffer
+       clr     a               ; high byte
+       movx    @dptr,a         ; set H=0
+       mov     dptr,#0fc00h    ; low byte
+       mov     r0,#CMD_FLAG
+       mov     a,@r0
+       movx    @dptr,a         ; save command byte
+
+       mov     dptr,#ep8_jmp   ; jump table for the different functions
+       rl      a               ; multiply by 2: sizeof sjmp
+       jmp     @a+dptr         ; jump to the jump table
+       ;; jump table, corresponds to the command bytes defined
+       ;; in usbdux.c
+ep8_jmp:
+       sjmp    ep8_err         ; a=0, err
+       sjmp    ep8_err         ; a=1, err
+       sjmp    ep8_err         ; a=2, err
+       sjmp    ep8_dio         ; a=3, digital read
+       sjmp    ep8_sglchannel  ; a=4, analog A/D
+       sjmp    ep8_readctr     ; a=5, read counter
+       sjmp    ep8_err         ; a=6, write counter
+
+       ;; reads all counters
+ep8_readctr:
+       mov     r0,#CTR0        ; points to counter0
+       mov     dptr,#0fc02h    ; ep8 fifo buffer
+       mov     r1,#8           ; transfer 4 16bit counters
+ep8_ctrlp:
+       mov     a,@r0           ; get the counter
+       movx    @dptr,a         ; save in the fifo buffer
+       inc     r0              ; inc pointer to the counters
+       inc     dptr            ; inc pointer to the fifo buffer
+       djnz    r1,ep8_ctrlp    ; loop until ready
+       
+       sjmp    ep8_send        ; send the data
+       
+       ;; read one A/D channel
+ep8_sglchannel:                
+       mov     r0,#SGLCHANNEL  ; points to the channel
+       mov     a,@r0           ; Ch0
+       
+       lcall   readAD          ; start the conversion
+               
+       mov     DPTR,#0fc02h    ; EP8 FIFO 
+       mov     a,R3            ; get low byte
+       movx    @DPTR,A         ; store in FIFO
+       inc     dptr            ; next fifo entry
+       mov     a,R4            ; get high byte
+       movx    @DPTR,A         ; store in FIFO
+
+       sjmp    ep8_send        ; send the data
+
+       ;; read the digital lines
+ep8_dio:       
+       mov     DPTR,#0fc02h    ; store the contents of port B
+       mov     a,IOB           ; in the next
+       movx    @dptr,a         ; entry of the buffer
+
+       inc     dptr
+       clr     a               ; high byte is zero
+       movx    @dptr,a         ; next byte of the EP
+       
+ep8_send:      
+       mov     DPTR,#EP8BCH    ; byte count H
+       mov     a,#0            ; is zero
+       lcall   syncdelaywr
+       
+       mov     DPTR,#EP8BCL    ; byte count L
+       mov     a,#10H          ; 16 bytes
+       lcall   syncdelaywr     ; send the data over to the host
+
+ep8_err:       
+       ret
+
+
+
+;;; EP8 interrupt: gets one measurement from the AD converter and
+;;; sends it via EP8. The channel # is stored in address 80H.
+;;; It also gets the state of the digital registers B and D.
+ep8_isr:       
+       push    dps
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+       push    acc
+       push    psw
+       push    00h             ; R0
+       push    01h             ; R1
+       push    02h             ; R2
+       push    03h             ; R3
+       push    04h             ; R4
+       push    05h             ; R5
+       push    06h             ; R6
+       push    07h             ; R7
+               
+       lcall   ep8_ops
+       
+       ;; clear INT2
+       mov     a,EXIF          ; FIRST clear the USB (INT2) interrupt request
+       clr     acc.4
+       mov     EXIF,a          ; Note: EXIF reg is not 8051 bit-addressable
+
+       mov     DPTR,#EPIRQ     ; 
+       mov     a,#10000000b    ; clear the ep8irq
+       movx    @DPTR,a
+
+       pop     07h
+       pop     06h
+       pop     05h
+       pop     04h             ; R4
+       pop     03h             ; R3
+       pop     02h             ; R2
+       pop     01h             ; R1
+       pop     00h             ; R0
+       pop     psw
+       pop     acc 
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl 
+       pop     dps
+       reti
+
+
+;; need to delay every time the byte counters
+;; for the EPs have been changed.
+
+syncdelay:
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       ret
+
+syncdelaywr:
+       movx    @dptr,a
+       lcall   syncdelay
+       ret
+
+
+.End
+
+
diff --git a/usbdux/usbduxfast_firmware.asm b/usbdux/usbduxfast_firmware.asm
new file mode 100644 (file)
index 0000000..0d8e7f8
--- /dev/null
@@ -0,0 +1,547 @@
+;   usbduxfast_firmware.asm
+;   Copyright (C) 2004,2009 Bernd Porr, Bernd.Porr@f2s.com
+;
+;   This program is free software; you can redistribute it and/or modify
+;   it under the terms of the GNU General Public License as published by
+;   the Free Software Foundation; either version 2 of the License, or
+;   (at your option) any later version.
+;
+;   This program is distributed in the hope that it will be useful,
+;   but WITHOUT ANY WARRANTY; without even the implied warranty of
+;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;   GNU General Public License for more details.
+;
+;   You should have received a copy of the GNU General Public License
+;   along with this program; if not, write to the Free Software
+;   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+;
+;
+; Firmware: usbduxfast_firmware.asm for usbdux.c
+; Description: Firmware for usbduxfast
+; Devices: [ITL] USB-DUX (usbdux.o)
+; Author: Bernd Porr <Bernd.Porr@f2s.com>
+; Updated: 17 Apr 2009
+; Status: stable
+;
+;;;
+;;;
+;;;
+
+       .inc    fx2-include.asm
+
+       .equ    WFLOADED,70H    ; waveform is loaded
+
+       .org    0000h           ; after reset the processor starts here
+       ljmp    main            ; jump to the main loop
+
+       .org    0043h           ; the IRQ2-vector
+       ljmp    jmptbl          ; irq service-routine
+
+       .org    0100h           ; start of the jump table
+
+jmptbl:        ljmp    sudav_isr
+       nop
+       ljmp    sof_isr
+       nop
+       ljmp    sutok_isr
+       nop
+       ljmp    suspend_isr
+       nop
+       ljmp    usbreset_isr
+       nop
+       ljmp    hispeed_isr
+       nop
+       ljmp    ep0ack_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    ep0in_isr
+       nop
+       ljmp    ep0out_isr
+       nop
+       ljmp    ep1in_isr
+       nop
+       ljmp    ep1out_isr
+       nop
+       ljmp    ep2_isr
+       nop
+       ljmp    ep4_isr
+       nop
+       ljmp    ep6_isr
+       nop
+       ljmp    ep8_isr
+       nop
+       ljmp    ibn_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    ep0ping_isr
+       nop
+       ljmp    ep1ping_isr
+       nop
+       ljmp    ep2ping_isr
+       nop
+       ljmp    ep4ping_isr
+       nop
+       ljmp    ep6ping_isr
+       nop
+       ljmp    ep8ping_isr
+       nop
+       ljmp    errlimit_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    spare_isr
+       nop
+       ljmp    ep2isoerr_isr
+       nop
+       ljmp    ep4isoerr_isr
+       nop
+       ljmp    ep6isoerr_isr
+       nop
+       ljmp    ep8isoerr_isr
+
+       
+       ;; dummy isr
+sof_isr:
+sudav_isr:     
+sutok_isr:     
+suspend_isr:   
+usbreset_isr:  
+hispeed_isr:   
+ep0ack_isr:    
+spare_isr:     
+ep0in_isr:     
+ep0out_isr:    
+ep1out_isr:
+ep1in_isr:     
+ibn_isr:       
+ep0ping_isr:   
+ep1ping_isr:   
+ep2ping_isr:   
+ep4ping_isr:   
+ep6ping_isr:   
+ep8ping_isr:   
+errlimit_isr:  
+ep2isoerr_isr: 
+ep4isoerr_isr: 
+ep6isoerr_isr: 
+ep8isoerr_isr:
+ep6_isr:
+ep2_isr:
+ep8_isr:
+
+       push    dps
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+       push    acc
+       push    psw
+
+       ;; clear the USB2 irq bit and return
+       mov     a,EXIF
+       clr     acc.4
+       mov     EXIF,a
+
+       pop     psw
+       pop     acc 
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl 
+       pop     dps
+       
+       reti
+
+               
+;;; main program
+;;; basically only initialises the processor and
+;;; then engages in an endless loop
+main:
+       mov     dptr,#REVCTL
+       mov     a,#00000011b    ; allows skip
+       lcall   syncdelaywr
+
+       mov     DPTR,#CPUCS     ; CPU control register
+       mov     a,#00010000b    ; 48Mhz
+       lcall   syncdelaywr
+
+       mov     dptr,#IFCONFIG  ; switch on IFCLK signal
+       mov     a,#10100010b    ; gpif, 30MHz
+       lcall   syncdelaywr
+
+       mov     dptr,#FIFORESET
+       mov     a,#80h
+       lcall   syncdelaywr
+       mov     a,#8
+       lcall   syncdelaywr
+       mov     a,#2            
+       lcall   syncdelaywr
+       mov     a,#4            
+       lcall   syncdelaywr
+       mov     a,#6            
+       lcall   syncdelaywr
+       mov     a,#0            
+       lcall   syncdelaywr
+
+       mov     dptr,#INTSETUP  ; IRQ setup register
+       mov     a,#08h          ; enable autovector
+       lcall   syncdelaywr
+
+       lcall   initeps         ; init the isochronous data-transfer
+
+       lcall   initGPIF
+
+;;; main loop
+
+mloop2:
+       lcall   gpif_run
+       sjmp    mloop2          ; do nothing. The rest is done by the IRQs
+
+
+gpif_run:
+       mov     a,WFLOADED
+       jz      no_trig         ; do not trigger
+       mov     a,GPIFTRIG      ; GPIF status
+       anl     a,#80h          ; done bit
+       jz      no_trig         ; GPIF busy
+
+;;; gpif has stopped
+       mov     a,#06h          ; RD,EP6
+       mov     GPIFTRIG,a
+no_trig:
+       ret
+
+       
+
+initGPIF:
+       mov     DPTR,#EP6CFG    ; BLK data from here to the host
+       mov     a,#11100000b    ; Valid, quad buffering
+       lcall   syncdelaywr     ; write
+
+       mov     dptr,#EP6FIFOCFG
+       mov     a,#00001001b    ; autoin, wordwide
+       lcall   syncdelaywr
+
+       mov     dptr,#EP6AUTOINLENH
+       mov     a,#00000010b    ; 512 bytes
+       lcall   syncdelaywr     ; write
+
+       mov     dptr,#EP6AUTOINLENL
+       mov     a,#00000000b    ; 0
+       lcall   syncdelaywr     ; write
+
+       mov     dptr,#GPIFWFSELECT
+       mov     a,#11111100b    ; waveform 0 for FIFO RD
+       lcall   syncdelaywr
+
+       mov     dptr,#GPIFCTLCFG
+       mov     a,#10000000b    ; tri state for CTRL
+       lcall   syncdelaywr
+
+       mov     dptr,#GPIFIDLECTL
+       mov     a,#11111111b    ; all CTL outputs high
+       lcall   syncdelaywr
+       mov     a,#11111101b    ; reset counter
+       lcall   syncdelaywr
+       mov     a,#11111111b    ; reset to high again
+       lcall   syncdelaywr
+
+       mov     a,#00000010b    ; abort when full
+       mov     dptr,#EP6GPIFFLGSEL
+       lcall   syncdelaywr
+
+       mov     a,#00000001b    ; stop when buffer overfl
+       mov     dptr,#EP6GPIFPDFSTOP
+       lcall   syncdelaywr
+
+       mov     a,#0
+       mov     dptr,#GPIFREADYCFG
+       lcall   syncdelaywr
+
+       mov     a,#0
+       mov     dptr,#GPIFIDLECS
+       lcall   syncdelaywr
+
+; waveform 1
+; this is a dummy waveform which is used
+; during the upload of another waveform into
+; wavefrom 0
+; it branches directly into the IDLE state
+       mov     dptr,#0E420H
+       mov     a,#00111111b    ; branch to IDLE
+       lcall   syncdelaywr
+
+       mov     dptr,#0E428H    ; opcode
+       mov     a,#00000001b    ; deceision point
+       lcall   syncdelaywr
+
+       mov     dptr,#0E430H
+       mov     a,#0FFH         ; output is high
+       lcall   syncdelaywr
+
+       mov     dptr,#0E438H
+       mov     a,#0FFH         ; logic function
+       lcall   syncdelaywr
+
+; signals that no waveform 0 is loaded so far
+       mov     WFLOADED,#0     ; waveform flag
+
+       ret
+
+
+
+;;; initilise the transfer
+;;; It is assumed that the USB interface is in alternate setting 1
+initeps:
+       mov     DPTR,#EP4CFG
+       mov     a,#10100000b    ; valid, bulk, out
+       lcall   syncdelaywr
+
+       mov     dptr,#EP4BCL    ; "arm" it
+       mov     a,#00h
+       lcall   syncdelaywr     ; wait until we can write again
+       lcall   syncdelaywr     ; wait
+       lcall   syncdelaywr     ; wait
+
+       mov     DPTR,#EP8CFG
+       mov     a,#0            ; disable EP8, it overlaps with EP6!!
+       lcall   syncdelaywr
+
+       mov     dptr,#EPIE      ; interrupt enable
+       mov     a,#00100000b    ; enable irq for ep4
+       lcall   syncdelaywr     ; do it
+
+       mov     dptr,#EPIRQ     ; clear IRQs
+       mov     a,#00100100b
+       movx    @dptr,a
+
+        mov     DPTR,#USBIE    ; USB int enable register
+        mov     a,#0            ; SOF etc
+        movx    @DPTR,a         ;
+
+        mov     DPTR,#GPIFIE   ; GPIF int enable register
+        mov     a,#0            ; done IRQ
+        movx    @DPTR,a         ;
+
+       mov     EIE,#00000001b  ; enable INT2 in the 8051's SFR
+       mov     IE,#80h         ; IE, enable all interrupts
+
+       ret
+
+
+;;; interrupt-routine for ep4
+;;; receives the channel list and other commands
+ep4_isr:
+       push    dps
+       push    dpl
+       push    dph
+       push    dpl1
+       push    dph1
+       push    acc
+       push    psw
+       push    00h             ; R0
+       push    01h             ; R1
+       push    02h             ; R2
+       push    03h             ; R3
+       push    04h             ; R4
+       push    05h             ; R5
+       push    06h             ; R6
+       push    07h             ; R7
+               
+       mov     dptr,#0f400h    ; FIFO buffer of EP4
+       movx    a,@dptr         ; get the first byte
+
+       mov     dptr,#ep4_jmp   ; jump table for the different functions
+       rl      a               ; multiply by 2: sizeof sjmp
+       jmp     @a+dptr         ; jump to the jump table
+
+ep4_jmp:
+       sjmp    storewaveform   ; a=0
+       sjmp    init_ep6        ; a=1
+       
+init_ep6:
+       ; stop ep6
+       ; just now do nothing
+
+       ljmp    over_wf
+
+
+storewaveform:
+       mov     WFLOADED,#0     ; waveform flag
+
+       mov     dptr,#EP6FIFOCFG
+       mov     a,#00000000b    ;
+       lcall   syncdelaywr
+
+       mov     dptr,#GPIFABORT
+       mov     a,#0ffh         ; abort all transfers
+       lcall   syncdelaywr
+
+wait_f_abort:
+       mov     a,GPIFTRIG      ; GPIF status
+       anl     a,#80h          ; done bit
+       jz      wait_f_abort    ; GPIF busy
+
+       mov     dptr,#GPIFWFSELECT
+       mov     a,#11111101b    ; select dummy waveform
+       movx    @dptr,a
+       lcall   syncdelay
+
+       mov     dptr,#FIFORESET
+       mov     a,#80h          ; NAK
+       lcall   syncdelaywr
+       mov     a,#6            ; reset EP6
+       lcall   syncdelaywr
+       mov     a,#0            ; normal op
+       lcall   syncdelaywr
+
+; change to dummy waveform 1
+       mov     a,#06h          ; RD,EP6
+       mov     GPIFTRIG,a
+
+; wait a bit
+       mov     r2,255
+loopx:
+       djnz    r2,loopx
+
+; abort waveform if not already so
+       mov     dptr,#GPIFABORT
+       mov     a,#0ffh         ; abort all transfers
+       lcall   syncdelaywr
+
+; wait again
+       mov     r2,255
+loopx2:
+       djnz    r2,loopx2
+
+; check for DONE
+wait_f_abort2:
+       mov     a,GPIFTRIG      ; GPIF status
+       anl     a,#80h          ; done bit
+       jz      wait_f_abort2   ; GPIF busy
+
+; upload the new waveform into waveform 0
+       mov     AUTOPTRH2,#0E4H ; XDATA0H
+       lcall   syncdelay
+       mov     AUTOPTRL2,#00H  ; XDATA0L
+       lcall   syncdelay
+
+       mov     AUTOPTRH1,#0F4H ; EP4 high
+       lcall   syncdelay
+       mov     AUTOPTRL1,#01H  ; EP4 low
+       lcall   syncdelay
+
+       mov     AUTOPTRSETUP,#7 ; autoinc and enable
+       lcall   syncdelay
+
+       mov     r2,#20H         ; 32 bytes to transfer
+
+wavetr:
+       mov     dptr,#XAUTODAT1
+       movx    a,@dptr
+       lcall   syncdelay
+       mov     dptr,#XAUTODAT2
+       movx    @dptr,a
+       lcall   syncdelay
+       djnz    r2,wavetr
+
+       mov     dptr,#EP6FIFOCFG
+       mov     a,#00001001b    ; autoin, wordwide
+       lcall   syncdelaywr
+
+       mov     dptr,#GPIFWFSELECT
+       mov     a,#11111100b
+       movx    @dptr,a
+       lcall   syncdelay
+
+       mov     dptr,#FIFORESET
+       mov     a,#80h          ; NAK
+       lcall   syncdelaywr
+       mov     a,#6            ; reset EP6
+       lcall   syncdelaywr
+       mov     a,#0            ; normal op
+       lcall   syncdelaywr
+
+       mov     dptr,#0E400H+10H; waveform 0: first CTL byte
+       movx    a,@dptr         ; get it
+       orl     a,#11111011b    ; force all bits to one except the range bit
+       mov     dptr,#GPIFIDLECTL
+       lcall   syncdelaywr
+
+       mov     WFLOADED,#1     ; waveform flag
+
+; do the common things here    
+over_wf:       
+       mov     dptr,#EP4BCL
+       mov     a,#00h
+       movx    @DPTR,a         ; arm it
+       lcall   syncdelay       ; wait
+       movx    @DPTR,a         ; arm it
+       lcall   syncdelay       ; wait
+
+       ;; clear INT2
+       mov     a,EXIF          ; FIRST clear the USB (INT2) interrupt request
+       clr     acc.4
+       mov     EXIF,a          ; Note: EXIF reg is not 8051 bit-addressable
+
+       mov     DPTR,#EPIRQ     ; 
+       mov     a,#00100000b    ; clear the ep4irq
+       movx    @DPTR,a
+
+       pop     07h
+       pop     06h
+       pop     05h
+       pop     04h             ; R4
+       pop     03h             ; R3
+       pop     02h             ; R2
+       pop     01h             ; R1
+       pop     00h             ; R0
+       pop     psw
+       pop     acc 
+       pop     dph1 
+       pop     dpl1
+       pop     dph 
+       pop     dpl 
+       pop     dps
+       reti
+
+
+;; need to delay every time the byte counters
+;; for the EPs have been changed.
+
+syncdelay:
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       ret
+
+
+syncdelaywr:
+       lcall   syncdelay
+       movx    @dptr,a
+       ret
+
+
+.End
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/usbdux_firmware.bin b/usbdux_firmware.bin
new file mode 100644 (file)
index 0000000..7f537fc
Binary files /dev/null and b/usbdux_firmware.bin differ
diff --git a/usbduxfast_firmware.bin b/usbduxfast_firmware.bin
new file mode 100644 (file)
index 0000000..3a6441d
Binary files /dev/null and b/usbduxfast_firmware.bin differ
diff --git a/v4l-cx231xx-avcore-01.fw b/v4l-cx231xx-avcore-01.fw
new file mode 100644 (file)
index 0000000..78c5e9e
Binary files /dev/null and b/v4l-cx231xx-avcore-01.fw differ
diff --git a/v4l-cx23418-apu.fw b/v4l-cx23418-apu.fw
new file mode 100644 (file)
index 0000000..04351f1
Binary files /dev/null and b/v4l-cx23418-apu.fw differ
diff --git a/v4l-cx23418-cpu.fw b/v4l-cx23418-cpu.fw
new file mode 100644 (file)
index 0000000..22227b6
Binary files /dev/null and b/v4l-cx23418-cpu.fw differ
diff --git a/v4l-cx23418-dig.fw b/v4l-cx23418-dig.fw
new file mode 100644 (file)
index 0000000..cfd6e84
Binary files /dev/null and b/v4l-cx23418-dig.fw differ
diff --git a/v4l-cx23885-avcore-01.fw b/v4l-cx23885-avcore-01.fw
new file mode 100644 (file)
index 0000000..5efd51c
Binary files /dev/null and b/v4l-cx23885-avcore-01.fw differ
diff --git a/v4l-cx23885-enc.fw b/v4l-cx23885-enc.fw
new file mode 100644 (file)
index 0000000..5efd51c
Binary files /dev/null and b/v4l-cx23885-enc.fw differ
diff --git a/v4l-cx25840.fw b/v4l-cx25840.fw
new file mode 100644 (file)
index 0000000..baa89ff
Binary files /dev/null and b/v4l-cx25840.fw differ