apbuart.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. /*
  2. * Driver for GRLIB serial ports (APBUART)
  3. *
  4. * Based on linux/drivers/serial/amba.c
  5. *
  6. * Copyright (C) 2000 Deep Blue Solutions Ltd.
  7. * Copyright (C) 2003 Konrad Eisele <eiselekd@web.de>
  8. * Copyright (C) 2006 Daniel Hellstrom <daniel@gaisler.com>, Aeroflex Gaisler AB
  9. * Copyright (C) 2008 Gilead Kutnick <kutnickg@zin-tech.com>
  10. * Copyright (C) 2009 Kristoffer Glembo <kristoffer@gaisler.com>, Aeroflex Gaisler AB
  11. */
  12. #if defined(CONFIG_SERIAL_GRLIB_GAISLER_APBUART_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
  13. #define SUPPORT_SYSRQ
  14. #endif
  15. #include <linux/module.h>
  16. #include <linux/tty.h>
  17. #include <linux/ioport.h>
  18. #include <linux/init.h>
  19. #include <linux/serial.h>
  20. #include <linux/console.h>
  21. #include <linux/sysrq.h>
  22. #include <linux/kthread.h>
  23. #include <linux/device.h>
  24. #include <linux/of.h>
  25. #include <linux/of_device.h>
  26. #include <linux/of_platform.h>
  27. #include <linux/of_irq.h>
  28. #include <linux/platform_device.h>
  29. #include <linux/io.h>
  30. #include <linux/serial_core.h>
  31. #include <asm/irq.h>
  32. #include "apbuart.h"
  33. #define SERIAL_APBUART_MAJOR TTY_MAJOR
  34. #define SERIAL_APBUART_MINOR 64
  35. #define UART_DUMMY_RSR_RX 0x8000 /* for ignore all read */
  36. static void apbuart_tx_chars(struct uart_port *port);
  37. static void apbuart_stop_tx(struct uart_port *port)
  38. {
  39. unsigned int cr;
  40. cr = UART_GET_CTRL(port);
  41. cr &= ~UART_CTRL_TI;
  42. UART_PUT_CTRL(port, cr);
  43. }
  44. static void apbuart_start_tx(struct uart_port *port)
  45. {
  46. unsigned int cr;
  47. cr = UART_GET_CTRL(port);
  48. cr |= UART_CTRL_TI;
  49. UART_PUT_CTRL(port, cr);
  50. if (UART_GET_STATUS(port) & UART_STATUS_THE)
  51. apbuart_tx_chars(port);
  52. }
  53. static void apbuart_stop_rx(struct uart_port *port)
  54. {
  55. unsigned int cr;
  56. cr = UART_GET_CTRL(port);
  57. cr &= ~(UART_CTRL_RI);
  58. UART_PUT_CTRL(port, cr);
  59. }
  60. static void apbuart_enable_ms(struct uart_port *port)
  61. {
  62. /* No modem status change interrupts for APBUART */
  63. }
  64. static void apbuart_rx_chars(struct uart_port *port)
  65. {
  66. struct tty_struct *tty = port->state->port.tty;
  67. unsigned int status, ch, rsr, flag;
  68. unsigned int max_chars = port->fifosize;
  69. status = UART_GET_STATUS(port);
  70. while (UART_RX_DATA(status) && (max_chars--)) {
  71. ch = UART_GET_CHAR(port);
  72. flag = TTY_NORMAL;
  73. port->icount.rx++;
  74. rsr = UART_GET_STATUS(port) | UART_DUMMY_RSR_RX;
  75. UART_PUT_STATUS(port, 0);
  76. if (rsr & UART_STATUS_ERR) {
  77. if (rsr & UART_STATUS_BR) {
  78. rsr &= ~(UART_STATUS_FE | UART_STATUS_PE);
  79. port->icount.brk++;
  80. if (uart_handle_break(port))
  81. goto ignore_char;
  82. } else if (rsr & UART_STATUS_PE) {
  83. port->icount.parity++;
  84. } else if (rsr & UART_STATUS_FE) {
  85. port->icount.frame++;
  86. }
  87. if (rsr & UART_STATUS_OE)
  88. port->icount.overrun++;
  89. rsr &= port->read_status_mask;
  90. if (rsr & UART_STATUS_PE)
  91. flag = TTY_PARITY;
  92. else if (rsr & UART_STATUS_FE)
  93. flag = TTY_FRAME;
  94. }
  95. if (uart_handle_sysrq_char(port, ch))
  96. goto ignore_char;
  97. uart_insert_char(port, rsr, UART_STATUS_OE, ch, flag);
  98. ignore_char:
  99. status = UART_GET_STATUS(port);
  100. }
  101. tty_flip_buffer_push(tty);
  102. }
  103. static void apbuart_tx_chars(struct uart_port *port)
  104. {
  105. struct circ_buf *xmit = &port->state->xmit;
  106. int count;
  107. if (port->x_char) {
  108. UART_PUT_CHAR(port, port->x_char);
  109. port->icount.tx++;
  110. port->x_char = 0;
  111. return;
  112. }
  113. if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
  114. apbuart_stop_tx(port);
  115. return;
  116. }
  117. /* amba: fill FIFO */
  118. count = port->fifosize >> 1;
  119. do {
  120. UART_PUT_CHAR(port, xmit->buf[xmit->tail]);
  121. xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
  122. port->icount.tx++;
  123. if (uart_circ_empty(xmit))
  124. break;
  125. } while (--count > 0);
  126. if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
  127. uart_write_wakeup(port);
  128. if (uart_circ_empty(xmit))
  129. apbuart_stop_tx(port);
  130. }
  131. static irqreturn_t apbuart_int(int irq, void *dev_id)
  132. {
  133. struct uart_port *port = dev_id;
  134. unsigned int status;
  135. spin_lock(&port->lock);
  136. status = UART_GET_STATUS(port);
  137. if (status & UART_STATUS_DR)
  138. apbuart_rx_chars(port);
  139. if (status & UART_STATUS_THE)
  140. apbuart_tx_chars(port);
  141. spin_unlock(&port->lock);
  142. return IRQ_HANDLED;
  143. }
  144. static unsigned int apbuart_tx_empty(struct uart_port *port)
  145. {
  146. unsigned int status = UART_GET_STATUS(port);
  147. return status & UART_STATUS_THE ? TIOCSER_TEMT : 0;
  148. }
  149. static unsigned int apbuart_get_mctrl(struct uart_port *port)
  150. {
  151. /* The GRLIB APBUART handles flow control in hardware */
  152. return TIOCM_CAR | TIOCM_DSR | TIOCM_CTS;
  153. }
  154. static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl)
  155. {
  156. /* The GRLIB APBUART handles flow control in hardware */
  157. }
  158. static void apbuart_break_ctl(struct uart_port *port, int break_state)
  159. {
  160. /* We don't support sending break */
  161. }
  162. static int apbuart_startup(struct uart_port *port)
  163. {
  164. int retval;
  165. unsigned int cr;
  166. /* Allocate the IRQ */
  167. retval = request_irq(port->irq, apbuart_int, 0, "apbuart", port);
  168. if (retval)
  169. return retval;
  170. /* Finally, enable interrupts */
  171. cr = UART_GET_CTRL(port);
  172. UART_PUT_CTRL(port,
  173. cr | UART_CTRL_RE | UART_CTRL_TE |
  174. UART_CTRL_RI | UART_CTRL_TI);
  175. return 0;
  176. }
  177. static void apbuart_shutdown(struct uart_port *port)
  178. {
  179. unsigned int cr;
  180. /* disable all interrupts, disable the port */
  181. cr = UART_GET_CTRL(port);
  182. UART_PUT_CTRL(port,
  183. cr & ~(UART_CTRL_RE | UART_CTRL_TE |
  184. UART_CTRL_RI | UART_CTRL_TI));
  185. /* Free the interrupt */
  186. free_irq(port->irq, port);
  187. }
  188. static void apbuart_set_termios(struct uart_port *port,
  189. struct ktermios *termios, struct ktermios *old)
  190. {
  191. unsigned int cr;
  192. unsigned long flags;
  193. unsigned int baud, quot;
  194. /* Ask the core to calculate the divisor for us. */
  195. baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
  196. if (baud == 0)
  197. panic("invalid baudrate %i\n", port->uartclk / 16);
  198. /* uart_get_divisor calc a *16 uart freq, apbuart is *8 */
  199. quot = (uart_get_divisor(port, baud)) * 2;
  200. cr = UART_GET_CTRL(port);
  201. cr &= ~(UART_CTRL_PE | UART_CTRL_PS);
  202. if (termios->c_cflag & PARENB) {
  203. cr |= UART_CTRL_PE;
  204. if ((termios->c_cflag & PARODD))
  205. cr |= UART_CTRL_PS;
  206. }
  207. /* Enable flow control. */
  208. if (termios->c_cflag & CRTSCTS)
  209. cr |= UART_CTRL_FL;
  210. spin_lock_irqsave(&port->lock, flags);
  211. /* Update the per-port timeout. */
  212. uart_update_timeout(port, termios->c_cflag, baud);
  213. port->read_status_mask = UART_STATUS_OE;
  214. if (termios->c_iflag & INPCK)
  215. port->read_status_mask |= UART_STATUS_FE | UART_STATUS_PE;
  216. /* Characters to ignore */
  217. port->ignore_status_mask = 0;
  218. if (termios->c_iflag & IGNPAR)
  219. port->ignore_status_mask |= UART_STATUS_FE | UART_STATUS_PE;
  220. /* Ignore all characters if CREAD is not set. */
  221. if ((termios->c_cflag & CREAD) == 0)
  222. port->ignore_status_mask |= UART_DUMMY_RSR_RX;
  223. /* Set baud rate */
  224. quot -= 1;
  225. UART_PUT_SCAL(port, quot);
  226. UART_PUT_CTRL(port, cr);
  227. spin_unlock_irqrestore(&port->lock, flags);
  228. }
  229. static const char *apbuart_type(struct uart_port *port)
  230. {
  231. return port->type == PORT_APBUART ? "GRLIB/APBUART" : NULL;
  232. }
  233. static void apbuart_release_port(struct uart_port *port)
  234. {
  235. release_mem_region(port->mapbase, 0x100);
  236. }
  237. static int apbuart_request_port(struct uart_port *port)
  238. {
  239. return request_mem_region(port->mapbase, 0x100, "grlib-apbuart")
  240. != NULL ? 0 : -EBUSY;
  241. return 0;
  242. }
  243. /* Configure/autoconfigure the port */
  244. static void apbuart_config_port(struct uart_port *port, int flags)
  245. {
  246. if (flags & UART_CONFIG_TYPE) {
  247. port->type = PORT_APBUART;
  248. apbuart_request_port(port);
  249. }
  250. }
  251. /* Verify the new serial_struct (for TIOCSSERIAL) */
  252. static int apbuart_verify_port(struct uart_port *port,
  253. struct serial_struct *ser)
  254. {
  255. int ret = 0;
  256. if (ser->type != PORT_UNKNOWN && ser->type != PORT_APBUART)
  257. ret = -EINVAL;
  258. if (ser->irq < 0 || ser->irq >= NR_IRQS)
  259. ret = -EINVAL;
  260. if (ser->baud_base < 9600)
  261. ret = -EINVAL;
  262. return ret;
  263. }
  264. static struct uart_ops grlib_apbuart_ops = {
  265. .tx_empty = apbuart_tx_empty,
  266. .set_mctrl = apbuart_set_mctrl,
  267. .get_mctrl = apbuart_get_mctrl,
  268. .stop_tx = apbuart_stop_tx,
  269. .start_tx = apbuart_start_tx,
  270. .stop_rx = apbuart_stop_rx,
  271. .enable_ms = apbuart_enable_ms,
  272. .break_ctl = apbuart_break_ctl,
  273. .startup = apbuart_startup,
  274. .shutdown = apbuart_shutdown,
  275. .set_termios = apbuart_set_termios,
  276. .type = apbuart_type,
  277. .release_port = apbuart_release_port,
  278. .request_port = apbuart_request_port,
  279. .config_port = apbuart_config_port,
  280. .verify_port = apbuart_verify_port,
  281. };
  282. static struct uart_port grlib_apbuart_ports[UART_NR];
  283. static struct device_node *grlib_apbuart_nodes[UART_NR];
  284. static int apbuart_scan_fifo_size(struct uart_port *port, int portnumber)
  285. {
  286. int ctrl, loop = 0;
  287. int status;
  288. int fifosize;
  289. unsigned long flags;
  290. ctrl = UART_GET_CTRL(port);
  291. /*
  292. * Enable the transceiver and wait for it to be ready to send data.
  293. * Clear interrupts so that this process will not be externally
  294. * interrupted in the middle (which can cause the transceiver to
  295. * drain prematurely).
  296. */
  297. local_irq_save(flags);
  298. UART_PUT_CTRL(port, ctrl | UART_CTRL_TE);
  299. while (!UART_TX_READY(UART_GET_STATUS(port)))
  300. loop++;
  301. /*
  302. * Disable the transceiver so data isn't actually sent during the
  303. * actual test.
  304. */
  305. UART_PUT_CTRL(port, ctrl & ~(UART_CTRL_TE));
  306. fifosize = 1;
  307. UART_PUT_CHAR(port, 0);
  308. /*
  309. * So long as transmitting a character increments the tranceivier FIFO
  310. * length the FIFO must be at least that big. These bytes will
  311. * automatically drain off of the FIFO.
  312. */
  313. status = UART_GET_STATUS(port);
  314. while (((status >> 20) & 0x3F) == fifosize) {
  315. fifosize++;
  316. UART_PUT_CHAR(port, 0);
  317. status = UART_GET_STATUS(port);
  318. }
  319. fifosize--;
  320. UART_PUT_CTRL(port, ctrl);
  321. local_irq_restore(flags);
  322. if (fifosize == 0)
  323. fifosize = 1;
  324. return fifosize;
  325. }
  326. static void apbuart_flush_fifo(struct uart_port *port)
  327. {
  328. int i;
  329. for (i = 0; i < port->fifosize; i++)
  330. UART_GET_CHAR(port);
  331. }
  332. /* ======================================================================== */
  333. /* Console driver, if enabled */
  334. /* ======================================================================== */
  335. #ifdef CONFIG_SERIAL_GRLIB_GAISLER_APBUART_CONSOLE
  336. static void apbuart_console_putchar(struct uart_port *port, int ch)
  337. {
  338. unsigned int status;
  339. do {
  340. status = UART_GET_STATUS(port);
  341. } while (!UART_TX_READY(status));
  342. UART_PUT_CHAR(port, ch);
  343. }
  344. static void
  345. apbuart_console_write(struct console *co, const char *s, unsigned int count)
  346. {
  347. struct uart_port *port = &grlib_apbuart_ports[co->index];
  348. unsigned int status, old_cr, new_cr;
  349. /* First save the CR then disable the interrupts */
  350. old_cr = UART_GET_CTRL(port);
  351. new_cr = old_cr & ~(UART_CTRL_RI | UART_CTRL_TI);
  352. UART_PUT_CTRL(port, new_cr);
  353. uart_console_write(port, s, count, apbuart_console_putchar);
  354. /*
  355. * Finally, wait for transmitter to become empty
  356. * and restore the TCR
  357. */
  358. do {
  359. status = UART_GET_STATUS(port);
  360. } while (!UART_TX_READY(status));
  361. UART_PUT_CTRL(port, old_cr);
  362. }
  363. static void __init
  364. apbuart_console_get_options(struct uart_port *port, int *baud,
  365. int *parity, int *bits)
  366. {
  367. if (UART_GET_CTRL(port) & (UART_CTRL_RE | UART_CTRL_TE)) {
  368. unsigned int quot, status;
  369. status = UART_GET_STATUS(port);
  370. *parity = 'n';
  371. if (status & UART_CTRL_PE) {
  372. if ((status & UART_CTRL_PS) == 0)
  373. *parity = 'e';
  374. else
  375. *parity = 'o';
  376. }
  377. *bits = 8;
  378. quot = UART_GET_SCAL(port) / 8;
  379. *baud = port->uartclk / (16 * (quot + 1));
  380. }
  381. }
  382. static int __init apbuart_console_setup(struct console *co, char *options)
  383. {
  384. struct uart_port *port;
  385. int baud = 38400;
  386. int bits = 8;
  387. int parity = 'n';
  388. int flow = 'n';
  389. pr_debug("apbuart_console_setup co=%p, co->index=%i, options=%s\n",
  390. co, co->index, options);
  391. /*
  392. * Check whether an invalid uart number has been specified, and
  393. * if so, search for the first available port that does have
  394. * console support.
  395. */
  396. if (co->index >= grlib_apbuart_port_nr)
  397. co->index = 0;
  398. port = &grlib_apbuart_ports[co->index];
  399. spin_lock_init(&port->lock);
  400. if (options)
  401. uart_parse_options(options, &baud, &parity, &bits, &flow);
  402. else
  403. apbuart_console_get_options(port, &baud, &parity, &bits);
  404. return uart_set_options(port, co, baud, parity, bits, flow);
  405. }
  406. static struct uart_driver grlib_apbuart_driver;
  407. static struct console grlib_apbuart_console = {
  408. .name = "ttyS",
  409. .write = apbuart_console_write,
  410. .device = uart_console_device,
  411. .setup = apbuart_console_setup,
  412. .flags = CON_PRINTBUFFER,
  413. .index = -1,
  414. .data = &grlib_apbuart_driver,
  415. };
  416. static int grlib_apbuart_configure(void);
  417. static int __init apbuart_console_init(void)
  418. {
  419. if (grlib_apbuart_configure())
  420. return -ENODEV;
  421. register_console(&grlib_apbuart_console);
  422. return 0;
  423. }
  424. console_initcall(apbuart_console_init);
  425. #define APBUART_CONSOLE (&grlib_apbuart_console)
  426. #else
  427. #define APBUART_CONSOLE NULL
  428. #endif
  429. static struct uart_driver grlib_apbuart_driver = {
  430. .owner = THIS_MODULE,
  431. .driver_name = "serial",
  432. .dev_name = "ttyS",
  433. .major = SERIAL_APBUART_MAJOR,
  434. .minor = SERIAL_APBUART_MINOR,
  435. .nr = UART_NR,
  436. .cons = APBUART_CONSOLE,
  437. };
  438. /* ======================================================================== */
  439. /* OF Platform Driver */
  440. /* ======================================================================== */
  441. static int __devinit apbuart_probe(struct platform_device *op)
  442. {
  443. int i;
  444. struct uart_port *port = NULL;
  445. for (i = 0; i < grlib_apbuart_port_nr; i++) {
  446. if (op->dev.of_node == grlib_apbuart_nodes[i])
  447. break;
  448. }
  449. port = &grlib_apbuart_ports[i];
  450. port->dev = &op->dev;
  451. port->irq = op->archdata.irqs[0];
  452. uart_add_one_port(&grlib_apbuart_driver, (struct uart_port *) port);
  453. apbuart_flush_fifo((struct uart_port *) port);
  454. printk(KERN_INFO "grlib-apbuart at 0x%llx, irq %d\n",
  455. (unsigned long long) port->mapbase, port->irq);
  456. return 0;
  457. }
  458. static struct of_device_id __initdata apbuart_match[] = {
  459. {
  460. .name = "GAISLER_APBUART",
  461. },
  462. {
  463. .name = "01_00c",
  464. },
  465. {},
  466. };
  467. static struct platform_driver grlib_apbuart_of_driver = {
  468. .probe = apbuart_probe,
  469. .driver = {
  470. .owner = THIS_MODULE,
  471. .name = "grlib-apbuart",
  472. .of_match_table = apbuart_match,
  473. },
  474. };
  475. static int grlib_apbuart_configure(void)
  476. {
  477. struct device_node *np;
  478. int line = 0;
  479. for_each_matching_node(np, apbuart_match) {
  480. const int *ampopts;
  481. const u32 *freq_hz;
  482. const struct amba_prom_registers *regs;
  483. struct uart_port *port;
  484. unsigned long addr;
  485. ampopts = of_get_property(np, "ampopts", NULL);
  486. if (ampopts && (*ampopts == 0))
  487. continue; /* Ignore if used by another OS instance */
  488. regs = of_get_property(np, "reg", NULL);
  489. /* Frequency of APB Bus is frequency of UART */
  490. freq_hz = of_get_property(np, "freq", NULL);
  491. if (!regs || !freq_hz || (*freq_hz == 0))
  492. continue;
  493. grlib_apbuart_nodes[line] = np;
  494. addr = regs->phys_addr;
  495. port = &grlib_apbuart_ports[line];
  496. port->mapbase = addr;
  497. port->membase = ioremap(addr, sizeof(struct grlib_apbuart_regs_map));
  498. port->irq = 0;
  499. port->iotype = UPIO_MEM;
  500. port->ops = &grlib_apbuart_ops;
  501. port->flags = UPF_BOOT_AUTOCONF;
  502. port->line = line;
  503. port->uartclk = *freq_hz;
  504. port->fifosize = apbuart_scan_fifo_size((struct uart_port *) port, line);
  505. line++;
  506. /* We support maximum UART_NR uarts ... */
  507. if (line == UART_NR)
  508. break;
  509. }
  510. grlib_apbuart_driver.nr = grlib_apbuart_port_nr = line;
  511. return line ? 0 : -ENODEV;
  512. }
  513. static int __init grlib_apbuart_init(void)
  514. {
  515. int ret;
  516. /* Find all APBUARTS in device the tree and initialize their ports */
  517. ret = grlib_apbuart_configure();
  518. if (ret)
  519. return ret;
  520. printk(KERN_INFO "Serial: GRLIB APBUART driver\n");
  521. ret = uart_register_driver(&grlib_apbuart_driver);
  522. if (ret) {
  523. printk(KERN_ERR "%s: uart_register_driver failed (%i)\n",
  524. __FILE__, ret);
  525. return ret;
  526. }
  527. ret = platform_driver_register(&grlib_apbuart_of_driver);
  528. if (ret) {
  529. printk(KERN_ERR
  530. "%s: platform_driver_register failed (%i)\n",
  531. __FILE__, ret);
  532. uart_unregister_driver(&grlib_apbuart_driver);
  533. return ret;
  534. }
  535. return ret;
  536. }
  537. static void __exit grlib_apbuart_exit(void)
  538. {
  539. int i;
  540. for (i = 0; i < grlib_apbuart_port_nr; i++)
  541. uart_remove_one_port(&grlib_apbuart_driver,
  542. &grlib_apbuart_ports[i]);
  543. uart_unregister_driver(&grlib_apbuart_driver);
  544. platform_driver_unregister(&grlib_apbuart_of_driver);
  545. }
  546. module_init(grlib_apbuart_init);
  547. module_exit(grlib_apbuart_exit);
  548. MODULE_AUTHOR("Aeroflex Gaisler AB");
  549. MODULE_DESCRIPTION("GRLIB APBUART serial driver");
  550. MODULE_VERSION("2.1");
  551. MODULE_LICENSE("GPL");