db88e382a0
Clean the handling of ioremapped video memory up. The following changes were made: info->screen_base - viafb_FB_MM (VRAM offset calculation) was replaced by info->fix.smem_start - viafbinfo->fix.smem_start which is essentially the same calculation but done with physical instead virtual addresses. *->fbmem_virt was replaced by viafbinfo->screen_base This is true for viafbinfo and viafbinfo1 as the par pointers are equal. An early initialization of viafbinfo1->fix.smem* was removed as done later in viafb_setup_fixinfo. This patch highlights that the only usage of the ioremapped video memory in the driver is for hardware cursor handling. Even if it has to hold the used virtual screen mapped for old-fashioned read/write calls (vs. mmap'ed) a lot virtual memory could be saved by only ioremapping on demand. Code cleanup, no runtime changes expected. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Scott Fang <ScottFang@viatech.com.cn> Cc: Joseph Chan <JosephChan@via.com.tw> Cc: Harald Welte <laforge@gnumonks.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
accel.c | ||
accel.h | ||
chip.h | ||
debug.h | ||
dvi.c | ||
dvi.h | ||
global.c | ||
global.h | ||
hw.c | ||
hw.h | ||
iface.c | ||
iface.h | ||
ioctl.c | ||
ioctl.h | ||
lcd.c | ||
lcd.h | ||
lcdtbl.h | ||
Makefile | ||
share.h | ||
tbl1636.c | ||
tbl1636.h | ||
tblDPASetting.c | ||
tblDPASetting.h | ||
via_i2c.c | ||
via_i2c.h | ||
via_utility.c | ||
via_utility.h | ||
viafbdev.c | ||
viafbdev.h | ||
viamode.c | ||
viamode.h | ||
vt1636.c | ||
vt1636.h |