net1080.c 16 KB

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