valkyriefb.c (dd84cfff3cc3b79c9d616f85bd1178df135cbd1a) | valkyriefb.c (6a7d270e901965b0f8643db885cdc2e6e93b8621) |
---|---|
1/* 2 * valkyriefb.c -- frame buffer device for the PowerMac 'valkyrie' display 3 * 4 * Created 8 August 1998 by 5 * Martin Costabel <costabel@wanadoo.fr> and Kevin Schoedel 6 * 7 * Vmode-switching changes and vmode 15/17 modifications created 29 August 8 * 1998 by Barry K. Nathan <barryn@pobox.com>. --- 76 unchanged lines hidden (view full) --- 85 unsigned long frame_buffer_phys; 86 87 int sense; 88 unsigned long total_vram; 89 90 u32 pseudo_palette[16]; 91}; 92 | 1/* 2 * valkyriefb.c -- frame buffer device for the PowerMac 'valkyrie' display 3 * 4 * Created 8 August 1998 by 5 * Martin Costabel <costabel@wanadoo.fr> and Kevin Schoedel 6 * 7 * Vmode-switching changes and vmode 15/17 modifications created 29 August 8 * 1998 by Barry K. Nathan <barryn@pobox.com>. --- 76 unchanged lines hidden (view full) --- 85 unsigned long frame_buffer_phys; 86 87 int sense; 88 unsigned long total_vram; 89 90 u32 pseudo_palette[16]; 91}; 92 |
93/* 94 * Exported functions 95 */ 96int valkyriefb_init(void); 97int valkyriefb_setup(char*); | 93static int valkyriefb_setup(char*); |
98 99static int valkyriefb_check_var(struct fb_var_screeninfo *var, 100 struct fb_info *info); 101static int valkyriefb_set_par(struct fb_info *info); 102static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 103 u_int transp, struct fb_info *info); 104static int valkyriefb_blank(int blank_mode, struct fb_info *info); 105 --- 191 unchanged lines hidden (view full) --- 297 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 298 || valkyrie_vram_reqd(default_vmode, default_cmode) > p->total_vram) 299 default_cmode = CMODE_8; 300 301 printk(KERN_INFO "using video mode %d and color mode %d.\n", 302 default_vmode, default_cmode); 303} 304 | 94 95static int valkyriefb_check_var(struct fb_var_screeninfo *var, 96 struct fb_info *info); 97static int valkyriefb_set_par(struct fb_info *info); 98static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 99 u_int transp, struct fb_info *info); 100static int valkyriefb_blank(int blank_mode, struct fb_info *info); 101 --- 191 unchanged lines hidden (view full) --- 293 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 294 || valkyrie_vram_reqd(default_vmode, default_cmode) > p->total_vram) 295 default_cmode = CMODE_8; 296 297 printk(KERN_INFO "using video mode %d and color mode %d.\n", 298 default_vmode, default_cmode); 299} 300 |
305int __init valkyriefb_init(void) | 301static int __init valkyriefb_init(void) |
306{ 307 struct fb_info_valkyrie *p; 308 unsigned long frame_buffer_phys, cmap_regs_phys; 309 int err; 310 char *option = NULL; 311 312 if (fb_get_options("valkyriefb", &option)) 313 return -ENODEV; --- 230 unchanged lines hidden (view full) --- 544 info->par = &p->par; 545 return fb_alloc_cmap(&info->cmap, 256, 0); 546} 547 548 549/* 550 * Parse user specified options (`video=valkyriefb:') 551 */ | 302{ 303 struct fb_info_valkyrie *p; 304 unsigned long frame_buffer_phys, cmap_regs_phys; 305 int err; 306 char *option = NULL; 307 308 if (fb_get_options("valkyriefb", &option)) 309 return -ENODEV; --- 230 unchanged lines hidden (view full) --- 540 info->par = &p->par; 541 return fb_alloc_cmap(&info->cmap, 256, 0); 542} 543 544 545/* 546 * Parse user specified options (`video=valkyriefb:') 547 */ |
552int __init valkyriefb_setup(char *options) | 548static int __init valkyriefb_setup(char *options) |
553{ 554 char *this_opt; 555 556 if (!options || !*options) 557 return 0; 558 559 while ((this_opt = strsep(&options, ",")) != NULL) { 560 if (!strncmp(this_opt, "vmode:", 6)) { --- 22 unchanged lines hidden --- | 549{ 550 char *this_opt; 551 552 if (!options || !*options) 553 return 0; 554 555 while ((this_opt = strsep(&options, ",")) != NULL) { 556 if (!strncmp(this_opt, "vmode:", 6)) { --- 22 unchanged lines hidden --- |