blob: 2428997c3a0e96847001726980a196a5ae4b4491 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/drivers/video/vfb.c -- Virtual frame buffer device
3 *
4 * Copyright (C) 2002 James Simmons
5 *
6 * Copyright (C) 1997 Geert Uytterhoeven
7 *
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file COPYING in the main directory of this archive for
10 * more details.
11 */
12
13#include <linux/module.h>
14#include <linux/kernel.h>
15#include <linux/errno.h>
16#include <linux/string.h>
17#include <linux/mm.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#include <linux/vmalloc.h>
19#include <linux/delay.h>
20#include <linux/interrupt.h>
Russell Kingd052d1b2005-10-29 19:07:23 +010021#include <linux/platform_device.h>
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#include <linux/fb.h>
24#include <linux/init.h>
25
26 /*
27 * RAM we reserve for the frame buffer. This defines the maximum screen
28 * size
29 *
30 * The default can be overridden if the driver is compiled as a module
31 */
32
33#define VIDEOMEMSIZE (1*1024*1024) /* 1 MB */
34
35static void *videomemory;
36static u_long videomemorysize = VIDEOMEMSIZE;
37module_param(videomemorysize, ulong, 0);
Shashank Mittalc7ed4702011-05-12 19:56:48 -070038static char *mode_option __devinitdata;
39static int bpp __devinitdata = 8;
40
41module_param(mode_option, charp, 0);
42MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'");
43module_param(bpp, int, 0);
44
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
Ilya Yanok68e5e9d2007-10-16 01:29:17 -070046/**********************************************************************
47 *
48 * Memory management
49 *
50 **********************************************************************/
51static void *rvmalloc(unsigned long size)
52{
53 void *mem;
54 unsigned long adr;
55
56 size = PAGE_ALIGN(size);
57 mem = vmalloc_32(size);
58 if (!mem)
59 return NULL;
60
61 memset(mem, 0, size); /* Clear the ram out, no junk to the user */
62 adr = (unsigned long) mem;
63 while (size > 0) {
64 SetPageReserved(vmalloc_to_page((void *)adr));
65 adr += PAGE_SIZE;
66 size -= PAGE_SIZE;
67 }
68
69 return mem;
70}
71
72static void rvfree(void *mem, unsigned long size)
73{
74 unsigned long adr;
75
76 if (!mem)
77 return;
78
79 adr = (unsigned long) mem;
80 while ((long) size > 0) {
81 ClearPageReserved(vmalloc_to_page((void *)adr));
82 adr += PAGE_SIZE;
83 size -= PAGE_SIZE;
84 }
85 vfree(mem);
86}
87
Henrik Kretzschmar3cc04972010-05-24 14:33:57 -070088static struct fb_var_screeninfo vfb_default __devinitdata = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070089 .xres = 640,
90 .yres = 480,
91 .xres_virtual = 640,
92 .yres_virtual = 480,
93 .bits_per_pixel = 8,
94 .red = { 0, 8, 0 },
95 .green = { 0, 8, 0 },
96 .blue = { 0, 8, 0 },
97 .activate = FB_ACTIVATE_TEST,
98 .height = -1,
99 .width = -1,
100 .pixclock = 20000,
101 .left_margin = 64,
102 .right_margin = 64,
103 .upper_margin = 32,
104 .lower_margin = 32,
105 .hsync_len = 64,
106 .vsync_len = 2,
107 .vmode = FB_VMODE_NONINTERLACED,
108};
109
Henrik Kretzschmar3cc04972010-05-24 14:33:57 -0700110static struct fb_fix_screeninfo vfb_fix __devinitdata = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111 .id = "Virtual FB",
112 .type = FB_TYPE_PACKED_PIXELS,
113 .visual = FB_VISUAL_PSEUDOCOLOR,
114 .xpanstep = 1,
115 .ypanstep = 1,
116 .ywrapstep = 1,
117 .accel = FB_ACCEL_NONE,
118};
119
Rusty Russell90ab5ee2012-01-13 09:32:20 +1030120static bool vfb_enable __initdata = 0; /* disabled by default */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121module_param(vfb_enable, bool, 0);
122
123static int vfb_check_var(struct fb_var_screeninfo *var,
124 struct fb_info *info);
125static int vfb_set_par(struct fb_info *info);
126static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
127 u_int transp, struct fb_info *info);
128static int vfb_pan_display(struct fb_var_screeninfo *var,
129 struct fb_info *info);
Christoph Hellwig216d5262006-01-14 13:21:25 -0800130static int vfb_mmap(struct fb_info *info,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 struct vm_area_struct *vma);
132
133static struct fb_ops vfb_ops = {
Antonino A. Daplas52102c02007-05-08 00:39:07 -0700134 .fb_read = fb_sys_read,
135 .fb_write = fb_sys_write,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136 .fb_check_var = vfb_check_var,
137 .fb_set_par = vfb_set_par,
138 .fb_setcolreg = vfb_setcolreg,
139 .fb_pan_display = vfb_pan_display,
Antonino A. Daplas87b48842007-05-08 00:39:01 -0700140 .fb_fillrect = sys_fillrect,
141 .fb_copyarea = sys_copyarea,
142 .fb_imageblit = sys_imageblit,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143 .fb_mmap = vfb_mmap,
144};
145
146 /*
147 * Internal routines
148 */
149
150static u_long get_line_length(int xres_virtual, int bpp)
151{
152 u_long length;
153
154 length = xres_virtual * bpp;
155 length = (length + 31) & ~31;
156 length >>= 3;
157 return (length);
158}
159
160 /*
161 * Setting the video mode has been split into two parts.
162 * First part, xxxfb_check_var, must not write anything
163 * to hardware, it should only verify and adjust var.
164 * This means it doesn't alter par but it does use hardware
165 * data from it to check this var.
166 */
167
168static int vfb_check_var(struct fb_var_screeninfo *var,
169 struct fb_info *info)
170{
171 u_long line_length;
172
173 /*
174 * FB_VMODE_CONUPDATE and FB_VMODE_SMOOTH_XPAN are equal!
175 * as FB_VMODE_SMOOTH_XPAN is only used internally
176 */
177
178 if (var->vmode & FB_VMODE_CONUPDATE) {
179 var->vmode |= FB_VMODE_YWRAP;
180 var->xoffset = info->var.xoffset;
181 var->yoffset = info->var.yoffset;
182 }
183
184 /*
185 * Some very basic checks
186 */
187 if (!var->xres)
188 var->xres = 1;
189 if (!var->yres)
190 var->yres = 1;
191 if (var->xres > var->xres_virtual)
192 var->xres_virtual = var->xres;
193 if (var->yres > var->yres_virtual)
194 var->yres_virtual = var->yres;
195 if (var->bits_per_pixel <= 1)
196 var->bits_per_pixel = 1;
197 else if (var->bits_per_pixel <= 8)
198 var->bits_per_pixel = 8;
199 else if (var->bits_per_pixel <= 16)
200 var->bits_per_pixel = 16;
201 else if (var->bits_per_pixel <= 24)
202 var->bits_per_pixel = 24;
203 else if (var->bits_per_pixel <= 32)
204 var->bits_per_pixel = 32;
205 else
206 return -EINVAL;
207
208 if (var->xres_virtual < var->xoffset + var->xres)
209 var->xres_virtual = var->xoffset + var->xres;
210 if (var->yres_virtual < var->yoffset + var->yres)
211 var->yres_virtual = var->yoffset + var->yres;
212
213 /*
214 * Memory limit
215 */
216 line_length =
217 get_line_length(var->xres_virtual, var->bits_per_pixel);
218 if (line_length * var->yres_virtual > videomemorysize)
219 return -ENOMEM;
220
221 /*
222 * Now that we checked it we alter var. The reason being is that the video
223 * mode passed in might not work but slight changes to it might make it
224 * work. This way we let the user know what is acceptable.
225 */
226 switch (var->bits_per_pixel) {
227 case 1:
228 case 8:
229 var->red.offset = 0;
230 var->red.length = 8;
231 var->green.offset = 0;
232 var->green.length = 8;
233 var->blue.offset = 0;
234 var->blue.length = 8;
235 var->transp.offset = 0;
236 var->transp.length = 0;
237 break;
238 case 16: /* RGBA 5551 */
239 if (var->transp.length) {
240 var->red.offset = 0;
241 var->red.length = 5;
242 var->green.offset = 5;
243 var->green.length = 5;
244 var->blue.offset = 10;
245 var->blue.length = 5;
246 var->transp.offset = 15;
247 var->transp.length = 1;
248 } else { /* RGB 565 */
249 var->red.offset = 0;
250 var->red.length = 5;
251 var->green.offset = 5;
252 var->green.length = 6;
253 var->blue.offset = 11;
254 var->blue.length = 5;
255 var->transp.offset = 0;
256 var->transp.length = 0;
257 }
258 break;
259 case 24: /* RGB 888 */
260 var->red.offset = 0;
261 var->red.length = 8;
262 var->green.offset = 8;
263 var->green.length = 8;
264 var->blue.offset = 16;
265 var->blue.length = 8;
266 var->transp.offset = 0;
267 var->transp.length = 0;
268 break;
269 case 32: /* RGBA 8888 */
270 var->red.offset = 0;
271 var->red.length = 8;
272 var->green.offset = 8;
273 var->green.length = 8;
274 var->blue.offset = 16;
275 var->blue.length = 8;
276 var->transp.offset = 24;
277 var->transp.length = 8;
278 break;
279 }
280 var->red.msb_right = 0;
281 var->green.msb_right = 0;
282 var->blue.msb_right = 0;
283 var->transp.msb_right = 0;
284
285 return 0;
286}
287
288/* This routine actually sets the video mode. It's in here where we
289 * the hardware state info->par and fix which can be affected by the
290 * change in par. For this driver it doesn't do much.
291 */
292static int vfb_set_par(struct fb_info *info)
293{
294 info->fix.line_length = get_line_length(info->var.xres_virtual,
295 info->var.bits_per_pixel);
296 return 0;
297}
298
299 /*
300 * Set a single color register. The values supplied are already
301 * rounded down to the hardware's capabilities (according to the
302 * entries in the var structure). Return != 0 for invalid regno.
303 */
304
305static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
306 u_int transp, struct fb_info *info)
307{
308 if (regno >= 256) /* no. of hw registers */
309 return 1;
310 /*
311 * Program hardware... do anything you want with transp
312 */
313
314 /* grayscale works only partially under directcolor */
315 if (info->var.grayscale) {
316 /* grayscale = 0.30*R + 0.59*G + 0.11*B */
317 red = green = blue =
318 (red * 77 + green * 151 + blue * 28) >> 8;
319 }
320
321 /* Directcolor:
322 * var->{color}.offset contains start of bitfield
323 * var->{color}.length contains length of bitfield
324 * {hardwarespecific} contains width of RAMDAC
325 * cmap[X] is programmed to (X << red.offset) | (X << green.offset) | (X << blue.offset)
326 * RAMDAC[X] is programmed to (red, green, blue)
Michal Januszewskiebde4412009-04-13 14:39:41 -0700327 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328 * Pseudocolor:
Michal Januszewskiebde4412009-04-13 14:39:41 -0700329 * var->{color}.offset is 0 unless the palette index takes less than
330 * bits_per_pixel bits and is stored in the upper
331 * bits of the pixel value
332 * var->{color}.length is set so that 1 << length is the number of available
333 * palette entries
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334 * cmap is not used
335 * RAMDAC[X] is programmed to (red, green, blue)
Michal Januszewskiebde4412009-04-13 14:39:41 -0700336 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700337 * Truecolor:
338 * does not use DAC. Usually 3 are present.
339 * var->{color}.offset contains start of bitfield
340 * var->{color}.length contains length of bitfield
341 * cmap is programmed to (red << red.offset) | (green << green.offset) |
342 * (blue << blue.offset) | (transp << transp.offset)
343 * RAMDAC does not exist
344 */
345#define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16)
346 switch (info->fix.visual) {
347 case FB_VISUAL_TRUECOLOR:
348 case FB_VISUAL_PSEUDOCOLOR:
349 red = CNVT_TOHW(red, info->var.red.length);
350 green = CNVT_TOHW(green, info->var.green.length);
351 blue = CNVT_TOHW(blue, info->var.blue.length);
352 transp = CNVT_TOHW(transp, info->var.transp.length);
353 break;
354 case FB_VISUAL_DIRECTCOLOR:
355 red = CNVT_TOHW(red, 8); /* expect 8 bit DAC */
356 green = CNVT_TOHW(green, 8);
357 blue = CNVT_TOHW(blue, 8);
358 /* hey, there is bug in transp handling... */
359 transp = CNVT_TOHW(transp, 8);
360 break;
361 }
362#undef CNVT_TOHW
363 /* Truecolor has hardware independent palette */
364 if (info->fix.visual == FB_VISUAL_TRUECOLOR) {
365 u32 v;
366
367 if (regno >= 16)
368 return 1;
369
370 v = (red << info->var.red.offset) |
371 (green << info->var.green.offset) |
372 (blue << info->var.blue.offset) |
373 (transp << info->var.transp.offset);
374 switch (info->var.bits_per_pixel) {
375 case 8:
376 break;
377 case 16:
378 ((u32 *) (info->pseudo_palette))[regno] = v;
379 break;
380 case 24:
381 case 32:
382 ((u32 *) (info->pseudo_palette))[regno] = v;
383 break;
384 }
385 return 0;
386 }
387 return 0;
388}
389
390 /*
391 * Pan or Wrap the Display
392 *
393 * This call looks only at xoffset, yoffset and the FB_VMODE_YWRAP flag
394 */
395
396static int vfb_pan_display(struct fb_var_screeninfo *var,
397 struct fb_info *info)
398{
399 if (var->vmode & FB_VMODE_YWRAP) {
400 if (var->yoffset < 0
401 || var->yoffset >= info->var.yres_virtual
402 || var->xoffset)
403 return -EINVAL;
404 } else {
Laurent Pinchart2883ceb2011-05-25 11:34:52 +0200405 if (var->xoffset + info->var.xres > info->var.xres_virtual ||
406 var->yoffset + info->var.yres > info->var.yres_virtual)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407 return -EINVAL;
408 }
409 info->var.xoffset = var->xoffset;
410 info->var.yoffset = var->yoffset;
411 if (var->vmode & FB_VMODE_YWRAP)
412 info->var.vmode |= FB_VMODE_YWRAP;
413 else
414 info->var.vmode &= ~FB_VMODE_YWRAP;
415 return 0;
416}
417
418 /*
419 * Most drivers don't need their own mmap function
420 */
421
Christoph Hellwig216d5262006-01-14 13:21:25 -0800422static int vfb_mmap(struct fb_info *info,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700423 struct vm_area_struct *vma)
424{
Ilya Yanok68e5e9d2007-10-16 01:29:17 -0700425 unsigned long start = vma->vm_start;
426 unsigned long size = vma->vm_end - vma->vm_start;
427 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
428 unsigned long page, pos;
429
430 if (offset + size > info->fix.smem_len) {
431 return -EINVAL;
432 }
433
434 pos = (unsigned long)info->fix.smem_start + offset;
435
436 while (size > 0) {
437 page = vmalloc_to_pfn((void *)pos);
438 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) {
439 return -EAGAIN;
440 }
441 start += PAGE_SIZE;
442 pos += PAGE_SIZE;
443 if (size > PAGE_SIZE)
444 size -= PAGE_SIZE;
445 else
446 size = 0;
447 }
448
449 vma->vm_flags |= VM_RESERVED; /* avoid to swap out this VMA */
450 return 0;
451
Linus Torvalds1da177e2005-04-16 15:20:36 -0700452}
453
454#ifndef MODULE
Frans Popb6048382008-07-23 21:31:26 -0700455/*
456 * The virtual framebuffer driver is only enabled if explicitly
457 * requested by passing 'video=vfb:' (or any actual options).
458 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700459static int __init vfb_setup(char *options)
460{
461 char *this_opt;
462
Frans Popb6048382008-07-23 21:31:26 -0700463 vfb_enable = 0;
464
465 if (!options)
466 return 1;
467
Linus Torvalds1da177e2005-04-16 15:20:36 -0700468 vfb_enable = 1;
469
Frans Popb6048382008-07-23 21:31:26 -0700470 if (!*options)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700471 return 1;
472
473 while ((this_opt = strsep(&options, ",")) != NULL) {
474 if (!*this_opt)
475 continue;
Frans Popb6048382008-07-23 21:31:26 -0700476 /* Test disable for backwards compatibility */
477 if (!strcmp(this_opt, "disable"))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478 vfb_enable = 0;
Shashank Mittalc7ed4702011-05-12 19:56:48 -0700479 else if (!strncmp(this_opt, "bpp=", 4)) {
480 if (kstrtoint(this_opt + 4, 0, &bpp) < 0)
481 bpp = 8;
482 } else if (!strncmp(this_opt, "memsize=", 8)) {
483 if (kstrtoul(this_opt + 8, 0, &videomemorysize) < 0)
484 videomemorysize = VIDEOMEMSIZE;
485 } else
486 mode_option = this_opt;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700487 }
488 return 1;
489}
490#endif /* MODULE */
491
492 /*
493 * Initialisation
494 */
495
Uwe Kleine-Königc2e13032010-02-04 20:56:51 +0100496static int __devinit vfb_probe(struct platform_device *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700498 struct fb_info *info;
499 int retval = -ENOMEM;
500
501 /*
502 * For real video cards we use ioremap.
503 */
Ilya Yanok68e5e9d2007-10-16 01:29:17 -0700504 if (!(videomemory = rvmalloc(videomemorysize)))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 return retval;
506
507 /*
508 * VFB must clear memory to prevent kernel info
509 * leakage into userspace
510 * VGA-based drivers MUST NOT clear memory if
511 * they want to be able to take over vgacon
512 */
513 memset(videomemory, 0, videomemorysize);
514
515 info = framebuffer_alloc(sizeof(u32) * 256, &dev->dev);
516 if (!info)
517 goto err;
518
519 info->screen_base = (char __iomem *)videomemory;
520 info->fbops = &vfb_ops;
521
Shashank Mittalc7ed4702011-05-12 19:56:48 -0700522 retval = fb_find_mode(&info->var, info, mode_option,
523 NULL, 0, NULL, bpp);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700524
525 if (!retval || (retval == 4))
526 info->var = vfb_default;
Ilya Yanok68e5e9d2007-10-16 01:29:17 -0700527 vfb_fix.smem_start = (unsigned long) videomemory;
528 vfb_fix.smem_len = videomemorysize;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700529 info->fix = vfb_fix;
530 info->pseudo_palette = info->par;
531 info->par = NULL;
532 info->flags = FBINFO_FLAG_DEFAULT;
533
534 retval = fb_alloc_cmap(&info->cmap, 256, 0);
535 if (retval < 0)
536 goto err1;
537
538 retval = register_framebuffer(info);
539 if (retval < 0)
540 goto err2;
Russell King3ae5eae2005-11-09 22:32:44 +0000541 platform_set_drvdata(dev, info);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700542
543 printk(KERN_INFO
544 "fb%d: Virtual frame buffer device, using %ldK of video memory\n",
545 info->node, videomemorysize >> 10);
546 return 0;
547err2:
548 fb_dealloc_cmap(&info->cmap);
549err1:
550 framebuffer_release(info);
551err:
Ilya Yanok68e5e9d2007-10-16 01:29:17 -0700552 rvfree(videomemory, videomemorysize);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553 return retval;
554}
555
Russell King3ae5eae2005-11-09 22:32:44 +0000556static int vfb_remove(struct platform_device *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557{
Russell King3ae5eae2005-11-09 22:32:44 +0000558 struct fb_info *info = platform_get_drvdata(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559
560 if (info) {
561 unregister_framebuffer(info);
Ilya Yanok68e5e9d2007-10-16 01:29:17 -0700562 rvfree(videomemory, videomemorysize);
Andres Salomon5e266e22009-03-31 15:25:22 -0700563 fb_dealloc_cmap(&info->cmap);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564 framebuffer_release(info);
565 }
566 return 0;
567}
568
Russell King3ae5eae2005-11-09 22:32:44 +0000569static struct platform_driver vfb_driver = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700570 .probe = vfb_probe,
571 .remove = vfb_remove,
Russell King3ae5eae2005-11-09 22:32:44 +0000572 .driver = {
573 .name = "vfb",
574 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700575};
576
Antonino A. Daplas20cecf62006-06-26 00:26:34 -0700577static struct platform_device *vfb_device;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700578
579static int __init vfb_init(void)
580{
581 int ret = 0;
582
583#ifndef MODULE
584 char *option = NULL;
585
586 if (fb_get_options("vfb", &option))
587 return -ENODEV;
588 vfb_setup(option);
589#endif
590
591 if (!vfb_enable)
592 return -ENXIO;
593
Russell King3ae5eae2005-11-09 22:32:44 +0000594 ret = platform_driver_register(&vfb_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700595
596 if (!ret) {
Antonino A. Daplas20cecf62006-06-26 00:26:34 -0700597 vfb_device = platform_device_alloc("vfb", 0);
598
599 if (vfb_device)
600 ret = platform_device_add(vfb_device);
601 else
602 ret = -ENOMEM;
603
604 if (ret) {
605 platform_device_put(vfb_device);
Russell King3ae5eae2005-11-09 22:32:44 +0000606 platform_driver_unregister(&vfb_driver);
Antonino A. Daplas20cecf62006-06-26 00:26:34 -0700607 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700608 }
Antonino A. Daplas20cecf62006-06-26 00:26:34 -0700609
Linus Torvalds1da177e2005-04-16 15:20:36 -0700610 return ret;
611}
612
613module_init(vfb_init);
614
615#ifdef MODULE
616static void __exit vfb_exit(void)
617{
Antonino A. Daplas20cecf62006-06-26 00:26:34 -0700618 platform_device_unregister(vfb_device);
Russell King3ae5eae2005-11-09 22:32:44 +0000619 platform_driver_unregister(&vfb_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700620}
621
622module_exit(vfb_exit);
623
624MODULE_LICENSE("GPL");
625#endif /* MODULE */