blob: bd37ee1f6a251bce027920a4eab805b0bbcfc3de [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * framebuffer driver for VBE 2.0 compliant graphic boards
3 *
4 * switching to graphics mode happens at boot time (while
5 * running in real mode, see arch/i386/boot/video.S).
6 *
7 * (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de>
8 *
9 */
10
11#include <linux/module.h>
12#include <linux/kernel.h>
13#include <linux/errno.h>
14#include <linux/string.h>
15#include <linux/mm.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#include <linux/slab.h>
17#include <linux/delay.h>
18#include <linux/fb.h>
19#include <linux/ioport.h>
20#include <linux/init.h>
Russell Kingd052d1b2005-10-29 19:07:23 +010021#include <linux/platform_device.h>
Jon Smirla8f340e2006-07-10 04:44:12 -070022#include <linux/screen_info.h>
Russell Kingd052d1b2005-10-29 19:07:23 +010023
Antonino A. Daplasd2d58382005-09-09 13:04:31 -070024#include <video/vga.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#include <asm/io.h>
26#include <asm/mtrr.h>
27
28#define dac_reg (0x3c8)
29#define dac_val (0x3c9)
30
31/* --------------------------------------------------------------------- */
32
33static struct fb_var_screeninfo vesafb_defined __initdata = {
34 .activate = FB_ACTIVATE_NOW,
35 .height = -1,
36 .width = -1,
37 .right_margin = 32,
38 .upper_margin = 16,
39 .lower_margin = 4,
40 .vsync_len = 4,
41 .vmode = FB_VMODE_NONINTERLACED,
42};
43
44static struct fb_fix_screeninfo vesafb_fix __initdata = {
45 .id = "VESA VGA",
46 .type = FB_TYPE_PACKED_PIXELS,
47 .accel = FB_ACCEL_NONE,
48};
49
Helge Deller46703582006-12-08 02:40:30 -080050static int inverse __read_mostly;
51static int mtrr __read_mostly; /* disable mtrr */
52static int vram_remap __initdata; /* Set amount of memory to be used */
53static int vram_total __initdata; /* Set total amount of memory */
54static int pmi_setpal __read_mostly = 1; /* pmi for palette changes ??? */
55static int ypan __read_mostly; /* 0..nothing, 1..ypan, 2..ywrap */
56static void (*pmi_start)(void) __read_mostly;
57static void (*pmi_pal) (void) __read_mostly;
58static int depth __read_mostly;
59static int vga_compat __read_mostly;
Linus Torvalds1da177e2005-04-16 15:20:36 -070060/* --------------------------------------------------------------------- */
61
62static int vesafb_pan_display(struct fb_var_screeninfo *var,
63 struct fb_info *info)
64{
65#ifdef __i386__
66 int offset;
67
Linus Torvalds1da177e2005-04-16 15:20:36 -070068 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4;
69
70 __asm__ __volatile__(
71 "call *(%%edi)"
72 : /* no return value */
73 : "a" (0x4f07), /* EAX */
74 "b" (0), /* EBX */
75 "c" (offset), /* ECX */
76 "d" (offset >> 16), /* EDX */
77 "D" (&pmi_start)); /* EDI */
78#endif
79 return 0;
80}
81
Antonino A. Daplas313ca222006-06-26 00:26:40 -070082static int vesa_setpalette(int regno, unsigned red, unsigned green,
Linus Torvalds1da177e2005-04-16 15:20:36 -070083 unsigned blue)
84{
Antonino A. Daplas89ec4c22006-04-10 22:55:48 -070085 int shift = 16 - depth;
Antonino A. Daplas313ca222006-06-26 00:26:40 -070086 int err = -EINVAL;
Antonino A. Daplas89ec4c22006-04-10 22:55:48 -070087
Antonino A. Daplas6dbde382006-06-26 00:26:41 -070088/*
89 * Try VGA registers first...
90 */
91 if (vga_compat) {
92 outb_p(regno, dac_reg);
93 outb_p(red >> shift, dac_val);
94 outb_p(green >> shift, dac_val);
95 outb_p(blue >> shift, dac_val);
96 err = 0;
97 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070098
Antonino A. Daplas6dbde382006-06-26 00:26:41 -070099#ifdef __i386__
100/*
101 * Fallback to the PMI....
102 */
103 if (err && pmi_setpal) {
104 struct { u_char blue, green, red, pad; } entry;
105
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106 entry.red = red >> shift;
107 entry.green = green >> shift;
108 entry.blue = blue >> shift;
109 entry.pad = 0;
110 __asm__ __volatile__(
111 "call *(%%esi)"
112 : /* no return value */
113 : "a" (0x4f09), /* EAX */
114 "b" (0), /* EBX */
115 "c" (1), /* ECX */
116 "d" (regno), /* EDX */
117 "D" (&entry), /* EDI */
118 "S" (&pmi_pal)); /* ESI */
Antonino A. Daplas313ca222006-06-26 00:26:40 -0700119 err = 0;
Antonino A. Daplas89ec4c22006-04-10 22:55:48 -0700120 }
121#endif
122
Antonino A. Daplas313ca222006-06-26 00:26:40 -0700123 return err;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124}
125
126static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green,
127 unsigned blue, unsigned transp,
128 struct fb_info *info)
129{
Antonino A. Daplas313ca222006-06-26 00:26:40 -0700130 int err = 0;
131
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132 /*
133 * Set a single color register. The values supplied are
134 * already rounded down to the hardware's capabilities
135 * (according to the entries in the `var' structure). Return
136 * != 0 for invalid regno.
137 */
138
139 if (regno >= info->cmap.len)
140 return 1;
141
Antonino A. Daplaseba50852005-11-07 01:00:40 -0800142 if (info->var.bits_per_pixel == 8)
Antonino A. Daplas313ca222006-06-26 00:26:40 -0700143 err = vesa_setpalette(regno,red,green,blue);
Antonino A. Daplaseba50852005-11-07 01:00:40 -0800144 else if (regno < 16) {
145 switch (info->var.bits_per_pixel) {
146 case 16:
147 if (info->var.red.offset == 10) {
148 /* 1:5:5:5 */
149 ((u32*) (info->pseudo_palette))[regno] =
Linus Torvalds1da177e2005-04-16 15:20:36 -0700150 ((red & 0xf800) >> 1) |
151 ((green & 0xf800) >> 6) |
152 ((blue & 0xf800) >> 11);
Antonino A. Daplaseba50852005-11-07 01:00:40 -0800153 } else {
154 /* 0:5:6:5 */
155 ((u32*) (info->pseudo_palette))[regno] =
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156 ((red & 0xf800) ) |
157 ((green & 0xfc00) >> 5) |
158 ((blue & 0xf800) >> 11);
Antonino A. Daplaseba50852005-11-07 01:00:40 -0800159 }
160 break;
161 case 24:
162 case 32:
163 red >>= 8;
164 green >>= 8;
165 blue >>= 8;
166 ((u32 *)(info->pseudo_palette))[regno] =
167 (red << info->var.red.offset) |
168 (green << info->var.green.offset) |
169 (blue << info->var.blue.offset);
170 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171 }
Antonino A. Daplaseba50852005-11-07 01:00:40 -0800172 }
173
Antonino A. Daplas313ca222006-06-26 00:26:40 -0700174 return err;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700175}
176
Dave Airlie4410f392009-06-16 15:34:38 -0700177static void vesafb_destroy(struct fb_info *info)
178{
179 if (info->screen_base)
180 iounmap(info->screen_base);
181 release_mem_region(info->aperture_base, info->aperture_size);
182 framebuffer_release(info);
183}
184
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185static struct fb_ops vesafb_ops = {
186 .owner = THIS_MODULE,
Dave Airlie4410f392009-06-16 15:34:38 -0700187 .fb_destroy = vesafb_destroy,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188 .fb_setcolreg = vesafb_setcolreg,
189 .fb_pan_display = vesafb_pan_display,
190 .fb_fillrect = cfb_fillrect,
191 .fb_copyarea = cfb_copyarea,
192 .fb_imageblit = cfb_imageblit,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193};
194
195static int __init vesafb_setup(char *options)
196{
197 char *this_opt;
198
199 if (!options || !*options)
200 return 0;
201
202 while ((this_opt = strsep(&options, ",")) != NULL) {
203 if (!*this_opt) continue;
204
205 if (! strcmp(this_opt, "inverse"))
206 inverse=1;
207 else if (! strcmp(this_opt, "redraw"))
208 ypan=0;
209 else if (! strcmp(this_opt, "ypan"))
210 ypan=1;
211 else if (! strcmp(this_opt, "ywrap"))
212 ypan=2;
213 else if (! strcmp(this_opt, "vgapal"))
214 pmi_setpal=0;
215 else if (! strcmp(this_opt, "pmipal"))
216 pmi_setpal=1;
Antonino A. Daplas80625942005-07-29 14:03:31 -0700217 else if (! strncmp(this_opt, "mtrr:", 5))
218 mtrr = simple_strtoul(this_opt+5, NULL, 0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700219 else if (! strcmp(this_opt, "nomtrr"))
220 mtrr=0;
221 else if (! strncmp(this_opt, "vtotal:", 7))
222 vram_total = simple_strtoul(this_opt+7, NULL, 0);
223 else if (! strncmp(this_opt, "vremap:", 7))
224 vram_remap = simple_strtoul(this_opt+7, NULL, 0);
225 }
226 return 0;
227}
228
Russell King3ae5eae2005-11-09 22:32:44 +0000229static int __init vesafb_probe(struct platform_device *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700230{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700231 struct fb_info *info;
232 int i, err;
233 unsigned int size_vmode;
234 unsigned int size_remap;
235 unsigned int size_total;
236
237 if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB)
238 return -ENODEV;
239
Antonino A. Daplas89ec4c22006-04-10 22:55:48 -0700240 vga_compat = (screen_info.capabilities & 2) ? 0 : 1;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700241 vesafb_fix.smem_start = screen_info.lfb_base;
242 vesafb_defined.bits_per_pixel = screen_info.lfb_depth;
243 if (15 == vesafb_defined.bits_per_pixel)
244 vesafb_defined.bits_per_pixel = 16;
245 vesafb_defined.xres = screen_info.lfb_width;
246 vesafb_defined.yres = screen_info.lfb_height;
247 vesafb_fix.line_length = screen_info.lfb_linelength;
248 vesafb_fix.visual = (vesafb_defined.bits_per_pixel == 8) ?
249 FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
250
251 /* size_vmode -- that is the amount of memory needed for the
252 * used video mode, i.e. the minimum amount of
253 * memory we need. */
254 size_vmode = vesafb_defined.yres * vesafb_fix.line_length;
255
256 /* size_total -- all video memory we have. Used for mtrr
257 * entries, ressource allocation and bounds
258 * checking. */
259 size_total = screen_info.lfb_size * 65536;
260 if (vram_total)
261 size_total = vram_total * 1024 * 1024;
262 if (size_total < size_vmode)
263 size_total = size_vmode;
264
265 /* size_remap -- the amount of video memory we are going to
266 * use for vesafb. With modern cards it is no
267 * option to simply use size_total as that
268 * wastes plenty of kernel address space. */
269 size_remap = size_vmode * 2;
270 if (vram_remap)
271 size_remap = vram_remap * 1024 * 1024;
272 if (size_remap < size_vmode)
273 size_remap = size_vmode;
274 if (size_remap > size_total)
275 size_remap = size_total;
276 vesafb_fix.smem_len = size_remap;
277
278#ifndef __i386__
279 screen_info.vesapm_seg = 0;
280#endif
281
282 if (!request_mem_region(vesafb_fix.smem_start, size_total, "vesafb")) {
283 printk(KERN_WARNING
Gerd Knorr78c03712005-06-21 17:16:56 -0700284 "vesafb: cannot reserve video memory at 0x%lx\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285 vesafb_fix.smem_start);
286 /* We cannot make this fatal. Sometimes this comes from magic
287 spaces our resource handlers simply don't know about */
288 }
289
290 info = framebuffer_alloc(sizeof(u32) * 256, &dev->dev);
291 if (!info) {
Gerd Knorr78c03712005-06-21 17:16:56 -0700292 release_mem_region(vesafb_fix.smem_start, size_total);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700293 return -ENOMEM;
294 }
295 info->pseudo_palette = info->par;
296 info->par = NULL;
297
Dave Airlie4410f392009-06-16 15:34:38 -0700298 /* set vesafb aperture size for generic probing */
299 info->aperture_base = screen_info.lfb_base;
300 info->aperture_size = size_total;
301
Gerd Knorr78c03712005-06-21 17:16:56 -0700302 info->screen_base = ioremap(vesafb_fix.smem_start, vesafb_fix.smem_len);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700303 if (!info->screen_base) {
304 printk(KERN_ERR
305 "vesafb: abort, cannot ioremap video memory 0x%x @ 0x%lx\n",
306 vesafb_fix.smem_len, vesafb_fix.smem_start);
307 err = -EIO;
308 goto err;
309 }
310
311 printk(KERN_INFO "vesafb: framebuffer at 0x%lx, mapped to 0x%p, "
312 "using %dk, total %dk\n",
313 vesafb_fix.smem_start, info->screen_base,
314 size_remap/1024, size_total/1024);
315 printk(KERN_INFO "vesafb: mode is %dx%dx%d, linelength=%d, pages=%d\n",
316 vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, screen_info.pages);
317
318 if (screen_info.vesapm_seg) {
319 printk(KERN_INFO "vesafb: protected mode interface info at %04x:%04x\n",
320 screen_info.vesapm_seg,screen_info.vesapm_off);
321 }
322
323 if (screen_info.vesapm_seg < 0xc000)
324 ypan = pmi_setpal = 0; /* not available or some DOS TSR ... */
325
326 if (ypan || pmi_setpal) {
Helge Deller46703582006-12-08 02:40:30 -0800327 unsigned short *pmi_base;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328 pmi_base = (unsigned short*)phys_to_virt(((unsigned long)screen_info.vesapm_seg << 4) + screen_info.vesapm_off);
329 pmi_start = (void*)((char*)pmi_base + pmi_base[1]);
330 pmi_pal = (void*)((char*)pmi_base + pmi_base[2]);
331 printk(KERN_INFO "vesafb: pmi: set display start = %p, set palette = %p\n",pmi_start,pmi_pal);
332 if (pmi_base[3]) {
333 printk(KERN_INFO "vesafb: pmi: ports = ");
334 for (i = pmi_base[3]/2; pmi_base[i] != 0xffff; i++)
335 printk("%x ",pmi_base[i]);
336 printk("\n");
337 if (pmi_base[i] != 0xffff) {
338 /*
339 * memory areas not supported (yet?)
340 *
341 * Rules are: we have to set up a descriptor for the requested
342 * memory area and pass it in the ES register to the BIOS function.
343 */
344 printk(KERN_INFO "vesafb: can't handle memory requests, pmi disabled\n");
345 ypan = pmi_setpal = 0;
346 }
347 }
348 }
349
Antonino A. Daplas89ec4c22006-04-10 22:55:48 -0700350 if (vesafb_defined.bits_per_pixel == 8 && !pmi_setpal && !vga_compat) {
351 printk(KERN_WARNING "vesafb: hardware palette is unchangeable,\n"
352 " colors may be incorrect\n");
353 vesafb_fix.visual = FB_VISUAL_STATIC_PSEUDOCOLOR;
354 }
355
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356 vesafb_defined.xres_virtual = vesafb_defined.xres;
357 vesafb_defined.yres_virtual = vesafb_fix.smem_len / vesafb_fix.line_length;
358 if (ypan && vesafb_defined.yres_virtual > vesafb_defined.yres) {
359 printk(KERN_INFO "vesafb: scrolling: %s using protected mode interface, yres_virtual=%d\n",
360 (ypan > 1) ? "ywrap" : "ypan",vesafb_defined.yres_virtual);
361 } else {
362 printk(KERN_INFO "vesafb: scrolling: redraw\n");
363 vesafb_defined.yres_virtual = vesafb_defined.yres;
364 ypan = 0;
365 }
366
367 /* some dummy values for timing to make fbset happy */
368 vesafb_defined.pixclock = 10000000 / vesafb_defined.xres * 1000 / vesafb_defined.yres;
369 vesafb_defined.left_margin = (vesafb_defined.xres / 8) & 0xf8;
370 vesafb_defined.hsync_len = (vesafb_defined.xres / 8) & 0xf8;
371
372 vesafb_defined.red.offset = screen_info.red_pos;
373 vesafb_defined.red.length = screen_info.red_size;
374 vesafb_defined.green.offset = screen_info.green_pos;
375 vesafb_defined.green.length = screen_info.green_size;
376 vesafb_defined.blue.offset = screen_info.blue_pos;
377 vesafb_defined.blue.length = screen_info.blue_size;
378 vesafb_defined.transp.offset = screen_info.rsvd_pos;
379 vesafb_defined.transp.length = screen_info.rsvd_size;
380
381 if (vesafb_defined.bits_per_pixel <= 8) {
382 depth = vesafb_defined.green.length;
383 vesafb_defined.red.length =
384 vesafb_defined.green.length =
385 vesafb_defined.blue.length =
386 vesafb_defined.bits_per_pixel;
387 }
388
389 printk(KERN_INFO "vesafb: %s: "
390 "size=%d:%d:%d:%d, shift=%d:%d:%d:%d\n",
391 (vesafb_defined.bits_per_pixel > 8) ?
Antonino A. Daplas89ec4c22006-04-10 22:55:48 -0700392 "Truecolor" : (vga_compat || pmi_setpal) ?
393 "Pseudocolor" : "Static Pseudocolor",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700394 screen_info.rsvd_size,
395 screen_info.red_size,
396 screen_info.green_size,
397 screen_info.blue_size,
398 screen_info.rsvd_pos,
399 screen_info.red_pos,
400 screen_info.green_pos,
401 screen_info.blue_pos);
402
403 vesafb_fix.ypanstep = ypan ? 1 : 0;
404 vesafb_fix.ywrapstep = (ypan>1) ? 1 : 0;
405
406 /* request failure does not faze us, as vgacon probably has this
407 * region already (FIXME) */
408 request_region(0x3c0, 32, "vesafb");
409
Jan Beulichf5f4917c2005-11-13 16:08:12 -0800410#ifdef CONFIG_MTRR
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411 if (mtrr) {
Gerd Knorr78c03712005-06-21 17:16:56 -0700412 unsigned int temp_size = size_total;
Antonino A. Daplas80625942005-07-29 14:03:31 -0700413 unsigned int type = 0;
Dave Jonesd7496cb2005-06-25 14:58:30 -0700414
Antonino A. Daplas80625942005-07-29 14:03:31 -0700415 switch (mtrr) {
416 case 1:
417 type = MTRR_TYPE_UNCACHABLE;
418 break;
419 case 2:
420 type = MTRR_TYPE_WRBACK;
421 break;
422 case 3:
423 type = MTRR_TYPE_WRCOMB;
424 break;
425 case 4:
426 type = MTRR_TYPE_WRTHROUGH;
427 break;
428 default:
429 type = 0;
430 break;
431 }
432
433 if (type) {
434 int rc;
435
436 /* Find the largest power-of-two */
437 while (temp_size & (temp_size - 1))
438 temp_size &= (temp_size - 1);
439
440 /* Try and find a power of two to add */
441 do {
442 rc = mtrr_add(vesafb_fix.smem_start, temp_size,
443 type, 1);
444 temp_size >>= 1;
445 } while (temp_size >= PAGE_SIZE && rc == -EINVAL);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700446 }
447 }
Jan Beulichf5f4917c2005-11-13 16:08:12 -0800448#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700449
450 info->fbops = &vesafb_ops;
451 info->var = vesafb_defined;
452 info->fix = vesafb_fix;
Dave Airlie4410f392009-06-16 15:34:38 -0700453 info->flags = FBINFO_FLAG_DEFAULT | FBINFO_MISC_FIRMWARE |
Roel Kluinb83734e2009-03-31 15:25:36 -0700454 (ypan ? FBINFO_HWACCEL_YPAN : 0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700455
Antonino A. Daplase53f87a2006-01-09 20:53:18 -0800456 if (!ypan)
457 info->fbops->fb_pan_display = NULL;
458
Linus Torvalds1da177e2005-04-16 15:20:36 -0700459 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
460 err = -ENOMEM;
461 goto err;
462 }
463 if (register_framebuffer(info)<0) {
464 err = -EINVAL;
465 fb_dealloc_cmap(&info->cmap);
466 goto err;
467 }
468 printk(KERN_INFO "fb%d: %s frame buffer device\n",
469 info->node, info->fix.id);
470 return 0;
471err:
Amol Ladb88a57c2006-12-08 02:40:02 -0800472 if (info->screen_base)
473 iounmap(info->screen_base);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700474 framebuffer_release(info);
475 release_mem_region(vesafb_fix.smem_start, size_total);
476 return err;
477}
478
Russell King3ae5eae2005-11-09 22:32:44 +0000479static struct platform_driver vesafb_driver = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 .probe = vesafb_probe,
Russell King3ae5eae2005-11-09 22:32:44 +0000481 .driver = {
482 .name = "vesafb",
483 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484};
485
Antonino A. Daplas103edf02006-06-26 00:26:33 -0700486static struct platform_device *vesafb_device;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700487
488static int __init vesafb_init(void)
489{
490 int ret;
491 char *option = NULL;
492
493 /* ignore error return of fb_get_options */
494 fb_get_options("vesafb", &option);
495 vesafb_setup(option);
Russell King3ae5eae2005-11-09 22:32:44 +0000496 ret = platform_driver_register(&vesafb_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497
498 if (!ret) {
Antonino A. Daplas103edf02006-06-26 00:26:33 -0700499 vesafb_device = platform_device_alloc("vesafb", 0);
500
501 if (vesafb_device)
502 ret = platform_device_add(vesafb_device);
503 else
504 ret = -ENOMEM;
505
506 if (ret) {
507 platform_device_put(vesafb_device);
Russell King3ae5eae2005-11-09 22:32:44 +0000508 platform_driver_unregister(&vesafb_driver);
Antonino A. Daplas103edf02006-06-26 00:26:33 -0700509 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700510 }
Antonino A. Daplas103edf02006-06-26 00:26:33 -0700511
Linus Torvalds1da177e2005-04-16 15:20:36 -0700512 return ret;
513}
514module_init(vesafb_init);
515
516MODULE_LICENSE("GPL");