aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjal2 <jal2>2004-01-03 23:24:30 +0000
committerjal2 <jal2>2004-01-03 23:24:30 +0000
commit53e119287c54708153911fb78842784de30a19c1 (patch)
treed9d41886c0d84bb2b3e6f7e66cddd46090af055d
parent56a99cc0e892d416df5f697ffbfab79654b1235a (diff)
version 0.12beta3: fixed bug in at76c503.c:update_usb_intf_descr()version_0_12beta3
for big endian machines (length field in expected_cfg_descr)
-rw-r--r--Makefile4
-rw-r--r--at76c503.c18
2 files changed, 18 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 22b30ca..e3cafc4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-#$Id: Makefile,v 1.18 2003/12/27 00:03:34 jal2 Exp $
+#$Id: Makefile,v 1.19 2004/01/03 23:24:30 jal2 Exp $
-VERSION = 0.12beta2
+VERSION = 0.12beta3
CC=gcc
diff --git a/at76c503.c b/at76c503.c
index 7fbda52..3548650 100644
--- a/at76c503.c
+++ b/at76c503.c
@@ -1,5 +1,5 @@
/* -*- linux-c -*- */
-/* $Id: at76c503.c,v 1.38 2003/12/27 00:03:35 jal2 Exp $
+/* $Id: at76c503.c,v 1.39 2004/01/03 23:24:30 jal2 Exp $
*
* USB at76c503/at76c505 driver
*
@@ -528,10 +528,17 @@ int update_usb_intf_descr(struct usb_device *dev)
{
/* the expected config descr. (two endpoints (bulk in/out) in one interface) */
static const u8 expected_cfg_descr[] =
+#if defined(__LITTLE_ENDIAN)
{0x09, 0x02, 0x20, 0x00, 0x01, 0x01, 0x00, 0x80,
0xFA, 0x09, 0x04, 0x00, 0x00, 0x02, 0xFF, 0x00,
0xFF, 0x00, 0x07, 0x05, 0x85, 0x02, 0x40, 0x00,
0x00, 0x07, 0x05, 0x02, 0x02, 0x40, 0x00, 0x00};
+#else
+ {0x09, 0x02, 0x00, 0x20, 0x01, 0x01, 0x00, 0x80,
+ 0xFA, 0x09, 0x04, 0x00, 0x00, 0x02, 0xFF, 0x00,
+ 0xFF, 0x00, 0x07, 0x05, 0x85, 0x02, 0x40, 0x00,
+ 0x00, 0x07, 0x05, 0x02, 0x02, 0x40, 0x00, 0x00};
+#endif
static const u8 intf0 = 9; /* begin of intf desc in above field */
static const u8 ep0 = 18, ep1 = 25; /* offsets of endpoint descriptors in the above array */
@@ -648,10 +655,17 @@ int update_usb_intf_descr(struct usb_device *dev)
{
/* the expected config descr. (two endpoints (bulk in/out) in one interface) */
static const u8 expected_cfg_descr[] =
+#if defined(__LITTLE_ENDIAN)
{0x09, 0x02, 0x20, 0x00, 0x01, 0x01, 0x00, 0x80,
0xFA, 0x09, 0x04, 0x00, 0x00, 0x02, 0xFF, 0x00,
0xFF, 0x00, 0x07, 0x05, 0x85, 0x02, 0x40, 0x00,
0x00, 0x07, 0x05, 0x02, 0x02, 0x40, 0x00, 0x00};
+#else
+ {0x09, 0x02, 0x00, 0x20, 0x01, 0x01, 0x00, 0x80,
+ 0xFA, 0x09, 0x04, 0x00, 0x00, 0x02, 0xFF, 0x00,
+ 0xFF, 0x00, 0x07, 0x05, 0x85, 0x02, 0x40, 0x00,
+ 0x00, 0x07, 0x05, 0x02, 0x02, 0x40, 0x00, 0x00};
+#endif
static const u8 intf0 = 9; /* begin of intf desc in above field */
static const u8 ep0 = 18, ep1 = 25; /* offsets of endpoint descriptors in the above array */
@@ -5044,7 +5058,7 @@ int init_new_device(struct at76c503 *dev)
else
dev->rx_data_fcs_len = 4;
- info("$Id: at76c503.c,v 1.38 2003/12/27 00:03:35 jal2 Exp $ compiled %s %s", __DATE__, __TIME__);
+ info("$Id: at76c503.c,v 1.39 2004/01/03 23:24:30 jal2 Exp $ compiled %s %s", __DATE__, __TIME__);
info("firmware version %d.%d.%d #%d (fcs_len %d)",
dev->fw_version.major, dev->fw_version.minor,
dev->fw_version.patch, dev->fw_version.build,