diff options
Diffstat (limited to 'at76c503.c')
-rw-r--r-- | at76c503.c | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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, |