~ubuntu-branches/debian/sid/acx100/sid

« back to all changes in this revision

Viewing changes to usb.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Canepa
  • Date: 2008-01-23 23:29:44 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123232944-zj28ri4e3xngonjs
Tags: 20070101-3
Added dpatch in depends (Closes: #462118)

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#define ACX_USB 1
46
46
 
47
47
#include <linux/version.h>
 
48
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)
48
49
#include <linux/config.h>
 
50
#endif
49
51
#include <linux/types.h>
50
52
#include <linux/module.h>
51
53
#include <linux/moduleparam.h>
88
90
#define PRODUCT_ID_WUG2400      0xb21a /* AboCom WUG2400 or SafeCom SWLUT-54125 */
89
91
#define VENDOR_ID_AVM_GMBH      0x057c
90
92
#define PRODUCT_ID_AVM_WLAN_USB 0x5601
 
93
#define PRODUCT_ID_AVM_WLAN_USB_si      0x6201 /* "self install" named Version: driver kills kernel on inbound scans from fritz box ???  */
91
94
#define VENDOR_ID_ZCOM          0x0cde
92
95
#define PRODUCT_ID_ZCOM_XG750   0x0017 /* not tested yet */
93
96
#define VENDOR_ID_TI            0x0451
112
115
*/
113
116
static int acxusb_e_probe(struct usb_interface *, const struct usb_device_id *);
114
117
static void acxusb_e_disconnect(struct usb_interface *);
 
118
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
 
119
static void acxusb_i_complete_tx(struct urb *);
 
120
static void acxusb_i_complete_rx(struct urb *);
 
121
#else
115
122
static void acxusb_i_complete_tx(struct urb *, struct pt_regs *);
116
123
static void acxusb_i_complete_rx(struct urb *, struct pt_regs *);
 
124
#endif
117
125
static int acxusb_e_open(struct net_device *);
118
126
static int acxusb_e_close(struct net_device *);
119
127
static void acxusb_i_set_rx_mode(struct net_device *);
145
153
        { USB_DEVICE(ACX100_VENDOR_ID, ACX100_PRODUCT_ID_UNBOOTED) },
146
154
        { USB_DEVICE(VENDOR_ID_DLINK, PRODUCT_ID_WUG2400) },
147
155
        { USB_DEVICE(VENDOR_ID_AVM_GMBH, PRODUCT_ID_AVM_WLAN_USB) },
 
156
        { USB_DEVICE(VENDOR_ID_AVM_GMBH, PRODUCT_ID_AVM_WLAN_USB_si) },
148
157
        { USB_DEVICE(VENDOR_ID_ZCOM, PRODUCT_ID_ZCOM_XG750) },
149
158
        { USB_DEVICE(VENDOR_ID_TI, PRODUCT_ID_TI_UNKNOWN) },
150
159
        {}
1283
1292
** USB receive is triggered.
1284
1293
*/
1285
1294
static void
 
1295
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
 
1296
acxusb_i_complete_rx(struct urb *urb)
 
1297
#else
1286
1298
acxusb_i_complete_rx(struct urb *urb, struct pt_regs *regs)
 
1299
#endif
1287
1300
{
1288
1301
        acx_device_t *adev;
1289
1302
        rxbuffer_t *ptr;
1503
1516
** This function is invoked upon termination of a USB transfer.
1504
1517
*/
1505
1518
static void
 
1519
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
 
1520
acxusb_i_complete_tx(struct urb *urb)
 
1521
#else
1506
1522
acxusb_i_complete_tx(struct urb *urb, struct pt_regs *regs)
 
1523
#endif
1507
1524
{
1508
1525
        acx_device_t *adev;
1509
1526
        usb_tx_t *tx;