arcfb.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. /*
  2. * linux/drivers/video/arcfb.c -- FB driver for Arc monochrome LCD board
  3. *
  4. * Copyright (C) 2005, Jaya Kumar <jayalk@intworks.biz>
  5. * http://www.intworks.biz/arclcd
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file COPYING in the main directory of this archive for
  9. * more details.
  10. *
  11. * Layout is based on skeletonfb.c by James Simmons and Geert Uytterhoeven.
  12. *
  13. * This driver was written to be used with the Arc LCD board. Arc uses a
  14. * set of KS108 chips that control individual 64x64 LCD matrices. The board
  15. * can be paneled in a variety of setups such as 2x1=128x64, 4x4=256x256 and
  16. * so on. The interface between the board and the host is TTL based GPIO. The
  17. * GPIO requirements are 8 writable data lines and 4+n lines for control. On a
  18. * GPIO-less system, the board can be tested by connecting the respective sigs
  19. * up to a parallel port connector. The driver requires the IO addresses for
  20. * data and control GPIO at load time. It is unable to probe for the
  21. * existence of the LCD so it must be told at load time whether it should
  22. * be enabled or not.
  23. *
  24. * Todo:
  25. * - testing with 4x4
  26. * - testing with interrupt hw
  27. *
  28. * General notes:
  29. * - User must set tuhold. It's in microseconds. According to the 108 spec,
  30. * the hold time is supposed to be at least 1 microsecond.
  31. * - User must set num_cols=x num_rows=y, eg: x=2 means 128
  32. * - User must set arcfb_enable=1 to enable it
  33. * - User must set dio_addr=0xIOADDR cio_addr=0xIOADDR
  34. *
  35. */
  36. #include <linux/module.h>
  37. #include <linux/kernel.h>
  38. #include <linux/errno.h>
  39. #include <linux/string.h>
  40. #include <linux/mm.h>
  41. #include <linux/vmalloc.h>
  42. #include <linux/delay.h>
  43. #include <linux/interrupt.h>
  44. #include <linux/fb.h>
  45. #include <linux/init.h>
  46. #include <linux/arcfb.h>
  47. #include <linux/platform_device.h>
  48. #include <linux/uaccess.h>
  49. #define floor8(a) (a&(~0x07))
  50. #define floorXres(a,xres) (a&(~(xres - 1)))
  51. #define iceil8(a) (((int)((a+7)/8))*8)
  52. #define ceil64(a) (a|0x3F)
  53. #define ceilXres(a,xres) (a|(xres - 1))
  54. /* ks108 chipset specific defines and code */
  55. #define KS_SET_DPY_START_LINE 0xC0
  56. #define KS_SET_PAGE_NUM 0xB8
  57. #define KS_SET_X 0x40
  58. #define KS_CEHI 0x01
  59. #define KS_CELO 0x00
  60. #define KS_SEL_CMD 0x08
  61. #define KS_SEL_DATA 0x00
  62. #define KS_DPY_ON 0x3F
  63. #define KS_DPY_OFF 0x3E
  64. #define KS_INTACK 0x40
  65. #define KS_CLRINT 0x02
  66. struct arcfb_par {
  67. unsigned long dio_addr;
  68. unsigned long cio_addr;
  69. unsigned long c2io_addr;
  70. atomic_t ref_count;
  71. unsigned char cslut[9];
  72. struct fb_info *info;
  73. unsigned int irq;
  74. spinlock_t lock;
  75. };
  76. static struct fb_fix_screeninfo arcfb_fix __devinitdata = {
  77. .id = "arcfb",
  78. .type = FB_TYPE_PACKED_PIXELS,
  79. .visual = FB_VISUAL_MONO01,
  80. .xpanstep = 0,
  81. .ypanstep = 1,
  82. .ywrapstep = 0,
  83. .accel = FB_ACCEL_NONE,
  84. };
  85. static struct fb_var_screeninfo arcfb_var __devinitdata = {
  86. .xres = 128,
  87. .yres = 64,
  88. .xres_virtual = 128,
  89. .yres_virtual = 64,
  90. .bits_per_pixel = 1,
  91. .nonstd = 1,
  92. };
  93. static unsigned long num_cols;
  94. static unsigned long num_rows;
  95. static unsigned long dio_addr;
  96. static unsigned long cio_addr;
  97. static unsigned long c2io_addr;
  98. static unsigned long splashval;
  99. static unsigned long tuhold;
  100. static unsigned int nosplash;
  101. static unsigned int arcfb_enable;
  102. static unsigned int irq;
  103. static DECLARE_WAIT_QUEUE_HEAD(arcfb_waitq);
  104. static void ks108_writeb_ctl(struct arcfb_par *par,
  105. unsigned int chipindex, unsigned char value)
  106. {
  107. unsigned char chipselval = par->cslut[chipindex];
  108. outb(chipselval|KS_CEHI|KS_SEL_CMD, par->cio_addr);
  109. outb(value, par->dio_addr);
  110. udelay(tuhold);
  111. outb(chipselval|KS_CELO|KS_SEL_CMD, par->cio_addr);
  112. }
  113. static void ks108_writeb_mainctl(struct arcfb_par *par, unsigned char value)
  114. {
  115. outb(value, par->cio_addr);
  116. udelay(tuhold);
  117. }
  118. static unsigned char ks108_readb_ctl2(struct arcfb_par *par)
  119. {
  120. return inb(par->c2io_addr);
  121. }
  122. static void ks108_writeb_data(struct arcfb_par *par,
  123. unsigned int chipindex, unsigned char value)
  124. {
  125. unsigned char chipselval = par->cslut[chipindex];
  126. outb(chipselval|KS_CEHI|KS_SEL_DATA, par->cio_addr);
  127. outb(value, par->dio_addr);
  128. udelay(tuhold);
  129. outb(chipselval|KS_CELO|KS_SEL_DATA, par->cio_addr);
  130. }
  131. static void ks108_set_start_line(struct arcfb_par *par,
  132. unsigned int chipindex, unsigned char y)
  133. {
  134. ks108_writeb_ctl(par, chipindex, KS_SET_DPY_START_LINE|y);
  135. }
  136. static void ks108_set_yaddr(struct arcfb_par *par,
  137. unsigned int chipindex, unsigned char y)
  138. {
  139. ks108_writeb_ctl(par, chipindex, KS_SET_PAGE_NUM|y);
  140. }
  141. static void ks108_set_xaddr(struct arcfb_par *par,
  142. unsigned int chipindex, unsigned char x)
  143. {
  144. ks108_writeb_ctl(par, chipindex, KS_SET_X|x);
  145. }
  146. static void ks108_clear_lcd(struct arcfb_par *par, unsigned int chipindex)
  147. {
  148. int i,j;
  149. for (i = 0; i <= 8; i++) {
  150. ks108_set_yaddr(par, chipindex, i);
  151. ks108_set_xaddr(par, chipindex, 0);
  152. for (j = 0; j < 64; j++) {
  153. ks108_writeb_data(par, chipindex,
  154. (unsigned char) splashval);
  155. }
  156. }
  157. }
  158. /* main arcfb functions */
  159. static int arcfb_open(struct fb_info *info, int user)
  160. {
  161. struct arcfb_par *par = info->par;
  162. atomic_inc(&par->ref_count);
  163. return 0;
  164. }
  165. static int arcfb_release(struct fb_info *info, int user)
  166. {
  167. struct arcfb_par *par = info->par;
  168. int count = atomic_read(&par->ref_count);
  169. if (!count)
  170. return -EINVAL;
  171. atomic_dec(&par->ref_count);
  172. return 0;
  173. }
  174. static int arcfb_pan_display(struct fb_var_screeninfo *var,
  175. struct fb_info *info)
  176. {
  177. int i;
  178. struct arcfb_par *par = info->par;
  179. if ((var->vmode & FB_VMODE_YWRAP) && (var->yoffset < 64)
  180. && (info->var.yres <= 64)) {
  181. for (i = 0; i < num_cols; i++) {
  182. ks108_set_start_line(par, i, var->yoffset);
  183. }
  184. info->var.yoffset = var->yoffset;
  185. return 0;
  186. }
  187. return -EINVAL;
  188. }
  189. static irqreturn_t arcfb_interrupt(int vec, void *dev_instance)
  190. {
  191. struct fb_info *info = dev_instance;
  192. unsigned char ctl2status;
  193. struct arcfb_par *par = info->par;
  194. ctl2status = ks108_readb_ctl2(par);
  195. if (!(ctl2status & KS_INTACK)) /* not arc generated interrupt */
  196. return IRQ_NONE;
  197. ks108_writeb_mainctl(par, KS_CLRINT);
  198. spin_lock(&par->lock);
  199. if (waitqueue_active(&arcfb_waitq)) {
  200. wake_up(&arcfb_waitq);
  201. }
  202. spin_unlock(&par->lock);
  203. return IRQ_HANDLED;
  204. }
  205. /*
  206. * here we handle a specific page on the lcd. the complexity comes from
  207. * the fact that the fb is laidout in 8xX vertical columns. we extract
  208. * each write of 8 vertical pixels. then we shift out as we move along
  209. * X. That's what rightshift does. bitmask selects the desired input bit.
  210. */
  211. static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper,
  212. unsigned int left, unsigned int right, unsigned int distance)
  213. {
  214. unsigned char *src;
  215. unsigned int xindex, yindex, chipindex, linesize;
  216. int i;
  217. unsigned char val;
  218. unsigned char bitmask, rightshift;
  219. xindex = left >> 6;
  220. yindex = upper >> 6;
  221. chipindex = (xindex + (yindex*num_cols));
  222. ks108_set_yaddr(par, chipindex, upper/8);
  223. linesize = par->info->var.xres/8;
  224. src = (unsigned char __force *) par->info->screen_base + (left/8) +
  225. (upper * linesize);
  226. ks108_set_xaddr(par, chipindex, left);
  227. bitmask=1;
  228. rightshift=0;
  229. while (left <= right) {
  230. val = 0;
  231. for (i = 0; i < 8; i++) {
  232. if ( i > rightshift) {
  233. val |= (*(src + (i*linesize)) & bitmask)
  234. << (i - rightshift);
  235. } else {
  236. val |= (*(src + (i*linesize)) & bitmask)
  237. >> (rightshift - i);
  238. }
  239. }
  240. ks108_writeb_data(par, chipindex, val);
  241. left++;
  242. if (bitmask == 0x80) {
  243. bitmask = 1;
  244. src++;
  245. rightshift=0;
  246. } else {
  247. bitmask <<= 1;
  248. rightshift++;
  249. }
  250. }
  251. }
  252. /*
  253. * here we handle the entire vertical page of the update. we write across
  254. * lcd chips. update_page uses the upper/left values to decide which
  255. * chip to select for the right. upper is needed for setting the page
  256. * desired for the write.
  257. */
  258. static void arcfb_lcd_update_vert(struct arcfb_par *par, unsigned int top,
  259. unsigned int bottom, unsigned int left, unsigned int right)
  260. {
  261. unsigned int distance, upper, lower;
  262. distance = (bottom - top) + 1;
  263. upper = top;
  264. lower = top + 7;
  265. while (distance > 0) {
  266. distance -= 8;
  267. arcfb_lcd_update_page(par, upper, left, right, 8);
  268. upper = lower + 1;
  269. lower = upper + 7;
  270. }
  271. }
  272. /*
  273. * here we handle horizontal blocks for the update. update_vert will
  274. * handle spaning multiple pages. we break out each horizontal
  275. * block in to individual blocks no taller than 64 pixels.
  276. */
  277. static void arcfb_lcd_update_horiz(struct arcfb_par *par, unsigned int left,
  278. unsigned int right, unsigned int top, unsigned int h)
  279. {
  280. unsigned int distance, upper, lower;
  281. distance = h;
  282. upper = floor8(top);
  283. lower = min(upper + distance - 1, ceil64(upper));
  284. while (distance > 0) {
  285. distance -= ((lower - upper) + 1 );
  286. arcfb_lcd_update_vert(par, upper, lower, left, right);
  287. upper = lower + 1;
  288. lower = min(upper + distance - 1, ceil64(upper));
  289. }
  290. }
  291. /*
  292. * here we start the process of spliting out the fb update into
  293. * individual blocks of pixels. we end up spliting into 64x64 blocks
  294. * and finally down to 64x8 pages.
  295. */
  296. static void arcfb_lcd_update(struct arcfb_par *par, unsigned int dx,
  297. unsigned int dy, unsigned int w, unsigned int h)
  298. {
  299. unsigned int left, right, distance, y;
  300. /* align the request first */
  301. y = floor8(dy);
  302. h += dy - y;
  303. h = iceil8(h);
  304. distance = w;
  305. left = dx;
  306. right = min(left + w - 1, ceil64(left));
  307. while (distance > 0) {
  308. arcfb_lcd_update_horiz(par, left, right, y, h);
  309. distance -= ((right - left) + 1);
  310. left = right + 1;
  311. right = min(left + distance - 1, ceil64(left));
  312. }
  313. }
  314. static void arcfb_fillrect(struct fb_info *info,
  315. const struct fb_fillrect *rect)
  316. {
  317. struct arcfb_par *par = info->par;
  318. sys_fillrect(info, rect);
  319. /* update the physical lcd */
  320. arcfb_lcd_update(par, rect->dx, rect->dy, rect->width, rect->height);
  321. }
  322. static void arcfb_copyarea(struct fb_info *info,
  323. const struct fb_copyarea *area)
  324. {
  325. struct arcfb_par *par = info->par;
  326. sys_copyarea(info, area);
  327. /* update the physical lcd */
  328. arcfb_lcd_update(par, area->dx, area->dy, area->width, area->height);
  329. }
  330. static void arcfb_imageblit(struct fb_info *info, const struct fb_image *image)
  331. {
  332. struct arcfb_par *par = info->par;
  333. sys_imageblit(info, image);
  334. /* update the physical lcd */
  335. arcfb_lcd_update(par, image->dx, image->dy, image->width,
  336. image->height);
  337. }
  338. static int arcfb_ioctl(struct fb_info *info,
  339. unsigned int cmd, unsigned long arg)
  340. {
  341. void __user *argp = (void __user *)arg;
  342. struct arcfb_par *par = info->par;
  343. unsigned long flags;
  344. switch (cmd) {
  345. case FBIO_WAITEVENT:
  346. {
  347. DEFINE_WAIT(wait);
  348. /* illegal to wait on arc if no irq will occur */
  349. if (!par->irq)
  350. return -EINVAL;
  351. /* wait until the Arc has generated an interrupt
  352. * which will wake us up */
  353. spin_lock_irqsave(&par->lock, flags);
  354. prepare_to_wait(&arcfb_waitq, &wait,
  355. TASK_INTERRUPTIBLE);
  356. spin_unlock_irqrestore(&par->lock, flags);
  357. schedule();
  358. finish_wait(&arcfb_waitq, &wait);
  359. }
  360. case FBIO_GETCONTROL2:
  361. {
  362. unsigned char ctl2;
  363. ctl2 = ks108_readb_ctl2(info->par);
  364. if (copy_to_user(argp, &ctl2, sizeof(ctl2)))
  365. return -EFAULT;
  366. return 0;
  367. }
  368. default:
  369. return -EINVAL;
  370. }
  371. }
  372. /*
  373. * this is the access path from userspace. they can seek and write to
  374. * the fb. it's inefficient for them to do anything less than 64*8
  375. * writes since we update the lcd in each write() anyway.
  376. */
  377. static ssize_t arcfb_write(struct fb_info *info, const char __user *buf,
  378. size_t count, loff_t *ppos)
  379. {
  380. /* modded from epson 1355 */
  381. unsigned long p;
  382. int err=-EINVAL;
  383. unsigned int fbmemlength,x,y,w,h, bitppos, startpos, endpos, bitcount;
  384. struct arcfb_par *par;
  385. unsigned int xres;
  386. p = *ppos;
  387. par = info->par;
  388. xres = info->var.xres;
  389. fbmemlength = (xres * info->var.yres)/8;
  390. if (p > fbmemlength)
  391. return -ENOSPC;
  392. err = 0;
  393. if ((count + p) > fbmemlength) {
  394. count = fbmemlength - p;
  395. err = -ENOSPC;
  396. }
  397. if (count) {
  398. char *base_addr;
  399. base_addr = (char __force *)info->screen_base;
  400. count -= copy_from_user(base_addr + p, buf, count);
  401. *ppos += count;
  402. err = -EFAULT;
  403. }
  404. bitppos = p*8;
  405. startpos = floorXres(bitppos, xres);
  406. endpos = ceilXres((bitppos + (count*8)), xres);
  407. bitcount = endpos - startpos;
  408. x = startpos % xres;
  409. y = startpos / xres;
  410. w = xres;
  411. h = bitcount / xres;
  412. arcfb_lcd_update(par, x, y, w, h);
  413. if (count)
  414. return count;
  415. return err;
  416. }
  417. static struct fb_ops arcfb_ops = {
  418. .owner = THIS_MODULE,
  419. .fb_open = arcfb_open,
  420. .fb_read = fb_sys_read,
  421. .fb_write = arcfb_write,
  422. .fb_release = arcfb_release,
  423. .fb_pan_display = arcfb_pan_display,
  424. .fb_fillrect = arcfb_fillrect,
  425. .fb_copyarea = arcfb_copyarea,
  426. .fb_imageblit = arcfb_imageblit,
  427. .fb_ioctl = arcfb_ioctl,
  428. };
  429. static int __devinit arcfb_probe(struct platform_device *dev)
  430. {
  431. struct fb_info *info;
  432. int retval = -ENOMEM;
  433. int videomemorysize;
  434. unsigned char *videomemory;
  435. struct arcfb_par *par;
  436. int i;
  437. videomemorysize = (((64*64)*num_cols)*num_rows)/8;
  438. /* We need a flat backing store for the Arc's
  439. less-flat actual paged framebuffer */
  440. if (!(videomemory = vmalloc(videomemorysize)))
  441. return retval;
  442. memset(videomemory, 0, videomemorysize);
  443. info = framebuffer_alloc(sizeof(struct arcfb_par), &dev->dev);
  444. if (!info)
  445. goto err;
  446. info->screen_base = (char __iomem *)videomemory;
  447. info->fbops = &arcfb_ops;
  448. info->var = arcfb_var;
  449. info->fix = arcfb_fix;
  450. par = info->par;
  451. par->info = info;
  452. if (!dio_addr || !cio_addr || !c2io_addr) {
  453. printk(KERN_WARNING "no IO addresses supplied\n");
  454. goto err1;
  455. }
  456. par->dio_addr = dio_addr;
  457. par->cio_addr = cio_addr;
  458. par->c2io_addr = c2io_addr;
  459. par->cslut[0] = 0x00;
  460. par->cslut[1] = 0x06;
  461. info->flags = FBINFO_FLAG_DEFAULT;
  462. spin_lock_init(&par->lock);
  463. retval = register_framebuffer(info);
  464. if (retval < 0)
  465. goto err1;
  466. platform_set_drvdata(dev, info);
  467. if (irq) {
  468. par->irq = irq;
  469. if (request_irq(par->irq, &arcfb_interrupt, IRQF_SHARED,
  470. "arcfb", info)) {
  471. printk(KERN_INFO
  472. "arcfb: Failed req IRQ %d\n", par->irq);
  473. goto err1;
  474. }
  475. }
  476. printk(KERN_INFO
  477. "fb%d: Arc frame buffer device, using %dK of video memory\n",
  478. info->node, videomemorysize >> 10);
  479. /* this inits the lcd but doesn't clear dirty pixels */
  480. for (i = 0; i < num_cols * num_rows; i++) {
  481. ks108_writeb_ctl(par, i, KS_DPY_OFF);
  482. ks108_set_start_line(par, i, 0);
  483. ks108_set_yaddr(par, i, 0);
  484. ks108_set_xaddr(par, i, 0);
  485. ks108_writeb_ctl(par, i, KS_DPY_ON);
  486. }
  487. /* if we were told to splash the screen, we just clear it */
  488. if (!nosplash) {
  489. for (i = 0; i < num_cols * num_rows; i++) {
  490. printk(KERN_INFO "fb%d: splashing lcd %d\n",
  491. info->node, i);
  492. ks108_set_start_line(par, i, 0);
  493. ks108_clear_lcd(par, i);
  494. }
  495. }
  496. return 0;
  497. err1:
  498. framebuffer_release(info);
  499. err:
  500. vfree(videomemory);
  501. return retval;
  502. }
  503. static int __devexit arcfb_remove(struct platform_device *dev)
  504. {
  505. struct fb_info *info = platform_get_drvdata(dev);
  506. if (info) {
  507. unregister_framebuffer(info);
  508. vfree((void __force *)info->screen_base);
  509. framebuffer_release(info);
  510. }
  511. return 0;
  512. }
  513. static struct platform_driver arcfb_driver = {
  514. .probe = arcfb_probe,
  515. .remove = __devexit_p(arcfb_remove),
  516. .driver = {
  517. .name = "arcfb",
  518. },
  519. };
  520. static struct platform_device *arcfb_device;
  521. static int __init arcfb_init(void)
  522. {
  523. int ret;
  524. if (!arcfb_enable)
  525. return -ENXIO;
  526. ret = platform_driver_register(&arcfb_driver);
  527. if (!ret) {
  528. arcfb_device = platform_device_alloc("arcfb", 0);
  529. if (arcfb_device) {
  530. ret = platform_device_add(arcfb_device);
  531. } else {
  532. ret = -ENOMEM;
  533. }
  534. if (ret) {
  535. platform_device_put(arcfb_device);
  536. platform_driver_unregister(&arcfb_driver);
  537. }
  538. }
  539. return ret;
  540. }
  541. static void __exit arcfb_exit(void)
  542. {
  543. platform_device_unregister(arcfb_device);
  544. platform_driver_unregister(&arcfb_driver);
  545. }
  546. module_param(num_cols, ulong, 0);
  547. MODULE_PARM_DESC(num_cols, "Num horiz panels, eg: 2 = 128 bit wide");
  548. module_param(num_rows, ulong, 0);
  549. MODULE_PARM_DESC(num_rows, "Num vert panels, eg: 1 = 64 bit high");
  550. module_param(nosplash, uint, 0);
  551. MODULE_PARM_DESC(nosplash, "Disable doing the splash screen");
  552. module_param(arcfb_enable, uint, 0);
  553. MODULE_PARM_DESC(arcfb_enable, "Enable communication with Arc board");
  554. module_param(dio_addr, ulong, 0);
  555. MODULE_PARM_DESC(dio_addr, "IO address for data, eg: 0x480");
  556. module_param(cio_addr, ulong, 0);
  557. MODULE_PARM_DESC(cio_addr, "IO address for control, eg: 0x400");
  558. module_param(c2io_addr, ulong, 0);
  559. MODULE_PARM_DESC(c2io_addr, "IO address for secondary control, eg: 0x408");
  560. module_param(splashval, ulong, 0);
  561. MODULE_PARM_DESC(splashval, "Splash pattern: 0xFF is black, 0x00 is green");
  562. module_param(tuhold, ulong, 0);
  563. MODULE_PARM_DESC(tuhold, "Time to hold between strobing data to Arc board");
  564. module_param(irq, uint, 0);
  565. MODULE_PARM_DESC(irq, "IRQ for the Arc board");
  566. module_init(arcfb_init);
  567. module_exit(arcfb_exit);
  568. MODULE_DESCRIPTION("fbdev driver for Arc monochrome LCD board");
  569. MODULE_AUTHOR("Jaya Kumar");
  570. MODULE_LICENSE("GPL");