Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249216
b: refs/heads/master
c: e67f4d4
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent ab31871 commit 61b8f4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: b6e2dc394888c65603ac67754a814530ec2ac570
refs/heads/master: e67f4d4d9e330710b84a6bfe500c713059a7868b
20 changes: 10 additions & 10 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ static int XGIfb_pan_var(struct fb_var_screeninfo *var)
setXGIIDXREG(XGISR, 0x37, 0xDF, (base >> 21) & 0x04);

if (xgi_video_info.disp_state & DISPTYPE_DISP2) {
orXGIIDXREG(XGIPART1, XGIfb_CRT2_write_enable, 0x01);
xgifb_reg_or(XGIPART1, XGIfb_CRT2_write_enable, 0x01);
xgifb_reg_set(XGIPART1, 0x06, (base & 0xFF));
xgifb_reg_set(XGIPART1, 0x05, ((base >> 8) & 0xFF));
xgifb_reg_set(XGIPART1, 0x04, ((base >> 16) & 0xFF));
Expand Down Expand Up @@ -1821,7 +1821,7 @@ void XGI_Sense30x(void)
testvga2_tempcl, testvga2_tempch);
if (result) {
printk(KERN_INFO "XGIfb: Detected secondary VGA connection\n");
orXGIIDXREG(XGICR, 0x32, 0x10);
xgifb_reg_or(XGICR, 0x32, 0x10);
}
}

Expand All @@ -1831,7 +1831,7 @@ void XGI_Sense30x(void)
printk(KERN_INFO "XGIfb: Detected TV connected to SVHS output\n");
/* TW: So we can be sure that there IS a SVHS output */
xgi_video_info.TV_plug = TVPLUG_SVIDEO;
orXGIIDXREG(XGICR, 0x32, 0x02);
xgifb_reg_or(XGICR, 0x32, 0x02);
}

if (!result) {
Expand All @@ -1841,7 +1841,7 @@ void XGI_Sense30x(void)
printk(KERN_INFO "XGIfb: Detected TV connected to CVBS output\n");
/* TW: So we can be sure that there IS a CVBS output */
xgi_video_info.TV_plug = TVPLUG_COMPOSITE;
orXGIIDXREG(XGICR, 0x32, 0x01);
xgifb_reg_or(XGICR, 0x32, 0x01);
}
}
XGIDoSense(0, 0, 0, 0);
Expand Down Expand Up @@ -1963,7 +1963,7 @@ static void XGIfb_post_setmode(void)
break;
}

orXGIIDXREG(XGIPART1, XGIfb_CRT2_write_enable, 0x01);
xgifb_reg_or(XGIPART1, XGIfb_CRT2_write_enable, 0x01);

if (xgi_video_info.TV_type == TVMODE_NTSC) {

Expand All @@ -1976,7 +1976,7 @@ static void XGIfb_post_setmode(void)
} else if (xgi_video_info.TV_plug
== TVPLUG_COMPOSITE) {

orXGIIDXREG(XGIPART2, 0x30, 0x20);
xgifb_reg_or(XGIPART2, 0x30, 0x20);

switch (xgi_video_info.video_width) {
case 640:
Expand Down Expand Up @@ -2011,7 +2011,7 @@ static void XGIfb_post_setmode(void)
} else if (xgi_video_info.TV_plug
== TVPLUG_COMPOSITE) {

orXGIIDXREG(XGIPART2, 0x30, 0x20);
xgifb_reg_or(XGIPART2, 0x30, 0x20);

switch (xgi_video_info.video_width) {
case 640:
Expand Down Expand Up @@ -2214,7 +2214,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,

switch (xgi_video_info.chip_id) {
case PCI_DEVICE_ID_XG_20:
orXGIIDXREG(XGICR, Index_CR_GPIO_Reg3, GPIOG_EN);
xgifb_reg_or(XGICR, Index_CR_GPIO_Reg3, GPIOG_EN);
CR48 = xgifb_reg_get(XGICR, Index_CR_GPIO_Reg1);
if (CR48&GPIOG_READ)
xgi_video_info.chip = XG21;
Expand Down Expand Up @@ -2266,9 +2266,9 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,

if ((xgifb_mode_idx < 0) || ((XGIbios_mode[xgifb_mode_idx].mode_no) != 0xFF)) {
/* Enable PCI_LINEAR_ADDRESSING and MMIO_ENABLE */
orXGIIDXREG(XGISR, IND_XGI_PCI_ADDRESS_SET, (XGI_PCI_ADDR_ENABLE | XGI_MEM_MAP_IO_ENABLE));
xgifb_reg_or(XGISR, IND_XGI_PCI_ADDRESS_SET, (XGI_PCI_ADDR_ENABLE | XGI_MEM_MAP_IO_ENABLE));
/* Enable 2D accelerator engine */
orXGIIDXREG(XGISR, IND_XGI_MODULE_ENABLE, XGI_ENABLE_2D);
xgifb_reg_or(XGISR, IND_XGI_MODULE_ENABLE, XGI_ENABLE_2D);
}

XGIhw_ext.ulVideoMemorySize = xgi_video_info.video_size;
Expand Down

0 comments on commit 61b8f4f

Please sign in to comment.