Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18528
b: refs/heads/master
c: a80da73
h: refs/heads/master
v: v3
  • Loading branch information
David Vrabel authored and Linus Torvalds committed Jan 15, 2006
1 parent 5259456 commit dd565c9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 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: 4836f5749e55663f884ea25920ff88de7822f0a8
refs/heads/master: a80da7389891d0eeacbd568a9b54f665fd424d14
16 changes: 16 additions & 0 deletions trunk/arch/i386/pci/fixup.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,19 @@ static void __devinit pci_post_fixup_toshiba_ohci1394(struct pci_dev *dev)
}
DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_TI, 0x8032,
pci_post_fixup_toshiba_ohci1394);


/*
* Prevent the BIOS trapping accesses to the Cyrix CS5530A video device
* configuration space.
*/
static void __devinit pci_early_fixup_cyrix_5530(struct pci_dev *dev)
{
u8 r;
/* clear 'F4 Video Configuration Trap' bit */
pci_read_config_byte(dev, 0x42, &r);
r &= 0xfd;
pci_write_config_byte(dev, 0x42, r);
}
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY,
pci_early_fixup_cyrix_5530);
11 changes: 4 additions & 7 deletions trunk/drivers/video/geode/gx1fb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ static int __init gx1fb_map_video_memory(struct fb_info *info, struct pci_dev *d
if (ret < 0)
return ret;

ret = pci_request_region(dev, 1, "gx1fb (video)");
ret = pci_request_region(dev, 0, "gx1fb (video)");
if (ret < 0)
return ret;
par->vid_regs = ioremap(pci_resource_start(dev, 1),
pci_resource_len(dev, 1));
par->vid_regs = ioremap(pci_resource_start(dev, 0),
pci_resource_len(dev, 0));
if (!par->vid_regs)
return -ENOMEM;

Expand All @@ -229,12 +229,9 @@ static int __init gx1fb_map_video_memory(struct fb_info *info, struct pci_dev *d
if (!par->dc_regs)
return -ENOMEM;

ret = pci_request_region(dev, 0, "gx1fb (frame buffer)");
if (ret < 0 )
return -EBUSY;
if ((fb_len = gx1_frame_buffer_size()) < 0)
return -ENOMEM;
info->fix.smem_start = pci_resource_start(dev, 0);
info->fix.smem_start = gx_base + 0x800000;
info->fix.smem_len = fb_len;
info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len);
if (!info->screen_base)
Expand Down

0 comments on commit dd565c9

Please sign in to comment.