Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17847
b: refs/heads/master
c: 5d6d164
h: refs/heads/master
i:
  17845: c570360
  17843: fd9026b
  17839: b3b74e6
v: v3
  • Loading branch information
Helge Deller authored and Kyle McMartin committed Jan 11, 2006
1 parent b108765 commit e8a75c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02d79800a221eb4e54d80cbf2026af9edc1f437d
refs/heads/master: 5d6d1640a254b27d0f598007313065713c1e3a04
17 changes: 5 additions & 12 deletions trunk/drivers/video/stifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,8 @@
#include "sticore.h"

/* REGION_BASE(fb_info, index) returns the virtual address for region <index> */
#ifdef __LP64__
#define REGION_BASE(fb_info, index) \
(fb_info->sti->glob_cfg->region_ptrs[index] | 0xffffffff00000000)
#else
#define REGION_BASE(fb_info, index) \
fb_info->sti->glob_cfg->region_ptrs[index]
#endif
#define REGION_BASE(fb_info, index) \
F_EXTEND(fb_info->sti->glob_cfg->region_ptrs[index])

#define NGLEDEVDEPROM_CRT_REGION 1

Expand Down Expand Up @@ -1250,12 +1245,10 @@ stifb_init_fb(struct sti_struct *sti, int bpp_pref)
memset(&fb->ngle_rom, 0, sizeof(fb->ngle_rom));
if ((fb->sti->regions_phys[0] & 0xfc000000) ==
(fb->sti->regions_phys[2] & 0xfc000000))
sti_rom_address = fb->sti->regions_phys[0];
sti_rom_address = F_EXTEND(fb->sti->regions_phys[0]);
else
sti_rom_address = fb->sti->regions_phys[1];
#ifdef __LP64__
sti_rom_address |= 0xffffffff00000000;
#endif
sti_rom_address = F_EXTEND(fb->sti->regions_phys[1]);

fb->deviceSpecificConfig = gsc_readl(sti_rom_address);
if (IS_24_DEVICE(fb)) {
if (bpp_pref == 8 || bpp_pref == 32)
Expand Down

0 comments on commit e8a75c8

Please sign in to comment.