kobil_sct.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /*
  2. * KOBIL USB Smart Card Terminal Driver
  3. *
  4. * Copyright (C) 2002 KOBIL Systems GmbH
  5. * Author: Thomas Wahrenbruch
  6. *
  7. * Contact: linuxusb@kobil.de
  8. *
  9. * This program is largely derived from work by the linux-usb group
  10. * and associated source files. Please see the usb/serial files for
  11. * individual credits and copyrights.
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * Thanks to Greg Kroah-Hartman (greg@kroah.com) for his help and
  19. * patience.
  20. *
  21. * Supported readers: USB TWIN, KAAN Standard Plus and SecOVID Reader Plus
  22. * (Adapter K), B1 Professional and KAAN Professional (Adapter B)
  23. */
  24. #include <linux/kernel.h>
  25. #include <linux/errno.h>
  26. #include <linux/slab.h>
  27. #include <linux/tty.h>
  28. #include <linux/tty_driver.h>
  29. #include <linux/tty_flip.h>
  30. #include <linux/module.h>
  31. #include <linux/spinlock.h>
  32. #include <linux/uaccess.h>
  33. #include <linux/usb.h>
  34. #include <linux/usb/serial.h>
  35. #include <linux/ioctl.h>
  36. #include "kobil_sct.h"
  37. #define DRIVER_AUTHOR "KOBIL Systems GmbH - http://www.kobil.com"
  38. #define DRIVER_DESC "KOBIL USB Smart Card Terminal Driver (experimental)"
  39. #define KOBIL_VENDOR_ID 0x0D46
  40. #define KOBIL_ADAPTER_B_PRODUCT_ID 0x2011
  41. #define KOBIL_ADAPTER_K_PRODUCT_ID 0x2012
  42. #define KOBIL_USBTWIN_PRODUCT_ID 0x0078
  43. #define KOBIL_KAAN_SIM_PRODUCT_ID 0x0081
  44. #define KOBIL_TIMEOUT 500
  45. #define KOBIL_BUF_LENGTH 300
  46. /* Function prototypes */
  47. static int kobil_port_probe(struct usb_serial_port *probe);
  48. static int kobil_port_remove(struct usb_serial_port *probe);
  49. static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port);
  50. static void kobil_close(struct usb_serial_port *port);
  51. static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port,
  52. const unsigned char *buf, int count);
  53. static int kobil_write_room(struct tty_struct *tty);
  54. static int kobil_ioctl(struct tty_struct *tty,
  55. unsigned int cmd, unsigned long arg);
  56. static int kobil_tiocmget(struct tty_struct *tty);
  57. static int kobil_tiocmset(struct tty_struct *tty,
  58. unsigned int set, unsigned int clear);
  59. static void kobil_read_int_callback(struct urb *urb);
  60. static void kobil_write_int_callback(struct urb *urb);
  61. static void kobil_set_termios(struct tty_struct *tty,
  62. struct usb_serial_port *port, struct ktermios *old);
  63. static void kobil_init_termios(struct tty_struct *tty);
  64. static const struct usb_device_id id_table[] = {
  65. { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_ADAPTER_B_PRODUCT_ID) },
  66. { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_ADAPTER_K_PRODUCT_ID) },
  67. { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_USBTWIN_PRODUCT_ID) },
  68. { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_KAAN_SIM_PRODUCT_ID) },
  69. { } /* Terminating entry */
  70. };
  71. MODULE_DEVICE_TABLE(usb, id_table);
  72. static struct usb_serial_driver kobil_device = {
  73. .driver = {
  74. .owner = THIS_MODULE,
  75. .name = "kobil",
  76. },
  77. .description = "KOBIL USB smart card terminal",
  78. .id_table = id_table,
  79. .num_ports = 1,
  80. .port_probe = kobil_port_probe,
  81. .port_remove = kobil_port_remove,
  82. .ioctl = kobil_ioctl,
  83. .set_termios = kobil_set_termios,
  84. .init_termios = kobil_init_termios,
  85. .tiocmget = kobil_tiocmget,
  86. .tiocmset = kobil_tiocmset,
  87. .open = kobil_open,
  88. .close = kobil_close,
  89. .write = kobil_write,
  90. .write_room = kobil_write_room,
  91. .read_int_callback = kobil_read_int_callback,
  92. .write_int_callback = kobil_write_int_callback,
  93. };
  94. static struct usb_serial_driver * const serial_drivers[] = {
  95. &kobil_device, NULL
  96. };
  97. struct kobil_private {
  98. unsigned char buf[KOBIL_BUF_LENGTH]; /* buffer for the APDU to send */
  99. int filled; /* index of the last char in buf */
  100. int cur_pos; /* index of the next char to send in buf */
  101. __u16 device_type;
  102. };
  103. static int kobil_port_probe(struct usb_serial_port *port)
  104. {
  105. struct usb_serial *serial = port->serial;
  106. struct kobil_private *priv;
  107. priv = kmalloc(sizeof(struct kobil_private), GFP_KERNEL);
  108. if (!priv)
  109. return -ENOMEM;
  110. priv->filled = 0;
  111. priv->cur_pos = 0;
  112. priv->device_type = le16_to_cpu(serial->dev->descriptor.idProduct);
  113. switch (priv->device_type) {
  114. case KOBIL_ADAPTER_B_PRODUCT_ID:
  115. dev_dbg(&serial->dev->dev, "KOBIL B1 PRO / KAAN PRO detected\n");
  116. break;
  117. case KOBIL_ADAPTER_K_PRODUCT_ID:
  118. dev_dbg(&serial->dev->dev, "KOBIL KAAN Standard Plus / SecOVID Reader Plus detected\n");
  119. break;
  120. case KOBIL_USBTWIN_PRODUCT_ID:
  121. dev_dbg(&serial->dev->dev, "KOBIL USBTWIN detected\n");
  122. break;
  123. case KOBIL_KAAN_SIM_PRODUCT_ID:
  124. dev_dbg(&serial->dev->dev, "KOBIL KAAN SIM detected\n");
  125. break;
  126. }
  127. usb_set_serial_port_data(port, priv);
  128. return 0;
  129. }
  130. static int kobil_port_remove(struct usb_serial_port *port)
  131. {
  132. struct kobil_private *priv;
  133. priv = usb_get_serial_port_data(port);
  134. kfree(priv);
  135. return 0;
  136. }
  137. static void kobil_init_termios(struct tty_struct *tty)
  138. {
  139. /* Default to echo off and other sane device settings */
  140. tty->termios.c_lflag = 0;
  141. tty->termios.c_iflag &= ~(ISIG | ICANON | ECHO | IEXTEN | XCASE);
  142. tty->termios.c_iflag |= IGNBRK | IGNPAR | IXOFF;
  143. /* do NOT translate CR to CR-NL (0x0A -> 0x0A 0x0D) */
  144. tty->termios.c_oflag &= ~ONLCR;
  145. }
  146. static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port)
  147. {
  148. struct device *dev = &port->dev;
  149. int result = 0;
  150. struct kobil_private *priv;
  151. unsigned char *transfer_buffer;
  152. int transfer_buffer_length = 8;
  153. priv = usb_get_serial_port_data(port);
  154. /* allocate memory for transfer buffer */
  155. transfer_buffer = kzalloc(transfer_buffer_length, GFP_KERNEL);
  156. if (!transfer_buffer)
  157. return -ENOMEM;
  158. /* get hardware version */
  159. result = usb_control_msg(port->serial->dev,
  160. usb_rcvctrlpipe(port->serial->dev, 0),
  161. SUSBCRequest_GetMisc,
  162. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_IN,
  163. SUSBCR_MSC_GetHWVersion,
  164. 0,
  165. transfer_buffer,
  166. transfer_buffer_length,
  167. KOBIL_TIMEOUT
  168. );
  169. dev_dbg(dev, "%s - Send get_HW_version URB returns: %i\n", __func__, result);
  170. dev_dbg(dev, "Hardware version: %i.%i.%i\n", transfer_buffer[0],
  171. transfer_buffer[1], transfer_buffer[2]);
  172. /* get firmware version */
  173. result = usb_control_msg(port->serial->dev,
  174. usb_rcvctrlpipe(port->serial->dev, 0),
  175. SUSBCRequest_GetMisc,
  176. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_IN,
  177. SUSBCR_MSC_GetFWVersion,
  178. 0,
  179. transfer_buffer,
  180. transfer_buffer_length,
  181. KOBIL_TIMEOUT
  182. );
  183. dev_dbg(dev, "%s - Send get_FW_version URB returns: %i\n", __func__, result);
  184. dev_dbg(dev, "Firmware version: %i.%i.%i\n", transfer_buffer[0],
  185. transfer_buffer[1], transfer_buffer[2]);
  186. if (priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID ||
  187. priv->device_type == KOBIL_ADAPTER_K_PRODUCT_ID) {
  188. /* Setting Baudrate, Parity and Stopbits */
  189. result = usb_control_msg(port->serial->dev,
  190. usb_sndctrlpipe(port->serial->dev, 0),
  191. SUSBCRequest_SetBaudRateParityAndStopBits,
  192. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_OUT,
  193. SUSBCR_SBR_9600 | SUSBCR_SPASB_EvenParity |
  194. SUSBCR_SPASB_1StopBit,
  195. 0,
  196. NULL,
  197. 0,
  198. KOBIL_TIMEOUT
  199. );
  200. dev_dbg(dev, "%s - Send set_baudrate URB returns: %i\n", __func__, result);
  201. /* reset all queues */
  202. result = usb_control_msg(port->serial->dev,
  203. usb_sndctrlpipe(port->serial->dev, 0),
  204. SUSBCRequest_Misc,
  205. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_OUT,
  206. SUSBCR_MSC_ResetAllQueues,
  207. 0,
  208. NULL,
  209. 0,
  210. KOBIL_TIMEOUT
  211. );
  212. dev_dbg(dev, "%s - Send reset_all_queues URB returns: %i\n", __func__, result);
  213. }
  214. if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID ||
  215. priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID ||
  216. priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) {
  217. /* start reading (Adapter B 'cause PNP string) */
  218. result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
  219. dev_dbg(dev, "%s - Send read URB returns: %i\n", __func__, result);
  220. }
  221. kfree(transfer_buffer);
  222. return 0;
  223. }
  224. static void kobil_close(struct usb_serial_port *port)
  225. {
  226. /* FIXME: Add rts/dtr methods */
  227. usb_kill_urb(port->interrupt_out_urb);
  228. usb_kill_urb(port->interrupt_in_urb);
  229. }
  230. static void kobil_read_int_callback(struct urb *urb)
  231. {
  232. int result;
  233. struct usb_serial_port *port = urb->context;
  234. unsigned char *data = urb->transfer_buffer;
  235. int status = urb->status;
  236. if (status) {
  237. dev_dbg(&port->dev, "%s - Read int status not zero: %d\n", __func__, status);
  238. return;
  239. }
  240. if (urb->actual_length) {
  241. usb_serial_debug_data(&port->dev, __func__, urb->actual_length,
  242. data);
  243. tty_insert_flip_string(&port->port, data, urb->actual_length);
  244. tty_flip_buffer_push(&port->port);
  245. }
  246. result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
  247. dev_dbg(&port->dev, "%s - Send read URB returns: %i\n", __func__, result);
  248. }
  249. static void kobil_write_int_callback(struct urb *urb)
  250. {
  251. }
  252. static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port,
  253. const unsigned char *buf, int count)
  254. {
  255. int length = 0;
  256. int result = 0;
  257. int todo = 0;
  258. struct kobil_private *priv;
  259. if (count == 0) {
  260. dev_dbg(&port->dev, "%s - write request of 0 bytes\n", __func__);
  261. return 0;
  262. }
  263. priv = usb_get_serial_port_data(port);
  264. if (count > (KOBIL_BUF_LENGTH - priv->filled)) {
  265. dev_dbg(&port->dev, "%s - Error: write request bigger than buffer size\n", __func__);
  266. return -ENOMEM;
  267. }
  268. /* Copy data to buffer */
  269. memcpy(priv->buf + priv->filled, buf, count);
  270. usb_serial_debug_data(&port->dev, __func__, count, priv->buf + priv->filled);
  271. priv->filled = priv->filled + count;
  272. /* only send complete block. TWIN, KAAN SIM and adapter K
  273. use the same protocol. */
  274. if (((priv->device_type != KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 2) && (priv->filled >= (priv->buf[1] + 3))) ||
  275. ((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 3) && (priv->filled >= (priv->buf[2] + 4)))) {
  276. /* stop reading (except TWIN and KAAN SIM) */
  277. if ((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID)
  278. || (priv->device_type == KOBIL_ADAPTER_K_PRODUCT_ID))
  279. usb_kill_urb(port->interrupt_in_urb);
  280. todo = priv->filled - priv->cur_pos;
  281. while (todo > 0) {
  282. /* max 8 byte in one urb (endpoint size) */
  283. length = min(todo, port->interrupt_out_size);
  284. /* copy data to transfer buffer */
  285. memcpy(port->interrupt_out_buffer,
  286. priv->buf + priv->cur_pos, length);
  287. port->interrupt_out_urb->transfer_buffer_length = length;
  288. priv->cur_pos = priv->cur_pos + length;
  289. result = usb_submit_urb(port->interrupt_out_urb,
  290. GFP_ATOMIC);
  291. dev_dbg(&port->dev, "%s - Send write URB returns: %i\n", __func__, result);
  292. todo = priv->filled - priv->cur_pos;
  293. if (todo > 0)
  294. msleep(24);
  295. }
  296. priv->filled = 0;
  297. priv->cur_pos = 0;
  298. /* start reading (except TWIN and KAAN SIM) */
  299. if (priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID ||
  300. priv->device_type == KOBIL_ADAPTER_K_PRODUCT_ID) {
  301. result = usb_submit_urb(port->interrupt_in_urb,
  302. GFP_ATOMIC);
  303. dev_dbg(&port->dev, "%s - Send read URB returns: %i\n", __func__, result);
  304. }
  305. }
  306. return count;
  307. }
  308. static int kobil_write_room(struct tty_struct *tty)
  309. {
  310. /* FIXME */
  311. return 8;
  312. }
  313. static int kobil_tiocmget(struct tty_struct *tty)
  314. {
  315. struct usb_serial_port *port = tty->driver_data;
  316. struct kobil_private *priv;
  317. int result;
  318. unsigned char *transfer_buffer;
  319. int transfer_buffer_length = 8;
  320. priv = usb_get_serial_port_data(port);
  321. if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID
  322. || priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) {
  323. /* This device doesn't support ioctl calls */
  324. return -EINVAL;
  325. }
  326. /* allocate memory for transfer buffer */
  327. transfer_buffer = kzalloc(transfer_buffer_length, GFP_KERNEL);
  328. if (!transfer_buffer)
  329. return -ENOMEM;
  330. result = usb_control_msg(port->serial->dev,
  331. usb_rcvctrlpipe(port->serial->dev, 0),
  332. SUSBCRequest_GetStatusLineState,
  333. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_IN,
  334. 0,
  335. 0,
  336. transfer_buffer,
  337. transfer_buffer_length,
  338. KOBIL_TIMEOUT);
  339. dev_dbg(&port->dev, "%s - Send get_status_line_state URB returns: %i. Statusline: %02x\n",
  340. __func__, result, transfer_buffer[0]);
  341. result = 0;
  342. if ((transfer_buffer[0] & SUSBCR_GSL_DSR) != 0)
  343. result = TIOCM_DSR;
  344. kfree(transfer_buffer);
  345. return result;
  346. }
  347. static int kobil_tiocmset(struct tty_struct *tty,
  348. unsigned int set, unsigned int clear)
  349. {
  350. struct usb_serial_port *port = tty->driver_data;
  351. struct device *dev = &port->dev;
  352. struct kobil_private *priv;
  353. int result;
  354. int dtr = 0;
  355. int rts = 0;
  356. /* FIXME: locking ? */
  357. priv = usb_get_serial_port_data(port);
  358. if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID
  359. || priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) {
  360. /* This device doesn't support ioctl calls */
  361. return -EINVAL;
  362. }
  363. if (set & TIOCM_RTS)
  364. rts = 1;
  365. if (set & TIOCM_DTR)
  366. dtr = 1;
  367. if (clear & TIOCM_RTS)
  368. rts = 0;
  369. if (clear & TIOCM_DTR)
  370. dtr = 0;
  371. if (priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) {
  372. if (dtr != 0)
  373. dev_dbg(dev, "%s - Setting DTR\n", __func__);
  374. else
  375. dev_dbg(dev, "%s - Clearing DTR\n", __func__);
  376. result = usb_control_msg(port->serial->dev,
  377. usb_sndctrlpipe(port->serial->dev, 0),
  378. SUSBCRequest_SetStatusLinesOrQueues,
  379. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_OUT,
  380. ((dtr != 0) ? SUSBCR_SSL_SETDTR : SUSBCR_SSL_CLRDTR),
  381. 0,
  382. NULL,
  383. 0,
  384. KOBIL_TIMEOUT);
  385. } else {
  386. if (rts != 0)
  387. dev_dbg(dev, "%s - Setting RTS\n", __func__);
  388. else
  389. dev_dbg(dev, "%s - Clearing RTS\n", __func__);
  390. result = usb_control_msg(port->serial->dev,
  391. usb_sndctrlpipe(port->serial->dev, 0),
  392. SUSBCRequest_SetStatusLinesOrQueues,
  393. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_OUT,
  394. ((rts != 0) ? SUSBCR_SSL_SETRTS : SUSBCR_SSL_CLRRTS),
  395. 0,
  396. NULL,
  397. 0,
  398. KOBIL_TIMEOUT);
  399. }
  400. dev_dbg(dev, "%s - Send set_status_line URB returns: %i\n", __func__, result);
  401. return (result < 0) ? result : 0;
  402. }
  403. static void kobil_set_termios(struct tty_struct *tty,
  404. struct usb_serial_port *port, struct ktermios *old)
  405. {
  406. struct kobil_private *priv;
  407. int result;
  408. unsigned short urb_val = 0;
  409. int c_cflag = tty->termios.c_cflag;
  410. speed_t speed;
  411. priv = usb_get_serial_port_data(port);
  412. if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID ||
  413. priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) {
  414. /* This device doesn't support ioctl calls */
  415. tty_termios_copy_hw(&tty->termios, old);
  416. return;
  417. }
  418. speed = tty_get_baud_rate(tty);
  419. switch (speed) {
  420. case 1200:
  421. urb_val = SUSBCR_SBR_1200;
  422. break;
  423. default:
  424. speed = 9600;
  425. case 9600:
  426. urb_val = SUSBCR_SBR_9600;
  427. break;
  428. }
  429. urb_val |= (c_cflag & CSTOPB) ? SUSBCR_SPASB_2StopBits :
  430. SUSBCR_SPASB_1StopBit;
  431. if (c_cflag & PARENB) {
  432. if (c_cflag & PARODD)
  433. urb_val |= SUSBCR_SPASB_OddParity;
  434. else
  435. urb_val |= SUSBCR_SPASB_EvenParity;
  436. } else
  437. urb_val |= SUSBCR_SPASB_NoParity;
  438. tty->termios.c_cflag &= ~CMSPAR;
  439. tty_encode_baud_rate(tty, speed, speed);
  440. result = usb_control_msg(port->serial->dev,
  441. usb_sndctrlpipe(port->serial->dev, 0),
  442. SUSBCRequest_SetBaudRateParityAndStopBits,
  443. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_OUT,
  444. urb_val,
  445. 0,
  446. NULL,
  447. 0,
  448. KOBIL_TIMEOUT
  449. );
  450. }
  451. static int kobil_ioctl(struct tty_struct *tty,
  452. unsigned int cmd, unsigned long arg)
  453. {
  454. struct usb_serial_port *port = tty->driver_data;
  455. struct kobil_private *priv = usb_get_serial_port_data(port);
  456. int result;
  457. if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID ||
  458. priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID)
  459. /* This device doesn't support ioctl calls */
  460. return -ENOIOCTLCMD;
  461. switch (cmd) {
  462. case TCFLSH:
  463. result = usb_control_msg(port->serial->dev,
  464. usb_sndctrlpipe(port->serial->dev, 0),
  465. SUSBCRequest_Misc,
  466. USB_TYPE_VENDOR | USB_RECIP_ENDPOINT | USB_DIR_OUT,
  467. SUSBCR_MSC_ResetAllQueues,
  468. 0,
  469. NULL,
  470. 0,
  471. KOBIL_TIMEOUT
  472. );
  473. dev_dbg(&port->dev,
  474. "%s - Send reset_all_queues (FLUSH) URB returns: %i\n",
  475. __func__, result);
  476. return (result < 0) ? -EIO: 0;
  477. default:
  478. return -ENOIOCTLCMD;
  479. }
  480. }
  481. module_usb_serial_driver(serial_drivers, id_table);
  482. MODULE_AUTHOR(DRIVER_AUTHOR);
  483. MODULE_DESCRIPTION(DRIVER_DESC);
  484. MODULE_LICENSE("GPL");