summaryrefslogtreecommitdiff
path: root/driver/xf86-video-glint
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-11-04 06:03:57 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-11-04 06:03:57 +0000
commitb557828ce6e181e989be05424e4c17e3bfaef69b (patch)
tree73757d6248f1c10506c3766ef273abc2227f1dfd /driver/xf86-video-glint
parentb927548725adc28d61dda9cf0e4adf5a4ea0e915 (diff)
switch the alpha specific code to libpciaccess.
Diffstat (limited to 'driver/xf86-video-glint')
-rw-r--r--driver/xf86-video-glint/src/pm3_dac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/driver/xf86-video-glint/src/pm3_dac.c b/driver/xf86-video-glint/src/pm3_dac.c
index e11d1902f..92633ea3c 100644
--- a/driver/xf86-video-glint/src/pm3_dac.c
+++ b/driver/xf86-video-glint/src/pm3_dac.c
@@ -437,9 +437,9 @@ Permedia3PreInit(ScrnInfoPtr pScrn)
"VX1 secondary enabling VGA before int10\n");
/* Enable VGA on the current card. */
- pciWriteByte( pGlint->PciTag, 0xf8, 0 );
- pciWriteByte( pGlint->PciTag, 0xf4, 0 );
- pciWriteByte( pGlint->PciTag, 0xfc, 0 );
+ PCI_WRITE_LONG( pGlint->PciInfo, 0, 0xf8 );
+ PCI_WRITE_LONG( pGlint->PciInfo, 0, 0xf4 );
+ PCI_WRITE_LONG( pGlint->PciInfo, 0, 0xfc );
/* The card we are on should be VGA-enabled now, so run int10. */
if (xf86LoadSubModule(pScrn, "int10")) {
@@ -455,9 +455,9 @@ Permedia3PreInit(ScrnInfoPtr pScrn)
"VX1 secondary disabling VGA after int10\n");
/* Finally, disable VGA on the current card. */
- pciWriteByte( pGlint->PciTag, 0xf8, 0x70 );
- pciWriteByte( pGlint->PciTag, 0xf4, 0x01 );
- pciWriteByte( pGlint->PciTag, 0xfc, 0x00 );
+ PCI_WRITE_LONG( pGlint->PciInfo, 0x70, 0xf8 );
+ PCI_WRITE_LONG( pGlint->PciInfo, 0x01, 0xf4 );
+ PCI_WRITE_LONG( pGlint->PciInfo, 0x00, 0xfc );
}
}
#endif /* __alpha__ */