68328fb.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) 68328fb.c (6a7d270e901965b0f8643db885cdc2e6e93b8621)
1/*
2 * linux/drivers/video/68328fb.c -- Low level implementation of the
3 * mc68x328 LCD frame buffer device
4 *
5 * Copyright (C) 2003 Georges Menie
6 *
7 * This driver assumes an already configured controller (e.g. from config.c)
8 * Keep the code clean of board specific initialization.

--- 70 unchanged lines hidden (view full) ---

79 .ypanstep = 1,
80 .ywrapstep = 1,
81 .accel = FB_ACCEL_NONE,
82};
83
84 /*
85 * Interface used by the world
86 */
1/*
2 * linux/drivers/video/68328fb.c -- Low level implementation of the
3 * mc68x328 LCD frame buffer device
4 *
5 * Copyright (C) 2003 Georges Menie
6 *
7 * This driver assumes an already configured controller (e.g. from config.c)
8 * Keep the code clean of board specific initialization.

--- 70 unchanged lines hidden (view full) ---

79 .ypanstep = 1,
80 .ywrapstep = 1,
81 .accel = FB_ACCEL_NONE,
82};
83
84 /*
85 * Interface used by the world
86 */
87int mc68x328fb_init(void);
88int mc68x328fb_setup(char *);
89
90static int mc68x328fb_check_var(struct fb_var_screeninfo *var,
91 struct fb_info *info);
92static int mc68x328fb_set_par(struct fb_info *info);
93static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
94 u_int transp, struct fb_info *info);
95static int mc68x328fb_pan_display(struct fb_var_screeninfo *var,
96 struct fb_info *info);
97static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);

--- 300 unchanged lines hidden (view full) ---

398 vma->vm_start = videomemory;
399
400 return 0;
401#else
402 return -EINVAL;
403#endif
404}
405
87static int mc68x328fb_check_var(struct fb_var_screeninfo *var,
88 struct fb_info *info);
89static int mc68x328fb_set_par(struct fb_info *info);
90static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
91 u_int transp, struct fb_info *info);
92static int mc68x328fb_pan_display(struct fb_var_screeninfo *var,
93 struct fb_info *info);
94static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);

--- 300 unchanged lines hidden (view full) ---

395 vma->vm_start = videomemory;
396
397 return 0;
398#else
399 return -EINVAL;
400#endif
401}
402
406int __init mc68x328fb_setup(char *options)
403static int __init mc68x328fb_setup(char *options)
407{
408 if (!options || !*options)
409 return 1;
410 return 1;
411}
412
413 /*
414 * Initialisation
415 */
416
404{
405 if (!options || !*options)
406 return 1;
407 return 1;
408}
409
410 /*
411 * Initialisation
412 */
413
417int __init mc68x328fb_init(void)
414static int __init mc68x328fb_init(void)
418{
419#ifndef MODULE
420 char *option = NULL;
421
422 if (fb_get_options("68328fb", &option))
423 return -ENODEV;
424 mc68x328fb_setup(option);
425#endif

--- 60 unchanged lines hidden ---
415{
416#ifndef MODULE
417 char *option = NULL;
418
419 if (fb_get_options("68328fb", &option))
420 return -ENODEV;
421 mc68x328fb_setup(option);
422#endif

--- 60 unchanged lines hidden ---