net1080.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. /*
  2. * Net1080 based USB host-to-host cables
  3. * Copyright (C) 2000-2005 by David Brownell
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. // #define DEBUG // error path messages, extra info
  20. // #define VERBOSE // more; success messages
  21. #include <linux/config.h>
  22. #ifdef CONFIG_USB_DEBUG
  23. # define DEBUG
  24. #endif
  25. #include <linux/module.h>
  26. #include <linux/sched.h>
  27. #include <linux/init.h>
  28. #include <linux/netdevice.h>
  29. #include <linux/etherdevice.h>
  30. #include <linux/ethtool.h>
  31. #include <linux/workqueue.h>
  32. #include <linux/mii.h>
  33. #include <linux/usb.h>
  34. #include <asm/unaligned.h>
  35. #include "usbnet.h"
  36. /*
  37. * Netchip 1080 driver ... http://www.netchip.com
  38. * (Sept 2004: End-of-life announcement has been sent.)
  39. * Used in (some) LapLink cables
  40. */
  41. #define frame_errors data[1]
  42. /*
  43. * NetChip framing of ethernet packets, supporting additional error
  44. * checks for links that may drop bulk packets from inside messages.
  45. * Odd USB length == always short read for last usb packet.
  46. * - nc_header
  47. * - Ethernet header (14 bytes)
  48. * - payload
  49. * - (optional padding byte, if needed so length becomes odd)
  50. * - nc_trailer
  51. *
  52. * This framing is to be avoided for non-NetChip devices.
  53. */
  54. struct nc_header { // packed:
  55. __le16 hdr_len; // sizeof nc_header (LE, all)
  56. __le16 packet_len; // payload size (including ethhdr)
  57. __le16 packet_id; // detects dropped packets
  58. #define MIN_HEADER 6
  59. // all else is optional, and must start with:
  60. // __le16 vendorId; // from usb-if
  61. // __le16 productId;
  62. } __attribute__((__packed__));
  63. #define PAD_BYTE ((unsigned char)0xAC)
  64. struct nc_trailer {
  65. __le16 packet_id;
  66. } __attribute__((__packed__));
  67. // packets may use FLAG_FRAMING_NC and optional pad
  68. #define FRAMED_SIZE(mtu) (sizeof (struct nc_header) \
  69. + sizeof (struct ethhdr) \
  70. + (mtu) \
  71. + 1 \
  72. + sizeof (struct nc_trailer))
  73. #define MIN_FRAMED FRAMED_SIZE(0)
  74. /* packets _could_ be up to 64KB... */
  75. #define NC_MAX_PACKET 32767
  76. /*
  77. * Zero means no timeout; else, how long a 64 byte bulk packet may be queued
  78. * before the hardware drops it. If that's done, the driver will need to
  79. * frame network packets to guard against the dropped USB packets. The win32
  80. * driver sets this for both sides of the link.
  81. */
  82. #define NC_READ_TTL_MS ((u8)255) // ms
  83. /*
  84. * We ignore most registers and EEPROM contents.
  85. */
  86. #define REG_USBCTL ((u8)0x04)
  87. #define REG_TTL ((u8)0x10)
  88. #define REG_STATUS ((u8)0x11)
  89. /*
  90. * Vendor specific requests to read/write data
  91. */
  92. #define REQUEST_REGISTER ((u8)0x10)
  93. #define REQUEST_EEPROM ((u8)0x11)
  94. static int
  95. nc_vendor_read(struct usbnet *dev, u8 req, u8 regnum, u16 *retval_ptr)
  96. {
  97. int status = usb_control_msg(dev->udev,
  98. usb_rcvctrlpipe(dev->udev, 0),
  99. req,
  100. USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
  101. 0, regnum,
  102. retval_ptr, sizeof *retval_ptr,
  103. USB_CTRL_GET_TIMEOUT);
  104. if (status > 0)
  105. status = 0;
  106. if (!status)
  107. le16_to_cpus(retval_ptr);
  108. return status;
  109. }
  110. static inline int
  111. nc_register_read(struct usbnet *dev, u8 regnum, u16 *retval_ptr)
  112. {
  113. return nc_vendor_read(dev, REQUEST_REGISTER, regnum, retval_ptr);
  114. }
  115. // no retval ... can become async, usable in_interrupt()
  116. static void
  117. nc_vendor_write(struct usbnet *dev, u8 req, u8 regnum, u16 value)
  118. {
  119. usb_control_msg(dev->udev,
  120. usb_sndctrlpipe(dev->udev, 0),
  121. req,
  122. USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
  123. value, regnum,
  124. NULL, 0, // data is in setup packet
  125. USB_CTRL_SET_TIMEOUT);
  126. }
  127. static inline void
  128. nc_register_write(struct usbnet *dev, u8 regnum, u16 value)
  129. {
  130. nc_vendor_write(dev, REQUEST_REGISTER, regnum, value);
  131. }
  132. #if 0
  133. static void nc_dump_registers(struct usbnet *dev)
  134. {
  135. u8 reg;
  136. u16 *vp = kmalloc(sizeof (u16));
  137. if (!vp) {
  138. dbg("no memory?");
  139. return;
  140. }
  141. dbg("%s registers:", dev->net->name);
  142. for (reg = 0; reg < 0x20; reg++) {
  143. int retval;
  144. // reading some registers is trouble
  145. if (reg >= 0x08 && reg <= 0xf)
  146. continue;
  147. if (reg >= 0x12 && reg <= 0x1e)
  148. continue;
  149. retval = nc_register_read(dev, reg, vp);
  150. if (retval < 0)
  151. dbg("%s reg [0x%x] ==> error %d",
  152. dev->net->name, reg, retval);
  153. else
  154. dbg("%s reg [0x%x] = 0x%x",
  155. dev->net->name, reg, *vp);
  156. }
  157. kfree(vp);
  158. }
  159. #endif
  160. /*-------------------------------------------------------------------------*/
  161. /*
  162. * Control register
  163. */
  164. #define USBCTL_WRITABLE_MASK 0x1f0f
  165. // bits 15-13 reserved, r/o
  166. #define USBCTL_ENABLE_LANG (1 << 12)
  167. #define USBCTL_ENABLE_MFGR (1 << 11)
  168. #define USBCTL_ENABLE_PROD (1 << 10)
  169. #define USBCTL_ENABLE_SERIAL (1 << 9)
  170. #define USBCTL_ENABLE_DEFAULTS (1 << 8)
  171. // bits 7-4 reserved, r/o
  172. #define USBCTL_FLUSH_OTHER (1 << 3)
  173. #define USBCTL_FLUSH_THIS (1 << 2)
  174. #define USBCTL_DISCONN_OTHER (1 << 1)
  175. #define USBCTL_DISCONN_THIS (1 << 0)
  176. static inline void nc_dump_usbctl(struct usbnet *dev, u16 usbctl)
  177. {
  178. if (!netif_msg_link(dev))
  179. return;
  180. devdbg(dev, "net1080 %s-%s usbctl 0x%x:%s%s%s%s%s;"
  181. " this%s%s;"
  182. " other%s%s; r/o 0x%x",
  183. dev->udev->bus->bus_name, dev->udev->devpath,
  184. usbctl,
  185. (usbctl & USBCTL_ENABLE_LANG) ? " lang" : "",
  186. (usbctl & USBCTL_ENABLE_MFGR) ? " mfgr" : "",
  187. (usbctl & USBCTL_ENABLE_PROD) ? " prod" : "",
  188. (usbctl & USBCTL_ENABLE_SERIAL) ? " serial" : "",
  189. (usbctl & USBCTL_ENABLE_DEFAULTS) ? " defaults" : "",
  190. (usbctl & USBCTL_FLUSH_OTHER) ? " FLUSH" : "",
  191. (usbctl & USBCTL_DISCONN_OTHER) ? " DIS" : "",
  192. (usbctl & USBCTL_FLUSH_THIS) ? " FLUSH" : "",
  193. (usbctl & USBCTL_DISCONN_THIS) ? " DIS" : "",
  194. usbctl & ~USBCTL_WRITABLE_MASK
  195. );
  196. }
  197. /*-------------------------------------------------------------------------*/
  198. /*
  199. * Status register
  200. */
  201. #define STATUS_PORT_A (1 << 15)
  202. #define STATUS_CONN_OTHER (1 << 14)
  203. #define STATUS_SUSPEND_OTHER (1 << 13)
  204. #define STATUS_MAILBOX_OTHER (1 << 12)
  205. #define STATUS_PACKETS_OTHER(n) (((n) >> 8) && 0x03)
  206. #define STATUS_CONN_THIS (1 << 6)
  207. #define STATUS_SUSPEND_THIS (1 << 5)
  208. #define STATUS_MAILBOX_THIS (1 << 4)
  209. #define STATUS_PACKETS_THIS(n) (((n) >> 0) && 0x03)
  210. #define STATUS_UNSPEC_MASK 0x0c8c
  211. #define STATUS_NOISE_MASK ((u16)~(0x0303|STATUS_UNSPEC_MASK))
  212. static inline void nc_dump_status(struct usbnet *dev, u16 status)
  213. {
  214. if (!netif_msg_link(dev))
  215. return;
  216. devdbg(dev, "net1080 %s-%s status 0x%x:"
  217. " this (%c) PKT=%d%s%s%s;"
  218. " other PKT=%d%s%s%s; unspec 0x%x",
  219. dev->udev->bus->bus_name, dev->udev->devpath,
  220. status,
  221. // XXX the packet counts don't seem right
  222. // (1 at reset, not 0); maybe UNSPEC too
  223. (status & STATUS_PORT_A) ? 'A' : 'B',
  224. STATUS_PACKETS_THIS(status),
  225. (status & STATUS_CONN_THIS) ? " CON" : "",
  226. (status & STATUS_SUSPEND_THIS) ? " SUS" : "",
  227. (status & STATUS_MAILBOX_THIS) ? " MBOX" : "",
  228. STATUS_PACKETS_OTHER(status),
  229. (status & STATUS_CONN_OTHER) ? " CON" : "",
  230. (status & STATUS_SUSPEND_OTHER) ? " SUS" : "",
  231. (status & STATUS_MAILBOX_OTHER) ? " MBOX" : "",
  232. status & STATUS_UNSPEC_MASK
  233. );
  234. }
  235. /*-------------------------------------------------------------------------*/
  236. /*
  237. * TTL register
  238. */
  239. #define TTL_THIS(ttl) (0x00ff & ttl)
  240. #define TTL_OTHER(ttl) (0x00ff & (ttl >> 8))
  241. #define MK_TTL(this,other) ((u16)(((other)<<8)|(0x00ff&(this))))
  242. static inline void nc_dump_ttl(struct usbnet *dev, u16 ttl)
  243. {
  244. if (netif_msg_link(dev))
  245. devdbg(dev, "net1080 %s-%s ttl 0x%x this = %d, other = %d",
  246. dev->udev->bus->bus_name, dev->udev->devpath,
  247. ttl, TTL_THIS(ttl), TTL_OTHER(ttl));
  248. }
  249. /*-------------------------------------------------------------------------*/
  250. static int net1080_reset(struct usbnet *dev)
  251. {
  252. u16 usbctl, status, ttl;
  253. u16 *vp = kmalloc(sizeof (u16), GFP_KERNEL);
  254. int retval;
  255. if (!vp)
  256. return -ENOMEM;
  257. // nc_dump_registers(dev);
  258. if ((retval = nc_register_read(dev, REG_STATUS, vp)) < 0) {
  259. dbg("can't read %s-%s status: %d",
  260. dev->udev->bus->bus_name, dev->udev->devpath, retval);
  261. goto done;
  262. }
  263. status = *vp;
  264. nc_dump_status(dev, status);
  265. if ((retval = nc_register_read(dev, REG_USBCTL, vp)) < 0) {
  266. dbg("can't read USBCTL, %d", retval);
  267. goto done;
  268. }
  269. usbctl = *vp;
  270. nc_dump_usbctl(dev, usbctl);
  271. nc_register_write(dev, REG_USBCTL,
  272. USBCTL_FLUSH_THIS | USBCTL_FLUSH_OTHER);
  273. if ((retval = nc_register_read(dev, REG_TTL, vp)) < 0) {
  274. dbg("can't read TTL, %d", retval);
  275. goto done;
  276. }
  277. ttl = *vp;
  278. // nc_dump_ttl(dev, ttl);
  279. nc_register_write(dev, REG_TTL,
  280. MK_TTL(NC_READ_TTL_MS, TTL_OTHER(ttl)) );
  281. dbg("%s: assigned TTL, %d ms", dev->net->name, NC_READ_TTL_MS);
  282. if (netif_msg_link(dev))
  283. devinfo(dev, "port %c, peer %sconnected",
  284. (status & STATUS_PORT_A) ? 'A' : 'B',
  285. (status & STATUS_CONN_OTHER) ? "" : "dis"
  286. );
  287. retval = 0;
  288. done:
  289. kfree(vp);
  290. return retval;
  291. }
  292. static int net1080_check_connect(struct usbnet *dev)
  293. {
  294. int retval;
  295. u16 status;
  296. u16 *vp = kmalloc(sizeof (u16), GFP_KERNEL);
  297. if (!vp)
  298. return -ENOMEM;
  299. retval = nc_register_read(dev, REG_STATUS, vp);
  300. status = *vp;
  301. kfree(vp);
  302. if (retval != 0) {
  303. dbg("%s net1080_check_conn read - %d", dev->net->name, retval);
  304. return retval;
  305. }
  306. if ((status & STATUS_CONN_OTHER) != STATUS_CONN_OTHER)
  307. return -ENOLINK;
  308. return 0;
  309. }
  310. static void nc_flush_complete(struct urb *urb, struct pt_regs *regs)
  311. {
  312. kfree(urb->context);
  313. usb_free_urb(urb);
  314. }
  315. static void nc_ensure_sync(struct usbnet *dev)
  316. {
  317. dev->frame_errors++;
  318. if (dev->frame_errors > 5) {
  319. struct urb *urb;
  320. struct usb_ctrlrequest *req;
  321. int status;
  322. /* Send a flush */
  323. urb = usb_alloc_urb(0, SLAB_ATOMIC);
  324. if (!urb)
  325. return;
  326. req = kmalloc(sizeof *req, GFP_ATOMIC);
  327. if (!req) {
  328. usb_free_urb(urb);
  329. return;
  330. }
  331. req->bRequestType = USB_DIR_OUT
  332. | USB_TYPE_VENDOR
  333. | USB_RECIP_DEVICE;
  334. req->bRequest = REQUEST_REGISTER;
  335. req->wValue = cpu_to_le16(USBCTL_FLUSH_THIS
  336. | USBCTL_FLUSH_OTHER);
  337. req->wIndex = cpu_to_le16(REG_USBCTL);
  338. req->wLength = cpu_to_le16(0);
  339. /* queue an async control request, we don't need
  340. * to do anything when it finishes except clean up.
  341. */
  342. usb_fill_control_urb(urb, dev->udev,
  343. usb_sndctrlpipe(dev->udev, 0),
  344. (unsigned char *) req,
  345. NULL, 0,
  346. nc_flush_complete, req);
  347. status = usb_submit_urb(urb, GFP_ATOMIC);
  348. if (status) {
  349. kfree(req);
  350. usb_free_urb(urb);
  351. return;
  352. }
  353. if (netif_msg_rx_err(dev))
  354. devdbg(dev, "flush net1080; too many framing errors");
  355. dev->frame_errors = 0;
  356. }
  357. }
  358. static int net1080_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
  359. {
  360. struct nc_header *header;
  361. struct nc_trailer *trailer;
  362. u16 hdr_len, packet_len;
  363. if (!(skb->len & 0x01)) {
  364. #ifdef DEBUG
  365. struct net_device *net = dev->net;
  366. dbg("rx framesize %d range %d..%d mtu %d", skb->len,
  367. net->hard_header_len, dev->hard_mtu, net->mtu);
  368. #endif
  369. dev->stats.rx_frame_errors++;
  370. nc_ensure_sync(dev);
  371. return 0;
  372. }
  373. header = (struct nc_header *) skb->data;
  374. hdr_len = le16_to_cpup(&header->hdr_len);
  375. packet_len = le16_to_cpup(&header->packet_len);
  376. if (FRAMED_SIZE(packet_len) > NC_MAX_PACKET) {
  377. dev->stats.rx_frame_errors++;
  378. dbg("packet too big, %d", packet_len);
  379. nc_ensure_sync(dev);
  380. return 0;
  381. } else if (hdr_len < MIN_HEADER) {
  382. dev->stats.rx_frame_errors++;
  383. dbg("header too short, %d", hdr_len);
  384. nc_ensure_sync(dev);
  385. return 0;
  386. } else if (hdr_len > MIN_HEADER) {
  387. // out of band data for us?
  388. dbg("header OOB, %d bytes", hdr_len - MIN_HEADER);
  389. nc_ensure_sync(dev);
  390. // switch (vendor/product ids) { ... }
  391. }
  392. skb_pull(skb, hdr_len);
  393. trailer = (struct nc_trailer *)
  394. (skb->data + skb->len - sizeof *trailer);
  395. skb_trim(skb, skb->len - sizeof *trailer);
  396. if ((packet_len & 0x01) == 0) {
  397. if (skb->data [packet_len] != PAD_BYTE) {
  398. dev->stats.rx_frame_errors++;
  399. dbg("bad pad");
  400. return 0;
  401. }
  402. skb_trim(skb, skb->len - 1);
  403. }
  404. if (skb->len != packet_len) {
  405. dev->stats.rx_frame_errors++;
  406. dbg("bad packet len %d (expected %d)",
  407. skb->len, packet_len);
  408. nc_ensure_sync(dev);
  409. return 0;
  410. }
  411. if (header->packet_id != get_unaligned(&trailer->packet_id)) {
  412. dev->stats.rx_fifo_errors++;
  413. dbg("(2+ dropped) rx packet_id mismatch 0x%x 0x%x",
  414. le16_to_cpu(header->packet_id),
  415. le16_to_cpu(trailer->packet_id));
  416. return 0;
  417. }
  418. #if 0
  419. devdbg(dev, "frame <rx h %d p %d id %d", header->hdr_len,
  420. header->packet_len, header->packet_id);
  421. #endif
  422. dev->frame_errors = 0;
  423. return 1;
  424. }
  425. static struct sk_buff *
  426. net1080_tx_fixup(struct usbnet *dev, struct sk_buff *skb, unsigned flags)
  427. {
  428. int padlen;
  429. struct sk_buff *skb2;
  430. struct nc_header *header = NULL;
  431. struct nc_trailer *trailer = NULL;
  432. int len = skb->len;
  433. padlen = ((len + sizeof (struct nc_header)
  434. + sizeof (struct nc_trailer)) & 0x01) ? 0 : 1;
  435. if (!skb_cloned(skb)) {
  436. int headroom = skb_headroom(skb);
  437. int tailroom = skb_tailroom(skb);
  438. if ((padlen + sizeof (struct nc_trailer)) <= tailroom
  439. && sizeof (struct nc_header) <= headroom)
  440. /* There's enough head and tail room */
  441. goto encapsulate;
  442. if ((sizeof (struct nc_header) + padlen
  443. + sizeof (struct nc_trailer)) <
  444. (headroom + tailroom)) {
  445. /* There's enough total room, so just readjust */
  446. skb->data = memmove(skb->head
  447. + sizeof (struct nc_header),
  448. skb->data, skb->len);
  449. skb->tail = skb->data + len;
  450. goto encapsulate;
  451. }
  452. }
  453. /* Create a new skb to use with the correct size */
  454. skb2 = skb_copy_expand(skb,
  455. sizeof (struct nc_header),
  456. sizeof (struct nc_trailer) + padlen,
  457. flags);
  458. dev_kfree_skb_any(skb);
  459. if (!skb2)
  460. return skb2;
  461. skb = skb2;
  462. encapsulate:
  463. /* header first */
  464. header = (struct nc_header *) skb_push(skb, sizeof *header);
  465. header->hdr_len = cpu_to_le16(sizeof (*header));
  466. header->packet_len = cpu_to_le16(len);
  467. header->packet_id = cpu_to_le16((u16)dev->xid++);
  468. /* maybe pad; then trailer */
  469. if (!((skb->len + sizeof *trailer) & 0x01))
  470. *skb_put(skb, 1) = PAD_BYTE;
  471. trailer = (struct nc_trailer *) skb_put(skb, sizeof *trailer);
  472. put_unaligned(header->packet_id, &trailer->packet_id);
  473. #if 0
  474. devdbg(dev, "frame >tx h %d p %d id %d",
  475. header->hdr_len, header->packet_len,
  476. header->packet_id);
  477. #endif
  478. return skb;
  479. }
  480. static int net1080_bind(struct usbnet *dev, struct usb_interface *intf)
  481. {
  482. unsigned extra = sizeof (struct nc_header)
  483. + 1
  484. + sizeof (struct nc_trailer);
  485. dev->net->hard_header_len += extra;
  486. dev->rx_urb_size = dev->net->hard_header_len + dev->net->mtu;
  487. dev->hard_mtu = NC_MAX_PACKET;
  488. return usbnet_get_endpoints (dev, intf);
  489. }
  490. static const struct driver_info net1080_info = {
  491. .description = "NetChip TurboCONNECT",
  492. .flags = FLAG_FRAMING_NC,
  493. .bind = net1080_bind,
  494. .reset = net1080_reset,
  495. .check_connect = net1080_check_connect,
  496. .rx_fixup = net1080_rx_fixup,
  497. .tx_fixup = net1080_tx_fixup,
  498. };
  499. static const struct usb_device_id products [] = {
  500. {
  501. USB_DEVICE(0x0525, 0x1080), // NetChip ref design
  502. .driver_info = (unsigned long) &net1080_info,
  503. }, {
  504. USB_DEVICE(0x06D0, 0x0622), // Laplink Gold
  505. .driver_info = (unsigned long) &net1080_info,
  506. },
  507. { }, // END
  508. };
  509. MODULE_DEVICE_TABLE(usb, products);
  510. static struct usb_driver net1080_driver = {
  511. .owner = THIS_MODULE,
  512. .name = "net1080",
  513. .id_table = products,
  514. .probe = usbnet_probe,
  515. .disconnect = usbnet_disconnect,
  516. .suspend = usbnet_suspend,
  517. .resume = usbnet_resume,
  518. };
  519. static int __init net1080_init(void)
  520. {
  521. return usb_register(&net1080_driver);
  522. }
  523. module_init(net1080_init);
  524. static void __exit net1080_exit(void)
  525. {
  526. usb_deregister(&net1080_driver);
  527. }
  528. module_exit(net1080_exit);
  529. MODULE_AUTHOR("David Brownell");
  530. MODULE_DESCRIPTION("NetChip 1080 based USB Host-to-Host Links");
  531. MODULE_LICENSE("GPL");