diff options
author | Helge Deller <deller@parisc-linux.org> | 2006-03-22 17:19:46 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@hera.kernel.org> | 2006-03-30 12:48:47 -0500 |
commit | 857600c77161fd36e30cd6bcca9a0a8676036323 (patch) | |
tree | bef75f9f9a2bebd9fc084b8a15064bdce1a45aef /drivers/video/console | |
parent | b8ce0aadcdebbaf5ec013c57e2a0803060817bcc (diff) |
[PARISC] Fix stifb with IOREMAP and a 64-bit kernel
Kill various warnings when built using ioremap.
Remove stifb_{read,write} functions, which are now obsolete (and stack abusers!)
Disable stifb mmap() functionality on a 64-bit kernel, it will crash the
machine.
Signed-off-by: Helge Deller <deller@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'drivers/video/console')
-rw-r--r-- | drivers/video/console/sticore.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c index 0339f5640a78..d6041e781aca 100644 --- a/drivers/video/console/sticore.c +++ b/drivers/video/console/sticore.c | |||
@@ -373,7 +373,7 @@ sti_dump_globcfg(struct sti_glob_cfg *glob_cfg, unsigned int sti_mem_request) | |||
373 | glob_cfg->save_addr)); | 373 | glob_cfg->save_addr)); |
374 | 374 | ||
375 | /* dump extended cfg */ | 375 | /* dump extended cfg */ |
376 | cfg = PTR_STI(glob_cfg->ext_ptr); | 376 | cfg = PTR_STI((unsigned long)glob_cfg->ext_ptr); |
377 | DPRINTK(( KERN_INFO | 377 | DPRINTK(( KERN_INFO |
378 | "monitor %d\n" | 378 | "monitor %d\n" |
379 | "in friendly mode: %d\n" | 379 | "in friendly mode: %d\n" |
@@ -453,25 +453,11 @@ sti_init_glob_cfg(struct sti_struct *sti, | |||
453 | sti->regions_phys[i] = | 453 | sti->regions_phys[i] = |
454 | REGION_OFFSET_TO_PHYS(sti->regions[i], newhpa); | 454 | REGION_OFFSET_TO_PHYS(sti->regions[i], newhpa); |
455 | 455 | ||
456 | /* remap virtually */ | ||
457 | /* FIXME: add BTLB support if btlb==1 */ | ||
458 | len = sti->regions[i].region_desc.length * 4096; | 456 | len = sti->regions[i].region_desc.length * 4096; |
459 | |||
460 | /* XXX: Enabling IOREMAP debugging causes a crash, so we must be passing | ||
461 | * a virtual address to something expecting a physical address that doesn't | ||
462 | * go through a readX macro */ | ||
463 | #if 0 | ||
464 | if (len) | ||
465 | glob_cfg->region_ptrs[i] = (unsigned long) ( | ||
466 | sti->regions[i].region_desc.cache ? | ||
467 | ioremap(sti->regions_phys[i], len) : | ||
468 | ioremap_nocache(sti->regions_phys[i], len) ); | ||
469 | #else | ||
470 | if (len) | 457 | if (len) |
471 | glob_cfg->region_ptrs[i] = sti->regions_phys[i]; | 458 | glob_cfg->region_ptrs[i] = sti->regions_phys[i]; |
472 | #endif | ||
473 | 459 | ||
474 | DPRINTK(("region #%d: phys %08lx, virt %08x, len=%lukB, " | 460 | DPRINTK(("region #%d: phys %08lx, region_ptr %08x, len=%lukB, " |
475 | "btlb=%d, sysonly=%d, cache=%d, last=%d\n", | 461 | "btlb=%d, sysonly=%d, cache=%d, last=%d\n", |
476 | i, sti->regions_phys[i], glob_cfg->region_ptrs[i], | 462 | i, sti->regions_phys[i], glob_cfg->region_ptrs[i], |
477 | len/1024, | 463 | len/1024, |